File: wscript

package info (click to toggle)
zyn 1%2Bgit.20100609%2Bdfsg0-4
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 1,296 kB
  • ctags: 2,634
  • sloc: python: 10,629; cpp: 5,828; ansic: 5,427; sh: 31; makefile: 14
file content (72 lines) | stat: -rw-r--r-- 2,343 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#! /usr/bin/env python
# encoding: utf-8

# TODO: check these flags and how to add them to waf
# LIBRARIES = -DPIC -Wall
# CFLAGS := -g -fPIC -DPIC -Wall -Werror

# the following two variables are used by the target "waf dist"
VERSION='2'
APPNAME='zyn'

# these variables are mandatory ('/' are converted automatically)
srcdir = '.'
blddir = 'build'

def set_options(opt):
    opt.parser.remove_option('--prefix') # prefix as commonly used concept has no use here, so we remove it to not add confusion
    opt.tool_options('compiler_cc')
    opt.tool_options('compiler_cxx')
    opt.tool_options('lv2plugin', tooldir='.')

def configure(conf):
    conf.check_tool('compiler_cc')
    conf.check_tool('compiler_cxx')
    conf.check_tool('lv2plugin', tooldir='.')

    conf.check_pkg('fftw3', mandatory=True)
    conf.check_pkg('lv2core', mandatory=True)
    conf.check_pkg('lv2dynparamplugin1', mandatory=True)

def build(bld):
    zynadd = bld.create_obj('lv2plugin')
    zynadd.uselib = 'LV2DYNPARAMPLUGIN1 LV2CORE FFTW3'
    zynadd.target = 'zynadd'
    zynadd.ttl = ['zynadd.ttl', 'manifest.ttl']
    zynadd.source = [
        'lv2plugin.c',
        'zynadd.c',
        'util.c',
        'zynadd_dynparam.c',
        'log.c',
        'fft.c',
        'zynadd_dynparam_value_changed_callbacks.c',
        'zynadd_dynparam_forest_map.c',
        'zynadd_dynparam_forest_map_top.c',
        'zynadd_dynparam_forest_map_voice.c',
        'portamento.c',
        'oscillator.c',
        'oscillator_access.c',
        'filter_sv.c',
        'addsynth.cpp',
        'addnote.cpp',
        'lfo.cpp',
        'filter_parameters.cpp',
        'envelope_parameters.cpp',
        'filter.cpp',
        'analog_filter.cpp',
        'formant_filter.cpp',
        'envelope.cpp',
        'sv_filter.cpp',
        'resonance.cpp',
        'addsynth_component_amp_globals.cpp',
        'addsynth_component_amp_envelope.cpp',
        'addsynth_component_lfo.cpp',
        'addsynth_component_filter_globals.cpp',
        'addsynth_component_filter_analog.cpp',
        'addsynth_component_filter_formant.cpp',
        'addsynth_component_filter_sv.cpp',
        'addsynth_component_filter_envelope.cpp',
        'addsynth_component_frequency_globals.cpp',
        'addsynth_component_frequency_envelope.cpp',
        'addsynth_component_voice_globals.cpp']