aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2019-07-31 19:20:46 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2019-07-31 19:20:46 +0200
commit6c8c2177a191b5103a12b4204907a19e7f9ac1fb (patch)
tree1063ead4bcfbfabf9077669ae99c82f8815733d0
parentc4500da2de63fe69b7dcf79b81d432889312f4f1 (diff)
downloadsynthpod-6c8c2177a191b5103a12b4204907a19e7f9ac1fb.tar.xz
meson: add lv2_validate/lv2lint test targets.
-rw-r--r--VERSION2
-rw-r--r--meson.build3
-rw-r--r--plugins/meson.build29
3 files changed, 30 insertions, 4 deletions
diff --git a/VERSION b/VERSION
index f7b5e1a2..88755940 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.1.6065
+0.1.6067
diff --git a/meson.build b/meson.build
index 37246ec3..36800c4c 100644
--- a/meson.build
+++ b/meson.build
@@ -17,6 +17,9 @@ else
endif
cc = meson.get_compiler('c')
+lv2_validate = find_program('lv2_validate', native : true, required : false)
+sord_validate = find_program('sord_validate', native : true, required : false)
+lv2lint = find_program('lv2lint', required : false)
inc_incs = include_directories('include')
app_incs = include_directories('app')
diff --git a/plugins/meson.build b/plugins/meson.build
index 1c7bd202..5dbcfc80 100644
--- a/plugins/meson.build
+++ b/plugins/meson.build
@@ -51,6 +51,8 @@ elif host_machine.system() == 'darwin'
#nk_srcs += join_paths('..', 'pugl', 'pugl', 'pugl_osx.m')
endif
+ttls = []
+
if use_x11
nk = shared_module('synthpod_nk', nk_srcs,
c_args : c_args,
@@ -77,27 +79,30 @@ if use_x11
install : true,
install_dir : plug_dir)
- configure_file (
+ ui_ttl = configure_file (
input : 'synthpod_ui.ttl',
output : 'synthpod_ui.ttl',
copy : true,
install : true,
install_dir : plug_dir)
+ ttls += ui_ttl
endif
-configure_file(
+manifest_ttl = configure_file(
input : 'manifest.ttl.in',
output : 'manifest.ttl',
configuration : conf_data,
install : true,
install_dir : plug_dir)
+ttls += manifest_ttl
-configure_file(
+dsp_ttl = configure_file(
input : 'synthpod.ttl',
output : 'synthpod.ttl',
copy : true,
install : true,
install_dir : plug_dir)
+ttls += dsp_ttl
#FIXME paths
install_data('../data/font/Abel-Regular.ttf', install_dir : plug_dir)
@@ -125,3 +130,21 @@ install_data('../data/png/layers.png', install_dir : plug_dir )
install_data('../data/png/user.png', install_dir : plug_dir )
install_data('../data/png/settings.png', install_dir : plug_dir )
install_data('../data/png/menu.png', install_dir : plug_dir )
+
+if lv2_validate.found() and sord_validate.found()
+ test('LV2 validate', lv2_validate,
+ args : ttls)
+endif
+
+if lv2lint.found()
+ test('LV2 lint', lv2lint,
+ args : ['-Ewarn',
+ 'http://open-music-kontrollers.ch/lv2/synthpod#control2cv',
+ 'http://open-music-kontrollers.ch/lv2/synthpod#cv2control',
+ 'http://open-music-kontrollers.ch/lv2/synthpod#heavyload',
+ 'http://open-music-kontrollers.ch/lv2/synthpod#keyboard',
+ 'http://open-music-kontrollers.ch/lv2/synthpod#midisplitter',
+ 'http://open-music-kontrollers.ch/lv2/synthpod#panic',
+ 'http://open-music-kontrollers.ch/lv2/synthpod#placeholder',
+ 'http://open-music-kontrollers.ch/lv2/synthpod#stereo'])
+endif