mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-08-24 01:33:50 +08:00
clutil refactor (#2733)
* 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
This commit is contained in:
@@ -12,14 +12,13 @@ _visionipc = fxn('visionipc', ['visionipc.c', 'ipc.c'])
|
||||
|
||||
files = [
|
||||
'buffering.c',
|
||||
'clutil.c',
|
||||
'clutil.cc',
|
||||
'efd.c',
|
||||
'glutil.c',
|
||||
'visionimg.cc',
|
||||
]
|
||||
|
||||
if arch == "aarch64":
|
||||
defines = {}
|
||||
files += [
|
||||
'framebuffer.cc',
|
||||
'touch.c',
|
||||
@@ -30,17 +29,15 @@ if arch == "aarch64":
|
||||
files += ['visionbuf_ion.c']
|
||||
_gpu_libs = ['gui', 'adreno_utils']
|
||||
elif arch == "larch64":
|
||||
defines = {"CLU_NO_CACHE": None}
|
||||
files += [
|
||||
'visionbuf_ion.c',
|
||||
]
|
||||
_gpu_libs = ['GL']
|
||||
else:
|
||||
defines = {"CLU_NO_CACHE": None}
|
||||
files += [
|
||||
'visionbuf_cl.c',
|
||||
]
|
||||
_gpu_libs = ["GL"]
|
||||
|
||||
_gpucommon = fxn('gpucommon', files, CPPDEFINES=defines, LIBS=_gpu_libs)
|
||||
_gpucommon = fxn('gpucommon', files, LIBS=_gpu_libs)
|
||||
Export('_common', '_visionipc', '_gpucommon', '_gpu_libs')
|
||||
|
||||
Reference in New Issue
Block a user