diff options
author | Robin Gareus <robin@gareus.org> | 2016-03-20 20:52:12 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-03-20 20:54:36 +0100 |
commit | 6972db0d554ba36d05fbd0ada5e303148cbab2bf (patch) | |
tree | 5c0ae4e5c9495fae4a77f1b43de6a192d367bea7 /gtk2_ardour/wscript | |
parent | 618ef9f9230a4ef497a6c0c003f26fa4fbc351fa (diff) |
add luadoc binary (developer tool) to dump lua bindings
output is either JSON or lua-tables.
enable via ./waf configure --luadoc ... , needs C++11
Diffstat (limited to 'gtk2_ardour/wscript')
-rw-r--r-- | gtk2_ardour/wscript | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/gtk2_ardour/wscript b/gtk2_ardour/wscript index 36223bd2cb..72e8120585 100644 --- a/gtk2_ardour/wscript +++ b/gtk2_ardour/wscript @@ -405,6 +405,44 @@ def build(bld): VERSION = "%s.%s" % (bld.env['MAJOR'], bld.env['MINOR']) I18N_PACKAGE = 'gtk2_ardour' + bld.env['MAJOR'] + # Tool to dump lua-bindings (of gtk2ardour + libs) + if re.search ("linux", sys.platform) != None and bld.env['LUABINDINGDOC']: + obj = bld (features = 'cxx c cxxprogram') + obj.install_path = None + obj.source = list(gtk2_ardour_sources) + obj.target = 'luadoc' + 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 += [ 'luadoc.cc', 'bundle_env_linux.cc' ] + if bld.is_defined('HAVE_SUIL'): + obj.source += [ 'lv2_plugin_ui.cc' ] + obj.use += [ 'SUIL' ] + if bld.is_defined('LXVST_SUPPORT'): + obj.source += [ 'vst_plugin_ui.cc' ] + obj.source += [ 'linux_vst_gui_support.cc', 'lxvst_plugin_ui.cc' ] + obj.defines += [ 'LXVST_SUPPORT' ] + obj.use += [ 'X11' ] + + if bld.is_defined('WINDOWS_VST_SUPPORT') and bld.env['build_target'] != 'mingw': # Windows VST support w/wine # If we require VST support we build a stub main() and the FST library |