From: Niels De Graef Date: Mon, 12 Aug 2019 04:58:56 +0000 (+0200) Subject: meson: Generate VAPI file X-Git-Tag: archive/raspbian/1%0.1.106-3+rpi1^2~15^2~9^2~18 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=fcfb6e802aeb7ea243aab3de7c8806f2bff3fef8;p=babl.git meson: Generate VAPI file This can be used to call Babl from Vala. This is also very useful when we want to do the same thing (calling from vala) for GIMP 3.x --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6da021f..f98bb7b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,6 +17,7 @@ cache: git gobject-introspection meson + vala ${EXTRA_PKGS} script: - meson _build diff --git a/babl/meson.build b/babl/meson.build index 542bb62..6feb107 100644 --- a/babl/meson.build +++ b/babl/meson.build @@ -161,4 +161,11 @@ if get_option('enable-gir') header: 'babl.h', install: true, ) + + if get_option('enable-vapi') + gnome.generate_vapi(lib_name, + sources: babl_gir[0], + install: true, + ) + endif endif diff --git a/meson_options.txt b/meson_options.txt index eca27be..6391927 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -6,5 +6,6 @@ option('enable-sse4_1', type: 'boolean', value: true, description: 'enable SSE4. option('enable-avx2', type: 'boolean', value: true, description: 'enable AVX2 support') option('enable-f16c', type: 'boolean', value: true, description: 'enable hardware half-float support') option('enable-gir', type: 'boolean', value: true, description: 'enable GObject-Introspection (GIR)') +option('enable-vapi', type: 'boolean', value: true, description: 'enable Vala .vapi generation (requires GIR)') option('with-docs', type: 'boolean', value: true, description: 'build website') option('with-lcms', type: 'boolean', value: true, description: 'build with lcms')