mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 17:03:56 +08:00
* Revert "revert tg calib and opencl cleanup (#37113)"
This reverts commit 51312afd3d.
* power draw is a lil higher
* just don't miss a cycle
* fix warp targets
* fix tinygrad dep
20 lines
949 B
Python
20 lines
949 B
Python
Import('env', 'arch', 'common', 'messaging', 'visionipc', 'cereal')
|
|
|
|
replay_env = env.Clone()
|
|
replay_env['CCFLAGS'] += ['-Wno-deprecated-declarations']
|
|
|
|
base_frameworks = []
|
|
base_libs = [common, messaging, cereal, visionipc, 'm', 'ssl', 'crypto', 'pthread']
|
|
|
|
replay_lib_src = ["replay.cc", "consoleui.cc", "camera.cc", "filereader.cc", "logreader.cc", "framereader.cc",
|
|
"route.cc", "util.cc", "seg_mgr.cc", "timeline.cc", "api.cc"]
|
|
if arch != "Darwin":
|
|
replay_lib_src.append("qcom_decoder.cc")
|
|
replay_lib = replay_env.Library("replay", replay_lib_src, LIBS=base_libs, FRAMEWORKS=base_frameworks)
|
|
Export('replay_lib')
|
|
replay_libs = [replay_lib, 'avutil', 'avcodec', 'avformat', 'bz2', 'zstd', 'curl', 'yuv', 'ncurses'] + base_libs
|
|
replay_env.Program("replay", ["main.cc"], LIBS=replay_libs, FRAMEWORKS=base_frameworks)
|
|
|
|
if GetOption('extras'):
|
|
replay_env.Program('tests/test_replay', ['tests/test_replay.cc'], LIBS=replay_libs)
|