diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2019-09-13 21:01:18 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2019-09-16 19:45:34 +0200 |
commit | eb1cac46823520eeadaf22e5be1fe3d3632e6e7e (patch) | |
tree | 40bd8b9609c3ccba84befd146c33a502d7cae487 /src | |
parent | 8f07b100060c5957a529a0f4a7d27189c59654e2 (diff) |
Add support to build vala bindings
Diffstat (limited to 'src')
-rw-r--r-- | src/libaccountsservice/meson.build | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/libaccountsservice/meson.build b/src/libaccountsservice/meson.build index 4e134db..615a015 100644 --- a/src/libaccountsservice/meson.build +++ b/src/libaccountsservice/meson.build @@ -95,7 +95,7 @@ pkg.generate( ) if get_option('introspection') - gnome.generate_gir( + as_gir_gen_sources = gnome.generate_gir( libaccountsservice, sources: sources + headers + [enum_sources[1]], includes: ['GObject-2.0', 'Gio-2.0'], @@ -106,4 +106,12 @@ if get_option('introspection') header: join_paths(subdir, 'act.h'), install: true, ) + + if get_option('vapi') + gnome.generate_vapi(act_name, + sources : as_gir_gen_sources[0], + packages : 'gio-2.0', + install : true, + ) + endif endif |