meson: Install vala apis
authorArnaud Rebillout <arnaud.rebillout@collabora.com>
Mon, 5 Nov 2018 05:17:37 +0000 (12:17 +0700)
committerArun Raghavan <arun@arunraghavan.net>
Sat, 8 Jun 2019 09:57:00 +0000 (11:57 +0200)
Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
meson.build
vala/meson.build [new file with mode: 0644]

index 56d7297..7e43846 100644 (file)
@@ -64,6 +64,8 @@ if pulsedspdir == ''
   join_paths(libdir, 'pulseaudio')
 endif
 
+vapidir = join_paths(datadir, 'vala', 'vapi')
+
 bashcompletiondir = get_option('bashcompletiondir')
 if bashcompletiondir == ''
   bash_completion_dep = dependency('bash-completion', required : false)
@@ -441,6 +443,7 @@ endif
 subdir('shell-completion/bash')
 subdir('shell-completion/zsh')
 subdir('src')
+subdir('vala')
 
 ############################################################
 
diff --git a/vala/meson.build b/vala/meson.build
new file mode 100644 (file)
index 0000000..3a3572a
--- /dev/null
@@ -0,0 +1,10 @@
+vala_apis = [
+  'libpulse',
+  'libpulse-mainloop-glib',
+  'libpulse-simple',
+]
+
+foreach api : vala_apis
+  install_data(api + '.deps', api + '.vapi',
+    install_dir : vapidir)
+endforeach