forked from smooth80/defold
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwscript
40 lines (28 loc) · 891 Bytes
/
wscript
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
#! /usr/bin/env python
VERSION='0.1'
APPNAME='sound'
srcdir = '.'
blddir = 'build'
import os, sys, re
import waf_dynamo, waf_ddf
def init():
pass
def set_options(opt):
opt.tool_options('waf_dynamo')
def configure(conf):
conf.check_tool('waf_dynamo')
conf.check_tool('java')
waf_ddf.configure(conf)
conf.sub_config('src')
conf.env.append_value('CPPPATH', "default/src")
conf.env['STATICLIB_SCRIPT'] = 'script'
conf.env['STATICLIB_TREMOLO'] = 'tremolo'
conf.env.append_unique('CCDEFINES', 'DLIB_LOG_DOMAIN="SOUND"')
conf.env.append_unique('CXXDEFINES', 'DLIB_LOG_DOMAIN="SOUND"')
def build(bld):
bld.add_subdirs('src')
def shutdown():
if sys.platform == 'linux2' and not os.path.exists('/dev/snd/controlC0'):
print "SKIPPING TESTS SINCE WE DETECTED NO SOUND CARD"
return
waf_dynamo.run_tests(valgrind = True)