diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-11-23 13:45:37 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-03-10 19:05:19 +0530 |
commit | 5d15d65e26504b2188ffb42b2bf8a32e22a5add8 (patch) | |
tree | ea9f2d4335a23cb188fbb371c2b7c65bc1eefc61 /meson.build | |
parent | c2b2a76b00ec0a994426509ccd6b9dedd077f19b (diff) | |
download | gobject-introspection-5d15d65e26504b2188ffb42b2bf8a32e22a5add8.tar.gz |
meson: Use glib_dep and configinc for girepository
glib_dep is what is actually needed to #include <glib.h>, not
gobject_dep. It works incidentally with system gobject/glib but not
when built via subprojects.
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meson.build b/meson.build index b117dd15..0fb029ab 100644 --- a/meson.build +++ b/meson.build @@ -10,6 +10,8 @@ project('gobject-introspection', 'c', host_system = host_machine.system() gi_versions = meson.project_version().split('.') +configinc = include_directories('.') + py3 = import('python3') cc = meson.get_compiler('c') @@ -52,6 +54,8 @@ endif # Always bumped to match our version glib_version = '>=2.@0@.@1@'.format(gi_versions[1], gi_versions[2]) +glib_dep = dependency('glib-2.0', version : glib_version, + fallback: ['glib', 'libglib_dep']) gobject_dep = dependency('gobject-2.0', version : glib_version, fallback: ['glib', 'libgobject_dep']) gio_dep = dependency('gio-2.0', version : glib_version, |