Files
dragonpilot/selfdrive/common/SConscript

29 lines
541 B
Python
Raw Normal View History

2020-07-14 21:26:01 +00:00
Import('env', 'arch', 'SHARED', 'QCOM_REPLAY')
2019-12-13 13:03:08 -08:00
if SHARED:
fxn = env.SharedLibrary
else:
fxn = env.Library
2021-02-23 16:46:22 -08:00
common_libs = ['params.cc', 'swaglog.cc', 'util.cc', 'gpio.cc', 'i2c.cc']
2020-10-02 01:45:44 +00:00
_common = fxn('common', common_libs, LIBS="json11")
2019-12-13 13:03:08 -08:00
files = [
2020-12-18 10:57:05 +00:00
'clutil.cc',
2021-02-23 16:46:22 -08:00
'glutil.cc',
2019-12-13 13:03:08 -08:00
'visionimg.cc',
]
if arch == "aarch64":
files += [
'framebuffer.cc',
'touch.c',
]
_gpu_libs = ['gui', 'adreno_utils']
else:
_gpu_libs = ["GL"]
2020-12-18 10:57:05 +00:00
_gpucommon = fxn('gpucommon', files, LIBS=_gpu_libs)
2021-02-23 16:46:22 -08:00
Export('_common', '_gpucommon', '_gpu_libs')