mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Meson: Add missing include_directories when using glib as subproject
When using glib as subproject we are forced to pass glib_dep, gobject_dep and gio_dep to any build target. If we pass only gio_dep it will missing include directory for glib and gobject.
This commit is contained in:
parent
71bbe9f3e0
commit
93555577c5
@ -857,7 +857,7 @@ endif
|
||||
libgio_dep = declare_dependency(link_with : libgio,
|
||||
dependencies : [gioenumtypes_dep],
|
||||
# We sadly need to export configinc here because everyone includes <gio/*.h>
|
||||
include_directories : [configinc, gioinc])
|
||||
include_directories : [configinc, glibinc, gobjectinc, gmoduleinc, gioinc])
|
||||
|
||||
if host_system == 'windows'
|
||||
# Hack till https://github.com/mesonbuild/meson/issues/2324 is fixed
|
||||
|
@ -140,4 +140,4 @@ pkg.generate(libraries : [libgmodule, export_dynamic_ldflags],
|
||||
)
|
||||
|
||||
libgmodule_dep = declare_dependency(link_with : libgmodule,
|
||||
include_directories : gmoduleinc)
|
||||
include_directories : [configinc, gmoduleinc, glibinc])
|
||||
|
@ -84,7 +84,7 @@ pkg.generate(libraries : libgobject,
|
||||
)
|
||||
|
||||
libgobject_dep = declare_dependency(link_with : libgobject,
|
||||
include_directories : gobjectinc)
|
||||
include_directories : [configinc, glibinc, gobjectinc])
|
||||
|
||||
python_tools = [
|
||||
'glib-genmarshal',
|
||||
|
Loading…
Reference in New Issue
Block a user