mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 17:03:56 +08:00
* Squashed vipc
* Update release files
* Remove else
* add visionipc to release files
* use poller in vipc receive
* opencl framework instead of lib on macos
* Fix camera webcam
* Fix opencl on mac in ui
* more webcam fixes
* typo in ui sconsfile
* Use cur_yuv_buf
* visionbuf c++ class
* Camera qcom was still using visionbuf_allocate
* Turn loggerd back on
* fix snapshot
* No build needed
* update test camerad
* no more release callback
* make encoder c++
* Revert "no more release callback"
This reverts commit e5707b07002fee665d0483d90713154efc2d70d4.
* fix exit handlers
* No need to check errno
* move release callback call
* s/VIPCBufExtra/VisionIpcBufExtra/g
* use non blocking connect
* ui use non blocking connect
* Lower condition variable wait time
* Snapshot cleanup
* bump cereal
* bump cereal
old-commit-hash: fb496c692a
38 lines
1.2 KiB
Python
38 lines
1.2 KiB
Python
Import('env', 'arch', 'cereal', 'messaging', 'common', 'gpucommon', 'visionipc', 'USE_WEBCAM', 'QCOM_REPLAY')
|
|
|
|
libs = ['m', 'pthread', common, 'jpeg', 'OpenCL', cereal, messaging, '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 += ['atomic']
|
|
cameras = ['cameras/camera_qcom2.cc']
|
|
else:
|
|
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/local/include/opencv4')
|
|
else:
|
|
cameras = ['cameras/camera_frame_stream.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)
|