mirror of
https://gitlab.gnome.org/GNOME/libmks.git
synced 2025-01-08 22:05:33 +00:00
Add VAPI (vala) support
This commit is contained in:
parent
188c63a183
commit
14c368d9e7
@ -23,7 +23,7 @@ reference:
|
|||||||
variables:
|
variables:
|
||||||
MESON_FLAGS: "-Dwerror=true --buildtype=release"
|
MESON_FLAGS: "-Dwerror=true --buildtype=release"
|
||||||
before_script:
|
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:
|
script:
|
||||||
- mkdir -p pfx/
|
- mkdir -p pfx/
|
||||||
- meson ${MESON_FLAGS} --prefix=${PWD}/pfx -Ddocs=true _build
|
- meson ${MESON_FLAGS} --prefix=${PWD}/pfx -Ddocs=true _build
|
||||||
|
@ -130,5 +130,14 @@ if get_option('introspection').allowed()
|
|||||||
identifier_prefix: 'Mks',
|
identifier_prefix: 'Mks',
|
||||||
includes: ['Gio-2.0', 'Gtk-4.0'],
|
includes: ['Gio-2.0', 'Gtk-4.0'],
|
||||||
install: true,
|
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
|
endif
|
@ -7,3 +7,5 @@ option('docs',
|
|||||||
option('introspection',
|
option('introspection',
|
||||||
type: 'feature', value: 'auto',
|
type: 'feature', value: 'auto',
|
||||||
description: 'Generate gir data')
|
description: 'Generate gir data')
|
||||||
|
|
||||||
|
option('vapi', type: 'boolean', value: true)
|
||||||
|
Loading…
Reference in New Issue
Block a user