Commit 39cb6d3c authored by Felipe Borges's avatar Felipe Borges 👣

build: Generate VAPI file (Vala Bindings)

Since the main motivation to write this library/widget is to
introduce RDP support in GNOME Boxes.
parent 54c0bb52
project('gtk-frdp','c',
project('gtk-frdp',
['c', 'vala'],
version: '0.1.0',
meson_version: '>= 0.40.0',
)
......@@ -18,6 +19,7 @@ datadir = get_option('datadir')
libdir = get_option('libdir')
girdir = join_paths(datadir, 'gir-1.0')
typelibdir = join_paths(libdir, 'girepository-1.0')
vapidir = join_paths(datadir, 'vala', 'vapi')
gnome = import('gnome')
......
......@@ -31,6 +31,7 @@ configure_file(
)
cc = meson.get_compiler('c')
vala = meson.get_compiler('vala')
gtk_frdp_deps = [
dependency('freerdp2'),
......@@ -68,6 +69,14 @@ gtk_frdp_gir = gnome.generate_gir(gtk_frdp_lib,
extra_args: [ '--c-include=gtk-frdp.h', '--quiet' ],
)
gtk_frdp_vapi = gnome.generate_vapi('gtk-frdp-' + api_version,
sources: gtk_frdp_gir[0],
packages: [ 'gio-2.0', 'gtk+-3.0' ],
install: true,
install_dir: vapidir,
metadata_dirs: [ meson.current_source_dir() ],
)
pkg = import('pkgconfig')
pkg.generate(
......
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