mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-20 01:13:55 +08:00
* cleaup clutil.h * clutil.c -> clutil.cc * std::hash * try simplify functions * using namespace group help functions * continue * add function get_platform_info * continue * remove caching * struct CLContext * std::cout & CL_ERR_TO_STR * remove CLU_NO_CACHE * Revert "struct CLContext" This reverts commit 882e413f227e4c1ba4bb83f956cc67739a189221. * cl_get_error_string : remove undefied error codes * replace all printf with std::cout * util::read_file * cleanup * revert CL_ERR_TO_STR * simplify * add macro CL_ERR_TO_STR * cl_get_error_string: fix undeclared errors * log_size should not +1 * use std::stirng log * apply review
44 lines
864 B
Python
44 lines
864 B
Python
Import('env', 'arch', 'SHARED', 'QCOM_REPLAY')
|
|
|
|
if SHARED:
|
|
fxn = env.SharedLibrary
|
|
else:
|
|
fxn = env.Library
|
|
|
|
common_libs = ['params.cc', 'swaglog.cc', 'util.c', 'cqueue.c', 'gpio.cc', 'i2c.cc']
|
|
|
|
_common = fxn('common', common_libs, LIBS="json11")
|
|
_visionipc = fxn('visionipc', ['visionipc.c', 'ipc.c'])
|
|
|
|
files = [
|
|
'buffering.c',
|
|
'clutil.cc',
|
|
'efd.c',
|
|
'glutil.c',
|
|
'visionimg.cc',
|
|
]
|
|
|
|
if arch == "aarch64":
|
|
files += [
|
|
'framebuffer.cc',
|
|
'touch.c',
|
|
]
|
|
if QCOM_REPLAY:
|
|
files += ['visionbuf_cl.c']
|
|
else:
|
|
files += ['visionbuf_ion.c']
|
|
_gpu_libs = ['gui', 'adreno_utils']
|
|
elif arch == "larch64":
|
|
files += [
|
|
'visionbuf_ion.c',
|
|
]
|
|
_gpu_libs = ['GL']
|
|
else:
|
|
files += [
|
|
'visionbuf_cl.c',
|
|
]
|
|
_gpu_libs = ["GL"]
|
|
|
|
_gpucommon = fxn('gpucommon', files, LIBS=_gpu_libs)
|
|
Export('_common', '_visionipc', '_gpucommon', '_gpu_libs')
|