2024-11-26 01:13:22 +08:00
|
|
|
Import('env', 'arch', 'common', 'messaging', 'visionipc', 'cereal')
|
2022-06-28 22:12:42 +08:00
|
|
|
|
2024-11-26 01:13:22 +08:00
|
|
|
replay_env = env.Clone()
|
|
|
|
|
replay_env['CCFLAGS'] += ['-Wno-deprecated-declarations']
|
|
|
|
|
|
|
|
|
|
base_frameworks = []
|
|
|
|
|
base_libs = [common, messaging, cereal, visionipc, 'm', 'ssl', 'crypto', 'pthread']
|
2022-07-07 16:13:05 +02:00
|
|
|
|
|
|
|
|
if arch == "Darwin":
|
|
|
|
|
base_frameworks.append('OpenCL')
|
|
|
|
|
else:
|
|
|
|
|
base_libs.append('OpenCL')
|
2022-06-28 22:12:42 +08:00
|
|
|
|
2024-10-25 04:41:01 +08:00
|
|
|
replay_lib_src = ["replay.cc", "consoleui.cc", "camera.cc", "filereader.cc", "logreader.cc", "framereader.cc",
|
2024-11-26 01:13:22 +08:00
|
|
|
"route.cc", "util.cc", "seg_mgr.cc", "timeline.cc", "api.cc"]
|
|
|
|
|
replay_lib = replay_env.Library("replay", replay_lib_src, LIBS=base_libs, FRAMEWORKS=base_frameworks)
|
2022-10-12 15:14:02 -07:00
|
|
|
Export('replay_lib')
|
2024-07-30 04:48:06 +08:00
|
|
|
replay_libs = [replay_lib, 'avutil', 'avcodec', 'avformat', 'bz2', 'zstd', 'curl', 'yuv', 'ncurses'] + base_libs
|
2024-11-26 01:13:22 +08:00
|
|
|
replay_env.Program("replay", ["main.cc"], LIBS=replay_libs, FRAMEWORKS=base_frameworks)
|
2022-06-28 22:12:42 +08:00
|
|
|
|
2023-08-24 14:58:30 -07:00
|
|
|
if GetOption('extras'):
|
2024-11-26 01:13:22 +08:00
|
|
|
replay_env.Program('tests/test_replay', ['tests/test_replay.cc'], LIBS=replay_libs)
|