-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSConstruct
More file actions
30 lines (21 loc) · 1.01 KB
/
SConstruct
File metadata and controls
30 lines (21 loc) · 1.01 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
import os
import sys
# 添加路径到环境变量
sys.path.append("tools")
from tools import test_copy
test_copy.execute()
defines = ['MAIN_DEF']
ccflags = []
env = Environment()
env.Append(CPPDEFINES = defines)
env.Append(CCCOMSTR = "CC $SOURCES")
env.Append(LINKCOMSTR = "LINK $TARGET")
# The unit test example --------------------------------------------------------
objs = SConscript('test/SConscript', variant_dir = 'build/test', duplicate = 0)
objs += SConscript('eventos/SConscript', variant_dir = 'build/eventos', duplicate = 0)
objs += SConscript('3rd/unity/SConscript', variant_dir = 'build/3rd/unity', duplicate = 0)
env.Program(target = 'build/eos', source = objs)
# The posix example ------------------------------------------------------------
objs = SConscript('examples/posix/SConscript', variant_dir = 'build/examples/posix', duplicate = 0)
objs += SConscript('eventos/SConscript', variant_dir = 'build/eventos', duplicate = 0)
env.Program(target = 'build/posix', source = objs)