meson: Fix a needless recompilation of some gdbus tests

The gdbus-example-objectmanager visibility header was being re-created
on reconfigure, causing a needless rebuild of gdbus tests that were
using the visibility header.

All other invocations of gen_visibility_macros are via custom_target.
This commit is contained in:
Nirbheek Chauhan 2024-03-13 03:31:09 +05:30
parent 1f8d5a9cbf
commit 92a97c4f48

View File

@ -1,4 +1,4 @@
gdbus_example_objectmanager_visibility_h = configure_file(
gdbus_example_objectmanager_visibility_h = custom_target('gdbus-example-objectmanager-visibility',
output: 'gdbus-example-objectmanager-visibility.h',
command: [gen_visibility_macros, '2.0', 'visibility-macros',
'GDBUS_OBJECT_MANAGER_EXAMPLE', '@OUTPUT@'],