forked from smooth80/defold
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwscript
39 lines (27 loc) · 813 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
#! /usr/bin/env python
VERSION='0.1'
APPNAME='physics'
srcdir = '.'
blddir = 'build'
import sys
import waf_dynamo, waf_ddf
def init():
pass
def set_options(opt):
opt.sub_options('src')
opt.tool_options('waf_dynamo')
def configure(conf):
conf.check_tool('waf_dynamo')
waf_ddf.configure(conf)
conf.sub_config('src')
conf.env.append_value('CPPPATH', "default/src")
conf.env['STATICLIB_DLIB'] = 'dlib'
conf.env['STATICLIB_BULLET'] = ['BulletDynamics', 'BulletCollision', 'LinearMath']
conf.env.append_unique('CCDEFINES', 'DLIB_LOG_DOMAIN="PHYSICS"')
conf.env.append_unique('CXXDEFINES', 'DLIB_LOG_DOMAIN="PHYSICS"')
def build(bld):
bld.add_subdirs('src')
import Build, Options
import os, subprocess
def shutdown():
waf_dynamo.run_tests(valgrind = True)