5 import waflib.extras.autowaf as autowaf
6 from waflib import Options
13 autowaf.set_options(opt)
16 conf.load('compiler_c')
17 autowaf.configure(conf)
18 autowaf.set_c99_mode(conf)
19 if Options.options.lv2:
20 autowaf.check_pkg(conf, 'lv2', atleast_version='1.4.0',
21 uselib_store='LV2_1_4_0')
24 bundle = 'reasonablesynth.lv2'
25 module_pat = re.sub('^lib', '', bld.env.cshlib_PATTERN)
26 module_ext = module_pat[module_pat.rfind('.'):]
28 if bld.is_defined ('HAVE_LV2'):
30 for i in ['manifest.ttl', 'reasonablesynth.ttl']:
31 bld(features = 'subst',
33 target = '../../LV2/%s/%s' % (bundle, i),
34 install_path = '${LV2DIR}/%s' % bundle,
37 # Build plugin library
38 obj = bld(features = 'c cshlib',
40 dep_files = 'rsynth.c',
41 name = 'reasonablesynth',
42 target = '../../LV2/%s/reasonablesynth' % bundle,
43 install_path = '${LV2DIR}/%s' % bundle,
46 obj.env.cshlib_PATTERN = module_pat
48 # vi:set ts=4 sw=4 et: