mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-20 00:03:54 +08:00
* capnparm * building in progress * scons build works * that script fixes opencl * start new camera code * includes and more camera scripts * control c works now * no device control yet * phy too * just one camera for now * fix capnparm * hmm, the inits are needed * more cameras * link stop start * doesn't work yet * fix ion on qcom2 * start poll ish * 4 pictures and done * no jpeg * it works to picture * destroy sync obj * both work for now * defined QCOM2 * fix fd leak * run modeld * 10 bit mode * real frame stride * needs digital gain * dnew * no color correcting on new * that snpe doesn't work * qcom2 gate * cleanups * oops, fix aarch64 detector * update cereal * modeld works with SNPE * fix driver monitoring model Co-authored-by: Tici <robbe@comma.ai>
31 lines
1015 B
Python
31 lines
1015 B
Python
Import('env', 'arch', 'messaging', 'common', 'gpucommon', 'visionipc', 'cereal', 'webcam')
|
|
|
|
libs = ['m', 'pthread', common, 'jpeg', 'json', cereal, 'OpenCL', messaging, 'czmq', 'zmq', 'capnp', 'kj', 'capnp_c', visionipc, gpucommon]
|
|
|
|
if arch == "aarch64":
|
|
libs += ['gsl', 'CB', 'adreno_utils', 'EGL', 'GLESv3', 'cutils', 'ui']
|
|
cameras = ['cameras/camera_qcom.c']
|
|
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',
|
|
cameras,
|
|
], LIBS=libs)
|