mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-07-10 03:12:08 +08:00
a031b938b0
* no-cache mode
* fix test cases build error
* space
* don't create cache dir in no-cache mode
* fix errors in test cases
* no_local_cache_
* set the number of connections by chunk_size
* use size_t instead of int64_t
* add test case for no-cache mode
* rename variables
* fix SIGSEGV
* cleanup
* faster decompressBZ2
* always decompress bz2
* add test cases
* prepare for python interface
* fix test cases build error
* continue
* camera_replay: cache remote file
* protected inheritance
* single option name
* TODO
* test_case for LogReader&FrameReader
* fix wrong require
* test case for FileReader
* cleanup test
* test:fix wrong filename
* check cached file's checksum
* fix mkdir permissions err
cleanup filereader
* remove initialize libav network libraries.
dd
* abort all loading if one failed
* cleanup tests
* use threadpool to limit concurrent downloads
* cache more segments
* merge 3 segments for replay
* one segment uses about 100M of memory
* use segments_need_merge.size()
* shutdown
* fix stuck if exit replay before keyboard thread started
* load one segment at a time
* small cleanup
* cleanup filereader
* space
* tiny cleanup
* merge master
* cleanup test cases
* use util:create_directories
* cleanup framereader
old-commit-hash: 2b4a477fbc
51 lines
1.8 KiB
Python
51 lines
1.8 KiB
Python
Import('env', 'arch', 'cereal', 'messaging', 'common', 'gpucommon', 'visionipc', 'USE_WEBCAM', 'USE_FRAME_STREAM')
|
|
|
|
libs = ['m', 'pthread', common, 'jpeg', 'OpenCL', 'yuv', cereal, messaging, 'zmq', 'capnp', 'kj', visionipc, gpucommon]
|
|
|
|
if arch == "aarch64":
|
|
libs += ['gsl', 'CB', 'adreno_utils', 'EGL', 'GLESv3', 'cutils', 'ui']
|
|
cameras = ['cameras/camera_qcom.cc']
|
|
elif arch == "larch64":
|
|
libs += ['atomic']
|
|
cameras = ['cameras/camera_qcom2.cc']
|
|
else:
|
|
env['CXXFLAGS'] += ["-Wno-deprecated-declarations"]
|
|
if USE_WEBCAM:
|
|
libs += ['opencv_core', 'opencv_highgui', 'opencv_imgproc', 'opencv_videoio']
|
|
cameras = ['cameras/camera_webcam.cc']
|
|
env = env.Clone()
|
|
env.Append(CXXFLAGS = '-DWEBCAM')
|
|
env.Append(CFLAGS = '-DWEBCAM')
|
|
env.Append(CPPPATH = ['/usr/include/opencv4', '/usr/local/include/opencv4'])
|
|
else:
|
|
if USE_FRAME_STREAM:
|
|
cameras = ['cameras/camera_frame_stream.cc']
|
|
else:
|
|
libs += ['avutil', 'avcodec', 'avformat', 'swscale', 'bz2', 'ssl', 'curl', 'crypto']
|
|
# TODO: import replay_lib from root SConstruct
|
|
cameras = ['cameras/camera_replay.cc',
|
|
env.Object('camera-util', '#/selfdrive/ui/replay/util.cc'),
|
|
env.Object('camera-framereader', '#/selfdrive/ui/replay/framereader.cc'),
|
|
env.Object('camera-filereader', '#/selfdrive/ui/replay/filereader.cc')]
|
|
|
|
if arch == "Darwin":
|
|
del libs[libs.index('OpenCL')]
|
|
del libs[libs.index(gpucommon)][gpucommon.index('GL')]
|
|
env = env.Clone()
|
|
env['FRAMEWORKS'] = ['OpenCL', 'OpenGL']
|
|
|
|
env.Program('camerad', [
|
|
'main.cc',
|
|
'cameras/camera_common.cc',
|
|
'transforms/rgb_to_yuv.cc',
|
|
'imgproc/utils.cc',
|
|
cameras,
|
|
], LIBS=libs)
|
|
|
|
if GetOption("test"):
|
|
env.Program('test/ae_gray_test', [
|
|
'test/ae_gray_test.cc',
|
|
'cameras/camera_common.cc',
|
|
'transforms/rgb_to_yuv.cc',
|
|
], LIBS=libs)
|