mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-05 08:53:39 +02:00
build: Don't overwrite build variables
We cannot use `gvisibility_h` for different visibility header files; you never know when you're going to refer to the variable again, and projects might end up needing to retrieve the variable contents—like, for instance, gobject-introspection using glib as a subproject.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
gvisibility_h = configure_file(
|
||||
gdbus_example_objectmanager_visibility_h = configure_file(
|
||||
output: 'gdbus-example-objectmanager-visibility.h',
|
||||
command: [gen_visibility_macros, '2.0', 'visibility-macros',
|
||||
'GDBUS_OBJECT_MANAGER_EXAMPLE', '@OUTPUT@'],
|
||||
@@ -44,7 +44,7 @@ if glib_build_static_only
|
||||
endif
|
||||
|
||||
libgdbus_example_objectmanager = library('gdbus-example-objectmanager',
|
||||
gdbus_example_objectmanager_generated, gvisibility_h,
|
||||
gdbus_example_objectmanager_generated, gdbus_example_objectmanager_visibility_h,
|
||||
c_args : [test_c_args, extra_c_args,
|
||||
'-DGDBUS_OBJECT_MANAGER_EXAMPLE_COMPILATION'],
|
||||
dependencies : [libglib_dep, libgmodule_dep, libgobject_dep, libgio_dep],
|
||||
|
Reference in New Issue
Block a user