mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-21 18:13:53 +08:00
* kind of works * move that * hack to get camerad to reliably terminate * not sure why SIGTERM wasn't working before * compare bytes * clean up some hacks * gitignore * fix that * WIP * no reboot * comparison works * pretty print * fix build * run in jenkins * python path * space * raise timeout * new eon * skip the copy * spinner * spin less * update model ref commit * reenable that * clean up * fix jenkinsfile * parallel * wrap it in a stage * fix linter * better progress * lower timeout Co-authored-by: Comma Device <device@comma.ai> Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
35 lines
1.1 KiB
Python
35 lines
1.1 KiB
Python
Import('env', 'arch', 'cereal', 'messaging', 'common', 'gpucommon', 'visionipc', 'webcam', 'QCOM_REPLAY')
|
|
|
|
libs = ['m', 'pthread', common, 'jpeg', 'OpenCL', cereal, messaging, 'czmq', 'zmq', 'capnp', 'kj', visionipc, gpucommon]
|
|
|
|
if arch == "aarch64":
|
|
libs += ['gsl', 'CB', 'adreno_utils', 'EGL', 'GLESv3', 'cutils', 'ui']
|
|
if QCOM_REPLAY:
|
|
cameras = ['cameras/camera_frame_stream.cc']
|
|
else:
|
|
cameras = ['cameras/camera_qcom.cc']
|
|
elif arch == "larch64":
|
|
libs += []
|
|
cameras = ['cameras/camera_qcom2.c']
|
|
else:
|
|
if 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/local/include/opencv4')
|
|
else:
|
|
libs += []
|
|
cameras = ['cameras/camera_frame_stream.cc']
|
|
|
|
env.SharedLibrary('snapshot/visionipc',
|
|
["#selfdrive/common/visionipc.c", "#selfdrive/common/ipc.c"])
|
|
|
|
env.Program('camerad', [
|
|
'main.cc',
|
|
'transforms/rgb_to_yuv.c',
|
|
'imgproc/utils.cc',
|
|
cameras,
|
|
], LIBS=libs)
|