aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2018-04-13 16:32:28 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2018-04-13 16:32:28 +0200
commitfb8200c91acfcf77463e7ecf5a782da528e804fb (patch)
tree6d23a9fee01f3e68849d7152ecd2d3dc92d36570 /meson.build
parentb87e4573fcef201c4ef60fc039821f22f7fe85b1 (diff)
downloadsynthpod-fb8200c91acfcf77463e7ecf5a782da528e804fb.tar.xz
nk: preparations for canvas.
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build9
1 files changed, 7 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index a575e224..c708e1f3 100644
--- a/meson.build
+++ b/meson.build
@@ -29,8 +29,7 @@ m_dep = cc.find_library('m')
rt_dep = cc.find_library('rt')
lv2_dep = dependency('lv2', version : '>=1.14.0')
thread_dep = dependency('threads')
-lilv_dep = dependency('lilv-0', version : '>=0.24.0',
- static : meson.is_cross_build())
+lilv_dep = dependency('lilv-0', version : '>=0.24.0', static : meson.is_cross_build())
alsa_dep = dependency('alsa', version : '>=1.1.0', required : false)
zita_dep = cc.find_library('zita-alsa-pcmi', required : false)
jack_dep = dependency('jack', required : false)
@@ -43,6 +42,7 @@ gtk2_dep = dependency('gtk+-2.0', version : '>=2.24', required : false)
gtk3_dep = dependency('gtk+-3.0', version : '>=3.22', required : false)
qt4_dep = dependency('qt4', modules : ['Core', 'Gui'], required : false)
qt5_dep = dependency('qt5', modules : ['Core', 'Widgets', 'Gui'], required : false)
+cairo_dep = dependency('cairo', static : meson.is_cross_build(), required : false)
bin_deps = [m_dep, rt_dep, lv2_dep, thread_dep, lilv_dep]
@@ -92,6 +92,11 @@ if qt5_dep.found()
add_project_arguments('-DSANDBOX_QT5', language : 'c')
endif
+if cairo_dep.found()
+ message('using cairo canvas')
+ add_project_arguments('-DUSE_CAIRO_CANVAS', language : 'c')
+endif
+
add_project_arguments('-DSANDBOX_SHOW', language : 'c')
add_project_arguments('-DSANDBOX_KX', language : 'c')