getdetune() coding style cleanup
[zyn.git] / wscript
blob51ae42cffdc221543f68163a6929c5ca88706c5e
1 #! /usr/bin/env python
2 # encoding: utf-8
4 # TODO: check these flags and how to add them to waf
5 # LIBRARIES = -DPIC -Wall
6 # CFLAGS := -g -fPIC -DPIC -Wall -Werror
8 # the following two variables are used by the target "waf dist"
9 VERSION='2'
10 APPNAME='zyn'
12 # these variables are mandatory ('/' are converted automatically)
13 srcdir = '.'
14 blddir = 'build'
16 def set_options(opt):
17 opt.parser.remove_option('--prefix') # prefix as commonly used concept has no use here, so we remove it to not add confusion
18 opt.tool_options('compiler_cc')
19 opt.tool_options('compiler_cxx')
20 opt.tool_options('lv2plugin', tooldir='.')
22 def configure(conf):
23 conf.check_tool('compiler_cc')
24 conf.check_tool('compiler_cxx')
25 conf.check_tool('lv2plugin', tooldir='.')
27 conf.check_pkg('fftw3', mandatory=True)
28 conf.check_pkg('lv2core', mandatory=True)
29 conf.check_pkg('lv2dynparamplugin1', mandatory=True)
31 def build(bld):
32 zynadd = bld.create_obj('lv2plugin')
33 zynadd.uselib = 'LV2DYNPARAMPLUGIN1 LV2CORE FFTW3'
34 zynadd.target = 'zynadd'
35 zynadd.ttl = ['zynadd.ttl', 'manifest.ttl']
36 zynadd.source = [
37 'lv2plugin.c',
38 'zynadd.c',
39 'util.c',
40 'zynadd_dynparam.c',
41 'log.c',
42 'fft.c',
43 'zynadd_dynparam_value_changed_callbacks.c',
44 'zynadd_dynparam_forest_map.c',
45 'zynadd_dynparam_forest_map_top.c',
46 'zynadd_dynparam_forest_map_voice.c',
47 'portamento.c',
48 'oscillator.c',
49 'oscillator_access.c',
50 'filter_sv.c',
51 'addsynth.cpp',
52 'addnote.cpp',
53 'lfo.cpp',
54 'filter_parameters.cpp',
55 'envelope_parameters.cpp',
56 'filter.cpp',
57 'analog_filter.cpp',
58 'formant_filter.cpp',
59 'envelope.cpp',
60 'sv_filter.cpp',
61 'resonance.cpp',
62 'addsynth_component_amp_globals.cpp',
63 'addsynth_component_amp_envelope.cpp',
64 'addsynth_component_lfo.cpp',
65 'addsynth_component_filter_globals.cpp',
66 'addsynth_component_filter_analog.cpp',
67 'addsynth_component_filter_formant.cpp',
68 'addsynth_component_filter_sv.cpp',
69 'addsynth_component_filter_envelope.cpp',
70 'addsynth_component_frequency_globals.cpp',
71 'addsynth_component_frequency_envelope.cpp',
72 'addsynth_component_voice_globals.cpp']