2020-06-04 19:57:25 -06:00
|
|
|
Import('env', 'arch', 'SHARED', 'QCOM_REPLAY')
|
2020-01-17 12:01:02 -07:00
|
|
|
|
|
|
|
if SHARED:
|
|
|
|
fxn = env.SharedLibrary
|
|
|
|
else:
|
|
|
|
fxn = env.Library
|
|
|
|
|
2021-03-08 20:17:46 -07:00
|
|
|
common_libs = [
|
|
|
|
'params.cc',
|
|
|
|
'swaglog.cc',
|
|
|
|
'util.cc',
|
|
|
|
'gpio.cc',
|
|
|
|
'i2c.cc',
|
|
|
|
'watchdog.cc',
|
|
|
|
]
|
2020-08-26 03:30:30 -06:00
|
|
|
|
|
|
|
_common = fxn('common', common_libs, LIBS="json11")
|
2020-01-17 12:01:02 -07:00
|
|
|
|
|
|
|
files = [
|
2020-12-11 05:05:32 -07:00
|
|
|
'clutil.cc',
|
2021-01-12 07:43:34 -07:00
|
|
|
'glutil.cc',
|
2020-01-17 12:01:02 -07:00
|
|
|
'visionimg.cc',
|
|
|
|
]
|
|
|
|
|
|
|
|
if arch == "aarch64":
|
|
|
|
files += [
|
|
|
|
'framebuffer.cc',
|
|
|
|
'touch.c',
|
|
|
|
]
|
|
|
|
_gpu_libs = ['gui', 'adreno_utils']
|
2021-04-08 12:59:33 -06:00
|
|
|
elif arch == "larch64":
|
|
|
|
_gpu_libs = ["GLESv2"]
|
2020-01-17 12:01:02 -07:00
|
|
|
else:
|
|
|
|
_gpu_libs = ["GL"]
|
|
|
|
|
2020-12-11 05:05:32 -07:00
|
|
|
_gpucommon = fxn('gpucommon', files, LIBS=_gpu_libs)
|
2021-01-08 06:54:25 -07:00
|
|
|
Export('_common', '_gpucommon', '_gpu_libs')
|