Files
sunnypilot/selfdrive/common/SConscript
Willem Melching 4d6c98aa6b Add watchdog check to manager (#20277)
* this should work but doesnt

* Only offroad

* works

* make it work offorad

* reduce diff

* cleanup

* need util

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: a94ba4fb8b
2021-03-08 19:17:46 -08:00

36 lines
571 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',
'watchdog.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')