summaryrefslogtreecommitdiff
path: root/gtk2_ardour/wscript
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-12-11 15:45:42 +0100
committerRobin Gareus <robin@gareus.org>2016-12-11 15:52:56 +0100
commit2481db7a7f77b7c2020f044aa685c6822c500dda (patch)
treeb2600b2d006d5ad4b2ca50f7ae733292f1be5013 /gtk2_ardour/wscript
parent165645495c9d8dac1ed490c8b1f7a793bcd8d8fd (diff)
Add a small tool to experiment with libcanvas
Diffstat (limited to 'gtk2_ardour/wscript')
-rw-r--r--gtk2_ardour/wscript30
1 files changed, 30 insertions, 0 deletions
diff --git a/gtk2_ardour/wscript b/gtk2_ardour/wscript
index eefe772b96..4b48bc9837 100644
--- a/gtk2_ardour/wscript
+++ b/gtk2_ardour/wscript
@@ -490,6 +490,36 @@ def build(bld):
obj.defines += [ 'LXVST_SUPPORT' ]
obj.use += [ 'X11' ]
+ # Tool to test libcanvas
+ if re.search ("linux", sys.platform) != None and bld.env['CANVASTESTUI']:
+ obj = bld (features = 'cxx c cxxprogram')
+ obj.install_path = None
+ obj.source = list(gtk2_ardour_sources)
+ obj.source = [ 'ardour_button.cc', 'ui_config.cc', 'tooltips.cc' ]
+ obj.target = 'canvas_test'
+ obj.includes = ['.', '../libs']
+ obj.ldflags = ['-no-undefined']
+ obj.use = [
+ 'libpbd',
+ 'libardour',
+ 'libardour_cp',
+ 'libtimecode',
+ 'libmidipp',
+ 'libgtkmm2ext',
+ 'libcanvas',
+ 'libptformat',
+ ]
+ obj.defines = [
+ 'NOMAIN',
+ 'PACKAGE="' + I18N_PACKAGE + '"',
+ 'DATA_DIR="' + os.path.normpath(bld.env['DATADIR']) + '"',
+ 'CONFIG_DIR="' + os.path.normpath(bld.env['SYSCONFDIR']) + '"',
+ 'LOCALEDIR="' + os.path.normpath(bld.env['LOCALEDIR']) + '"',
+ ]
+ obj.linkflags = ''
+ obj.uselib = 'UUID FLAC FONTCONFIG GLIBMM GTHREAD GTK OGG CURL DL GTKMM CANVAS FFTW3F LO TAGLIB XML '
+ obj.source += [ 'canvas_test.cc', ]
+
if bld.is_defined('WINDOWS_VST_SUPPORT') and bld.env['build_target'] != 'mingw':
# Windows VST support w/wine