mirror of
https://gitlab.gnome.org/GNOME/libmks.git
synced 2024-12-22 05:35:21 +00:00
Merge branch 'add-vala-support' into 'main'
Add VAPI (vala) support See merge request chergert/libmks!11
This commit is contained in:
commit
15e6667292
@ -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
|
||||
|
@ -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
|
@ -7,3 +7,5 @@ option('docs',
|
||||
option('introspection',
|
||||
type: 'feature', value: 'auto',
|
||||
description: 'Generate gir data')
|
||||
|
||||
option('vapi', type: 'boolean', value: true)
|
||||
|
Loading…
Reference in New Issue
Block a user