diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2017-03-13 16:21:40 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2017-03-13 16:21:40 +0000 |
commit | c1c04b0cfd3ebc8b4cf7299b6bf71a5149762330 (patch) | |
tree | a1e62c87abf808ae6af44aee85189e722c9270ce | |
parent | 4641cad9c3c9a26a1cb22d8517b971747b0271b6 (diff) | |
download | json-glib-c1c04b0cfd3ebc8b4cf7299b6bf71a5149762330.tar.gz |
build: Add missing argument to the introspection scanner
The autotools build specifies the include header with the --c-include
argument for g-ir-scanner, so we need to do the same when building with
Meson.
-rw-r--r-- | json-glib/meson.build | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/json-glib/meson.build b/json-glib/meson.build index d110f20..8dc466a 100644 --- a/json-glib/meson.build +++ b/json-glib/meson.build @@ -98,16 +98,22 @@ pkgg.generate(libraries: [ json_lib ], json_gen_headers = [ json_version_h, json_glib_enums.get(1), ] if build_gir - gnome.generate_gir(json_lib, - sources: source_c + source_h + json_glib_enums + [ json_version_h ], - namespace: 'Json', - nsversion: apiversion, - identifier_prefix: 'Json', - symbol_prefix: 'json', - export_packages: 'json-glib-1.0', - includes: [ 'GObject-2.0', 'Gio-2.0', ], - install: true, - extra_args: ['-DJSON_COMPILATION']) + gir_args = [ + '--c-include=json-glib/json-glib.h', + '-DJSON_COMPILATION', + ] + + + gnome.generate_gir(json_lib, + sources: source_c + source_h + json_glib_enums + [ json_version_h ], + namespace: 'Json', + nsversion: apiversion, + identifier_prefix: 'Json', + symbol_prefix: 'json', + export_packages: 'json-glib-1.0', + includes: [ 'GObject-2.0', 'Gio-2.0', ], + install: true, + extra_args: gir_args) endif json_glib_dep = declare_dependency(link_with: json_lib, |