5 import waflib.extras.autowaf as autowaf
6 import waflib.Options as Options, waflib.Utils as Utils
13 autowaf.set_options(opt)
16 conf.load('compiler_c')
17 autowaf.configure(conf)
18 if Options.options.lv2:
19 autowaf.check_pkg(conf, 'lv2', atleast_version='1.0.0',
20 uselib_store='LV2_1_0_0')
23 bundle = 'a-fluidsynth.lv2'
24 module_pat = re.sub('^lib', '', bld.env.cshlib_PATTERN)
25 module_ext = module_pat[module_pat.rfind('.'):]
27 if bld.is_defined ('HAVE_LV2'):
29 for i in ['manifest.ttl', 'a-fluidsynth.ttl']:
30 bld(features = 'subst',
32 target = '../../LV2/%s/%s' % (bundle, i),
33 install_path = '${LV2DIR}/%s' % bundle,
37 # Build plugin library
38 obj = bld(features = 'cxx cshlib',
39 source = 'a-fluidsynth.cc',
40 name = 'a-fluidsynth',
41 cxxflags = [ '-fPIC' ],
42 includes = [ '../../ardour' ],
43 target = '../../LV2/%s/a-fluidsynth' % bundle,
44 install_path = '${LV2DIR}/%s' % bundle,
45 uselib = ['LIBFLUIDSYNTH'],
49 if bld.is_defined('USE_EXTERNAL_LIBS'):
50 obj.uselib.extend(['LIBFLUIDSYNTH'])
52 obj.use.extend(['libfluidsynth_includes', 'libfluidsynth'])
54 obj.env.cshlib_PATTERN = module_pat
55 obj.env.cxxshlib_PATTERN = module_pat
57 # vi:set ts=4 sw=4 et: