2 from waflib.extras import autowaf as autowaf
3 from waflib import Options, TaskGen
4 import waflib.Logs as Logs, waflib.Utils as Utils
10 from waflib.Task import Task
20 # needed for code used from libardour
21 I18N_PACKAGE = 'ardour3'
24 autowaf.set_options(opt)
28 conf.load('compiler_cxx')
29 autowaf.configure(conf)
31 # Add a waf `feature' to allow compilation of things using winegcc
32 from waflib.TaskGen import feature
34 def set_winegcc(self):
35 self.env.LINK_CXX = self.env.LINK_CC = 'wineg++'
36 self.env.CC = 'winegcc'
39 VERSION = "%s.%s" % (bld.env['MAJOR'], bld.env['MINOR'])
40 if not (bld.is_defined('WINDOWS_VST_SUPPORT') or bld.is_defined('LXVST_SUPPORT')):
43 if bld.is_defined('WINDOWS_VST_SUPPORT') and bld.env['build_target'] != 'mingw':
44 # wine exec wrapper script
45 obj = bld(features = 'subst', rule= 'chmod 0755 ${TGT}')
46 obj.source = 'scanner.wine'
47 obj.target = 'ardour-' + bld.env['VERSION'] + '-vst-scanner'
48 obj.chmod = Utils.O755
49 obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
51 'VERSION' : bld.env['VERSION'],
54 obj = bld (features = 'c cxx cxxprogram wine')
60 obj.target = 'ardour-' + bld.env['VERSION'] + '-vst-scanner.exe.so'
61 obj.linkflags = ['-mwindows', '-Wl,--export-dynamic']
63 obj = bld (features = 'cxx c cxxprogram')
64 obj.source = ( 'scanner.cc' )
65 obj.target = 'ardour-' + bld.env['VERSION'] + '-vst-scanner'
67 obj.includes = [ '../pbd/', '../ardour/', '.' ]
72 'PACKAGE="' + I18N_PACKAGE + '"',
74 obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
75 obj.uselib = ['GIOMM', 'DL']