mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 06:33:57 +08:00
* start moving neos updater
* downloading
* ui
* move recovery
* resuming
* add verification
* fix up launch
* test
* update updater
* fix mypy
* fake updater
* review suggestions
* more tests
* abc
* update bin
* raise
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: b3705ede5e
36 lines
632 B
Python
36 lines
632 B
Python
Import('env', 'arch', 'SHARED')
|
|
|
|
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',
|
|
'visionimg.cc',
|
|
]
|
|
|
|
if arch == "aarch64":
|
|
_gpu_libs = ['gui', 'adreno_utils']
|
|
elif arch == "larch64":
|
|
_gpu_libs = ["GLESv2"]
|
|
else:
|
|
_gpu_libs = ["GL"]
|
|
|
|
_gpucommon = fxn('gpucommon', files, LIBS=_gpu_libs)
|
|
Export('_common', '_gpucommon', '_gpu_libs')
|
|
|
|
if GetOption('test'):
|
|
env.Program('tests/test_util', ['tests/test_util.cc'], LIBS=[_common])
|