mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-02 17:26:17 +01:00
glib: Install platform specific headers in a separate step
Maintain them in separate lists within `meson.build`. This makes no functional difference at the moment, but will be used in an upcoming commit to generate separate GIR files per platform. Signed-off-by: Philip Withnall <pwithnall@gnome.org> Helps: #3037
This commit is contained in:
parent
0d9170c6b8
commit
1f9e44d623
@ -147,15 +147,11 @@ glib_headers = files(
|
|||||||
'glib.h',
|
'glib.h',
|
||||||
'glib-object.h',
|
'glib-object.h',
|
||||||
)
|
)
|
||||||
if host_system != 'windows'
|
|
||||||
glib_headers += files('glib-unix.h')
|
|
||||||
endif
|
|
||||||
install_headers(glib_headers, install_dir : glib_includedir)
|
install_headers(glib_headers, install_dir : glib_includedir)
|
||||||
|
|
||||||
if host_system != 'windows'
|
if host_system != 'windows'
|
||||||
# Expose as variable to be used by gobject-introspection
|
glib_unix_headers = files('glib-unix.h')
|
||||||
# when it includes GLib as a subproject
|
install_headers(glib_unix_headers, install_dir : glib_includedir)
|
||||||
glib_unix_h = files('glib-unix.h')
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if host_system == 'windows'
|
if host_system == 'windows'
|
||||||
@ -251,12 +247,16 @@ glib_sub_headers = files(
|
|||||||
'gvarianttype.h',
|
'gvarianttype.h',
|
||||||
'gvariant.h',
|
'gvariant.h',
|
||||||
'gversion.h',
|
'gversion.h',
|
||||||
'gwin32.h',
|
|
||||||
'gprintf.h',
|
'gprintf.h',
|
||||||
)
|
)
|
||||||
|
|
||||||
install_headers(glib_sub_headers, install_dir : glib_sub_includedir)
|
install_headers(glib_sub_headers, install_dir : glib_sub_includedir)
|
||||||
|
|
||||||
|
if host_system == 'windows'
|
||||||
|
glib_win32_headers = files('gwin32.h')
|
||||||
|
install_headers(glib_win32_headers, install_dir : glib_sub_includedir)
|
||||||
|
endif
|
||||||
|
|
||||||
glib_deprecated_sources = files(
|
glib_deprecated_sources = files(
|
||||||
'deprecated/gallocator.c',
|
'deprecated/gallocator.c',
|
||||||
'deprecated/gcache.c',
|
'deprecated/gcache.c',
|
||||||
|
Loading…
Reference in New Issue
Block a user