gplugin/gplugin

Start of vapi generation
feature/vala
2019-07-17, Gary Kramlich
fb76a67952da
Parents ce90e3f2718e
Children 69ac46771479
Start of vapi generation
--- a/meson.build Wed Jul 17 08:27:34 2019 -0500
+++ b/meson.build Wed Jul 17 08:49:43 2019 -0500
@@ -104,6 +104,7 @@
subdir('perl')
subdir('python')
subdir('tcc')
+subdir('vala')
###############################################################################
# Install stuff
--- a/meson_options.txt Wed Jul 17 08:27:34 2019 -0500
+++ b/meson_options.txt Wed Jul 17 08:49:43 2019 -0500
@@ -60,3 +60,9 @@
type : 'boolean', value : false,
description : 'Whether or not to build the TCC plugin loader'
)
+
+option(
+ 'vapi',
+ type : 'boolean', value : false,
+ description : 'Whether or not to build vapi files for gplugin'
+)
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/vala/meson.build Wed Jul 17 08:49:43 2019 -0500
@@ -0,0 +1,21 @@
+if get_option('vapi')
+ if not get_option('gobject-introspection')
+ error('Vala generation requires GObject Introspection.')
+ endif
+
+ vapigen = find_program('vapigen')
+
+ # regular gplugin vapi
+ custom_target(
+ 'gplugin.vapi',
+ command : [
+ vapigen,
+ '--library', 'gplugin',
+ '--directory', meson.current_build_dir(),
+ gplugin_gir,
+ ],
+ output : 'gplugin.vapi',
+ install : true,
+ install_dir : join_paths(get_option('datadir'), 'vala', 'vapi'),
+ )
+endif # vala
\ No newline at end of file