File: wscript

package info (click to toggle)
ardour 1%3A8.12.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 147,336 kB
  • sloc: cpp: 645,609; ansic: 515,891; xml: 123,665; python: 35,344; javascript: 15,340; sh: 4,983; asm: 1,800; perl: 958; php: 785; makefile: 298; objc: 28
file content (39 lines) | stat: -rw-r--r-- 1,193 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/env python
import waflib.Utils as Utils
import os

def options(ctx):
    pass

def configure(ctx):
    pass

def build(bld):
    obj = bld (features = 'cxx c cxxprogram')
    obj.install_path = None
    obj.source    = [ 'bb.cc', 'gui.cc', 'misc.cc' ]
    obj.target    = 'bb'
    obj.includes  = ['.', '../libs']
    obj.use       = [ 'libardour', 'libevoral', ]
    obj.uselib    = 'JACK GTKMM XML'

    wrapper_subst_dict = {
        'INSTALL_PREFIX' : bld.env['PREFIX'],
        'LIBDIR'         : os.path.normpath(bld.env['DLLDIR']),
        'DATADIR'        : os.path.normpath(bld.env['DATADIR']),
        'CONFDIR'        : os.path.normpath(bld.env['CONFDIR']),
        'LIBS'           : 'build/libs',
        'VERSION'        : bld.env['VERSION'],
        'EXECUTABLE'     : 'build/tools/bb/bb'
    }

    def set_subst_dict(obj, dict):
        for i in dict:
            setattr(obj, i, dict[i])

    obj              = bld (features = 'subst')
    obj.source       = '../../gtk2_ardour/ardev_common.sh.in'
    obj.target       = 'bbdev_common_waf.sh'
    obj.chmod        = Utils.O755
    obj.dict         = wrapper_subst_dict
    set_subst_dict(obj, wrapper_subst_dict)