-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
camerad: build camerad on PC (#25726)
* compile camerad on PC * scons cleanup Co-authored-by: Adeeb Shihadeh <[email protected]>
- Loading branch information
1 parent
f6398ea
commit 29f9c53
Showing
6 changed files
with
20 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,18 @@ | ||
Import('env', 'arch', 'cereal', 'messaging', 'common', 'gpucommon', 'visionipc') | ||
|
||
libs = ['m', 'pthread', common, 'jpeg', 'OpenCL', 'yuv', cereal, messaging, 'zmq', 'capnp', 'kj', visionipc, gpucommon] | ||
libs = ['m', 'pthread', common, 'jpeg', 'OpenCL', 'yuv', cereal, messaging, 'zmq', 'capnp', 'kj', visionipc, gpucommon, 'atomic'] | ||
|
||
cameras = [] | ||
if arch == "larch64": | ||
libs += ['atomic'] | ||
cameras = ['cameras/camera_qcom2.cc'] | ||
cenv = env.Clone() | ||
cenv['CPPPATH'].append('include/') | ||
|
||
env.Program('camerad', [ | ||
'main.cc', | ||
'cameras/camera_common.cc', | ||
'cameras/camera_util.cc', | ||
'imgproc/utils.cc', | ||
cameras, | ||
], LIBS=libs) | ||
camera_obj = cenv.Object(['cameras/camera_qcom2.cc', 'cameras/camera_common.cc', 'cameras/camera_util.cc']) | ||
cenv.Program('camerad', [ | ||
'main.cc', | ||
camera_obj, | ||
], LIBS=libs) | ||
|
||
if GetOption("test") and arch == "x86_64": | ||
env.Program('test/ae_gray_test', [ | ||
cenv.Program('test/ae_gray_test', [ | ||
'test/ae_gray_test.cc', | ||
'cameras/camera_common.cc', | ||
camera_obj, | ||
], LIBS=libs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1304,4 +1304,3 @@ void cameras_run(MultiCameraState *s) { | |
|
||
cameras_close(s); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.