-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSConscript
More file actions
22 lines (16 loc) · 791 Bytes
/
SConscript
File metadata and controls
22 lines (16 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Import('env', 'arch', 'common', 'messaging', 'visionipc', 'cereal')
is_darwin = (arch == "Darwin")
frameworks = ['OpenCL'] if is_darwin else []
opencl = [] if is_darwin else ['OpenCL']
src = Glob('src/*.cc')
exclude = ['main.cc']
if is_darwin:
exclude.append('qcom_decoder.cc')
for f in exclude:
src.remove(File(f'src/{f}'))
libs = [common, messaging, cereal, visionipc, 'ssl', 'crypto', 'pthread', 'zmq',
'avutil', 'avcodec', 'avformat', 'swscale', 'bz2', 'zstd', 'curl', 'ncurses'] + opencl
replay_lib = env.Library("replay", src, LIBS=libs, FRAMEWORKS=frameworks)
replay_bin = env.Program("replay", ["src/main.cc"], LIBS=[replay_lib] + libs, FRAMEWORKS=frameworks)
# Return objects so the parent can use them (e.g., for installation or aliases)
Return('replay_lib')