This repository was archived by the owner on Apr 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwscript
More file actions
51 lines (34 loc) · 1.25 KB
/
wscript
File metadata and controls
51 lines (34 loc) · 1.25 KB
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
#!/usr/bin/env python
# encoding: utf-8
APPLICATION_NAME='audio_trigger'
VERSION_MAJOR = 0
VERSION_MINOR = 0
VERSION_REVISION = 1
VERSION=str(VERSION_MAJOR)+'.'+str(VERSION_MINOR)+'.'+str(VERSION_REVISION)
top = '.'
out = 'build'
def options(opt):
opt.load('compiler_cxx')
def configure(conf):
conf.load('compiler_cxx')
conf.recurse('lib/jack_client')
conf.define('VERSION', VERSION)
conf.define('APPLICATION_NAME', APPLICATION_NAME)
conf.define('DEFAULT_THRESHOLD', 0.75)
conf.define('DEFAULT_MIDI_NOTE_ACTIVE', 0x16) # Bank 3, Scene 7
conf.define('DEFAULT_MIDI_NOTE_INACTIVE', 0x17) # Bank 3, Scene 8
#conf.env.CXXFLAGS = ['-Wall', '-g']
conf.check_cfg(package='gtkmm-3.0', at_least_version='3.0.0', args='--cflags --libs', uselib_store='GTKMM3')
conf.write_config_header('config.h')
def build(bld):
bld.recurse('lib/jack_client')
SOURCES_PATTERN = ['src/**.cc', 'src/ui/**.cc']
TESTS_PATTERN = 'src/**/tests/**.cc'
MAINS_PATTERN = 'src/main.cc'
# Compile program
bld.program(
source = bld.path.ant_glob(SOURCES_PATTERN, excl=[TESTS_PATTERN]),
includes = '. lib/jack_client/include',
target = APPLICATION_NAME,
use = 'GTKMM3 JackClient'
)