Files
sunnypilot/selfdrive/common/SConscript
Dean Lee da9b0e8baa remove cqueue, use class SafeQueue (#19774)
* class SafeQueue

* cleanup includes

* space

* add timeout

use try_poll

* add function empty() & size()

* class SafeQueue

* add timeout

use try_poll

* add function empty() & size()

* rebase master

* rebase master

* for loop

* fix bug
old-commit-hash: e6783f4d9f
2021-01-28 15:12:45 +01:00

29 lines
541 B
Python

Import('env', 'arch', 'SHARED', 'QCOM_REPLAY')
if SHARED:
fxn = env.SharedLibrary
else:
fxn = env.Library
common_libs = ['params.cc', 'swaglog.cc', 'util.cc', 'gpio.cc', 'i2c.cc']
_common = fxn('common', common_libs, LIBS="json11")
files = [
'clutil.cc',
'glutil.cc',
'visionimg.cc',
]
if arch == "aarch64":
files += [
'framebuffer.cc',
'touch.c',
]
_gpu_libs = ['gui', 'adreno_utils']
else:
_gpu_libs = ["GL"]
_gpucommon = fxn('gpucommon', files, LIBS=_gpu_libs)
Export('_common', '_gpucommon', '_gpu_libs')