forked from smooth80/defold
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwscript
24 lines (20 loc) · 1011 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
#! /usr/bin/env python
def build(bld):
if bld.env.PLATFORM in ('win32', 'x86_64-win32', 'x86_64-linux', 'x86_64-darwin'):
vpx = 'VPX'
record = 'record'
else:
vpx = ''
record = 'record_null'
extra_defines = []
if bld.env.PLATFORM in ('armv7-darwin', 'arm64-darwin', 'x86_64-ios'):
extra_defines = ['DM_NO_SYSTEM_FUNCTION'] # Needed because we wish to build the tests for all platforms, but not all platforms have the system() function
test_record = bld.new_task_gen(features='cxx cprogram test',
includes='../../../src .',
defines=extra_defines,
uselib='TESTMAIN DLIB %s' % vpx,
uselib_local=record,
proto_gen_py=True,
target='test_record',
source='test_record.cpp')
test_record.install_path = None