Commit eb1cac46 authored by Rico Tzschichholz's avatar Rico Tzschichholz

Add support to build vala bindings

parent 8f07b100
Pipeline #64150 passed with stage
in 2 minutes and 27 seconds
build-fedora:
image: fedora:latest
before_script:
- dnf install -y gcc meson ninja-build gobject-introspection-devel glib-devel gtk-doc gettext-devel make polkit-devel redhat-rpm-config systemd-devel dbus-devel
- dnf install -y gcc meson ninja-build gobject-introspection-devel glib-devel gtk-doc gettext-devel make polkit-devel redhat-rpm-config systemd-devel dbus-devel vala
script:
- meson -Dgtk_doc=true _build
- ninja -C _build all
......
......@@ -10,5 +10,7 @@ option('systemd', type: 'boolean', value: false, description: 'Use systemd')
option('elogind', type: 'boolean', value: false, description: 'Use elogind')
option('introspection', type: 'boolean', value: true, description: 'Enable introspection for this build')
option('vapi', type: 'boolean', value: true, description : 'Enable Vala bindings for this build')
option('docbook', type: 'boolean', value: false, description: 'build documentation (requires xmlto)')
option('gtk_doc', type: 'boolean', value: false, description: 'use gtk-doc to build documentation')
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment