mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-05 17:03:40 +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:
@@ -748,7 +748,7 @@ gio_headers = files(
|
||||
'gliststore.h',
|
||||
)
|
||||
|
||||
gvisibility_h = custom_target(
|
||||
gio_visibility_h = custom_target(
|
||||
output: 'gio-visibility.h',
|
||||
command: [gen_visibility_macros, meson.project_version(), 'visibility-macros', 'GIO', '@OUTPUT@'],
|
||||
install: true,
|
||||
@@ -756,7 +756,7 @@ gvisibility_h = custom_target(
|
||||
# FIXME: Not needed with Meson >= 0.64.0
|
||||
install_tag: 'devel',
|
||||
)
|
||||
gio_sources += gvisibility_h
|
||||
gio_sources += gio_visibility_h
|
||||
|
||||
gio_headers += application_headers
|
||||
gio_headers += settings_headers
|
||||
@@ -786,7 +786,7 @@ gioenumtypes_c = custom_target('gioenumtypes_c',
|
||||
'--template', files('gioenumtypes.c.template'),
|
||||
'@INPUT@', gnetworking_h])
|
||||
|
||||
gioenumtypes_dep = declare_dependency(sources : [gioenumtypes_h, glib_enumtypes_h, gvisibility_h])
|
||||
gioenumtypes_dep = declare_dependency(sources : [gioenumtypes_h, glib_enumtypes_h, gio_visibility_h])
|
||||
|
||||
# inotify
|
||||
if glib_conf.has('HAVE_SYS_INOTIFY_H') and have_func_inotify_init1
|
||||
|
Reference in New Issue
Block a user