aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2019-07-22 09:22:11 +0200
committerGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2019-07-22 09:22:11 +0200
commit85d0caa141755ac1bce13bad3d6509d4702efc6f (patch)
treeebdc887ba32e4f1e61a24bbc80071943e69edadc
parent5d204d6730d7e64e23ab2cbfcc65b986b6c4477d (diff)
downloadsynthpod-85d0caa141755ac1bce13bad3d6509d4702efc6f.zip
synthpod-85d0caa141755ac1bce13bad3d6509d4702efc6f.tar.gz
synthpod-85d0caa141755ac1bce13bad3d6509d4702efc6f.tar.bz2
synthpod-85d0caa141755ac1bce13bad3d6509d4702efc6f.tar.xz
meson: prepare for d2tk inclusion.
-rw-r--r--VERSION2
-rw-r--r--meson.build11
-rw-r--r--meson_options.txt1
3 files changed, 13 insertions, 1 deletions
diff --git a/VERSION b/VERSION
index 95f1d1f..8bf9d24 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.1.6003
+0.1.6005
diff --git a/meson.build b/meson.build
index 36a15dc..4aebd53 100644
--- a/meson.build
+++ b/meson.build
@@ -5,6 +5,17 @@ project('synthpod', ['c', 'cpp'], default_options : [
'b_lto=false',
'c_std=gnu11'])
+d2tk = subproject('d2tk')
+
+use_backend = get_option('ui-backend')
+if use_backend == 'nanovg'
+ d2tk_dep = d2tk.get_variable('d2tk_nanovg')
+elif use_backend == 'cairo'
+ d2tk_dep = d2tk.get_variable('d2tk_cairo')
+else
+ error('no valid UI backend given')
+endif
+
cc = meson.get_compiler('c')
inc_incs = include_directories('include')
diff --git a/meson_options.txt b/meson_options.txt
index bcbc6d5..3edc68f 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -7,3 +7,4 @@ option('use-qt4', type : 'boolean', value : false)
option('use-qt5', type : 'boolean', value : false)
option('use-gtk2', type : 'boolean', value : false)
option('use-gtk3', type : 'boolean', value : false)
+option('ui-backend', type : 'string', value : 'nanovg')