forked from buildar/awe_kinect
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSConscript
More file actions
29 lines (25 loc) · 660 Bytes
/
SConscript
File metadata and controls
29 lines (25 loc) · 660 Bytes
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
import os.path
Import("*")
env = Environment()
if MODE == 'debug':
env.Append(CPPFLAGS='-g')
env.Append(LIBS=['OpenNI','websockets','glog'])
env.Append(LIBPATH='-L/usr/local/lib')
env.Append(CPPPATH='-I/usr/include/ni')
sources = Split("""
constants.cpp
dump_writer.cpp
options.cpp
util.cpp
position.cpp
skeleton.cpp
server.cpp
awe_kinect.cpp
""")
sources = [os.path.join('src', p) for p in sources]
object_list = env.Object(source=sources)
if env['PLATFORM'] == 'posix':
env.Append(CPPDEFINES=['PLATFORM_POSIX'])
elif env['PLATFORM'] == 'win32':
env.Append(CPPDEFINES=['PLATFORM_WINDOWS'])
env.Program(target='awe_kinect', source=object_list)