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:
Xavier Claessens 2018-11-24 18:08:56 -05:00
parent 71bbe9f3e0
commit 93555577c5
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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])

View File

@ -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',