mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 05:56:14 +01:00
girepository: Ensure gi-visibility.h is built before gthash.c
`gthash.c` transitively includes it. Most of this commit is just moving variables around so `gi_visibility_h` is defined early enough in the file. The moved code has not been changed. Signed-off-by: Philip Withnall <philip@tecnocode.co.uk> Helps: #3155
This commit is contained in:
parent
a27a75b219
commit
a6df2ec312
@ -31,6 +31,41 @@ endif
|
||||
|
||||
glib_girdir = get_option('prefix') / gir_dir_prefix / 'gir-1.0'
|
||||
|
||||
gir_includedir = glib_includedir / 'girepository'
|
||||
|
||||
gi_visibility_h = custom_target(
|
||||
output: 'gi-visibility.h',
|
||||
command: [gen_visibility_macros, meson.project_version(), 'visibility-macros', 'GI', '@OUTPUT@'],
|
||||
install: true,
|
||||
install_dir: gir_includedir,
|
||||
install_tag: 'devel',
|
||||
)
|
||||
|
||||
girepo_headers = files(
|
||||
'giarginfo.h',
|
||||
'gibaseinfo.h',
|
||||
'gicallableinfo.h',
|
||||
'giconstantinfo.h',
|
||||
'gienuminfo.h',
|
||||
'gifieldinfo.h',
|
||||
'gifunctioninfo.h',
|
||||
'giinterfaceinfo.h',
|
||||
'giobjectinfo.h',
|
||||
'gipropertyinfo.h',
|
||||
'giregisteredtypeinfo.h',
|
||||
'girepository.h',
|
||||
'girffi.h',
|
||||
'gisignalinfo.h',
|
||||
'gistructinfo.h',
|
||||
'gitypeinfo.h',
|
||||
'gitypelib.h',
|
||||
'gitypes.h',
|
||||
'giunioninfo.h',
|
||||
'givfuncinfo.h',
|
||||
)
|
||||
|
||||
install_headers(girepo_headers, install_dir: gir_includedir)
|
||||
|
||||
gir_c_args = [
|
||||
'-DG_IREPOSITORY_COMPILATION',
|
||||
'-DG_LOG_DOMAIN="GLib-GIRepository"',
|
||||
@ -50,7 +85,7 @@ if cc.get_id() != 'msvc'
|
||||
endif
|
||||
|
||||
girepo_gthash_lib = static_library('girepository-gthash',
|
||||
sources: 'gthash.c',
|
||||
sources: ['gthash.c', gi_visibility_h],
|
||||
include_directories : configinc,
|
||||
c_args: gir_c_args + custom_c_args,
|
||||
dependencies: [
|
||||
@ -94,41 +129,6 @@ libgirepo_internals_dep = declare_dependency(
|
||||
include_directories: [girepoinc],
|
||||
)
|
||||
|
||||
gir_includedir = glib_includedir / 'girepository'
|
||||
|
||||
gi_visibility_h = custom_target(
|
||||
output: 'gi-visibility.h',
|
||||
command: [gen_visibility_macros, meson.project_version(), 'visibility-macros', 'GI', '@OUTPUT@'],
|
||||
install: true,
|
||||
install_dir: gir_includedir,
|
||||
install_tag: 'devel',
|
||||
)
|
||||
|
||||
girepo_headers = files(
|
||||
'giarginfo.h',
|
||||
'gibaseinfo.h',
|
||||
'gicallableinfo.h',
|
||||
'giconstantinfo.h',
|
||||
'gienuminfo.h',
|
||||
'gifieldinfo.h',
|
||||
'gifunctioninfo.h',
|
||||
'giinterfaceinfo.h',
|
||||
'giobjectinfo.h',
|
||||
'gipropertyinfo.h',
|
||||
'giregisteredtypeinfo.h',
|
||||
'girepository.h',
|
||||
'girffi.h',
|
||||
'gisignalinfo.h',
|
||||
'gistructinfo.h',
|
||||
'gitypeinfo.h',
|
||||
'gitypelib.h',
|
||||
'gitypes.h',
|
||||
'giunioninfo.h',
|
||||
'givfuncinfo.h',
|
||||
)
|
||||
|
||||
install_headers(girepo_headers, install_dir: gir_includedir)
|
||||
|
||||
girepo_sources = files(
|
||||
'gdump.c',
|
||||
'giarginfo.c',
|
||||
|
Loading…
Reference in New Issue
Block a user