mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-08-23 01:04:05 +08:00
dragonpilot mod for 0.8.10-3
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
Import('env', 'arch', 'cereal', 'messaging', 'common', 'gpucommon', 'visionipc', 'USE_WEBCAM', 'USE_FRAME_STREAM')
|
||||
Import('env', 'arch', 'cereal', 'messaging', 'common', 'gpucommon', 'visionipc', 'USE_WEBCAM', 'USE_FRAME_STREAM', 'USE_MIPI')
|
||||
|
||||
libs = ['m', 'pthread', common, 'jpeg', 'OpenCL', 'yuv', cereal, messaging, 'zmq', 'capnp', 'kj', visionipc, gpucommon]
|
||||
|
||||
@@ -10,12 +10,15 @@ elif arch == "larch64":
|
||||
cameras = ['cameras/camera_qcom2.cc']
|
||||
else:
|
||||
env['CXXFLAGS'] += ["-Wno-deprecated-declarations"]
|
||||
if USE_WEBCAM:
|
||||
if USE_MIPI or USE_WEBCAM:
|
||||
flag = "MIPI" if USE_MIPI else "WEBCAM"
|
||||
libs += ['opencv_core', 'opencv_highgui', 'opencv_imgproc', 'opencv_videoio']
|
||||
cameras = ['cameras/camera_webcam.cc']
|
||||
if USE_MIPI:
|
||||
libs += ['opencv_cudawarping']
|
||||
cameras = ['cameras/camera_%s.cc' % flag.lower()]
|
||||
env = env.Clone()
|
||||
env.Append(CXXFLAGS = '-DWEBCAM')
|
||||
env.Append(CFLAGS = '-DWEBCAM')
|
||||
env.Append(CXXFLAGS = "-D%s" % flag)
|
||||
env.Append(CFLAGS = "-D%s" % flag)
|
||||
env.Append(CPPPATH = ['/usr/include/opencv4', '/usr/local/include/opencv4'])
|
||||
else:
|
||||
if USE_FRAME_STREAM:
|
||||
|
||||
Reference in New Issue
Block a user