diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fa18f66..644a4ac 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,7 +23,7 @@ reference: variables: MESON_FLAGS: "-Dwerror=true --buildtype=release" before_script: - - sudo dnf install -y gtk4-devel meson gcc gi-docgen gobject-introspection-devel + - sudo dnf install -y gtk4-devel meson gcc gi-docgen gobject-introspection-devel vala script: - mkdir -p pfx/ - meson ${MESON_FLAGS} --prefix=${PWD}/pfx -Ddocs=true _build diff --git a/lib/meson.build b/lib/meson.build index 1402c32..d78c244 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -128,7 +128,16 @@ if get_option('introspection').allowed() namespace: 'Mks', symbol_prefix: 'mks', identifier_prefix: 'Mks', - includes: ['Gio-2.0', 'Gtk-4.0'], + includes: ['Gio-2.0', 'Gtk-4.0'], install: true, + header: 'libmks-1.h' ) + + if get_option('vapi') + libmks_vapi = gnome.generate_vapi('libmks-' + api_version, + sources: libmks_gir[0], + packages: [ 'gio-2.0', 'gtk4'], + install: true, + ) + endif endif \ No newline at end of file diff --git a/meson_options.txt b/meson_options.txt index 2662a8d..ece7dad 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -7,3 +7,5 @@ option('docs', option('introspection', type: 'feature', value: 'auto', description: 'Generate gir data') + +option('vapi', type: 'boolean', value: true)