mirror of
https://gitee.com/openharmony/third_party_opencl-headers
synced 2024-11-23 07:02:45 +00:00
commit
e9ea3b1e0b
6
BUILD.gn
6
BUILD.gn
@ -30,14 +30,12 @@ config("cl_public_config") {
|
||||
|
||||
ohos_shared_library("libcl") {
|
||||
visibility = [ "*" ]
|
||||
sources = [
|
||||
"src/opencl_wrapper.cpp",
|
||||
]
|
||||
sources = [ "src/opencl_wrapper.cpp" ]
|
||||
configs = [ ":cl_config" ]
|
||||
public_configs = [ ":cl_public_config" ]
|
||||
output_name = "OpenCL"
|
||||
output_extension = "so"
|
||||
part_name = "opencl"
|
||||
part_name = "opencl-headers"
|
||||
subsystem_name = "thirdparty"
|
||||
}
|
||||
|
||||
|
@ -22,125 +22,101 @@ config("cl_test_config") {
|
||||
}
|
||||
|
||||
ohos_executable("test_cl_egl") {
|
||||
sources = [
|
||||
"test_cl_egl.h.c",
|
||||
]
|
||||
sources = [ "test_cl_egl.h.c" ]
|
||||
configs = [ ":cl_test_config" ]
|
||||
part_name = "opencl"
|
||||
part_name = "opencl-headers"
|
||||
subsystem_name = "thirdparty"
|
||||
}
|
||||
|
||||
ohos_executable("test_cl_ext_intel") {
|
||||
sources = [
|
||||
"test_cl_ext_intel.h.c",
|
||||
]
|
||||
sources = [ "test_cl_ext_intel.h.c" ]
|
||||
configs = [ ":cl_test_config" ]
|
||||
part_name = "opencl"
|
||||
part_name = "opencl-headers"
|
||||
subsystem_name = "thirdparty"
|
||||
}
|
||||
|
||||
ohos_executable("test_cl_ext") {
|
||||
sources = [
|
||||
"test_cl_ext.h.c",
|
||||
]
|
||||
sources = [ "test_cl_ext.h.c" ]
|
||||
configs = [ ":cl_test_config" ]
|
||||
part_name = "opencl"
|
||||
part_name = "opencl-headers"
|
||||
subsystem_name = "thirdparty"
|
||||
}
|
||||
|
||||
ohos_executable("test_cl_gl_ext") {
|
||||
sources = [
|
||||
"test_cl_gl_ext.h.c",
|
||||
]
|
||||
sources = [ "test_cl_gl_ext.h.c" ]
|
||||
configs = [ ":cl_test_config" ]
|
||||
part_name = "opencl"
|
||||
part_name = "opencl-headers"
|
||||
subsystem_name = "thirdparty"
|
||||
}
|
||||
|
||||
ohos_executable("test_cl_gl") {
|
||||
sources = [
|
||||
"test_cl_gl.h.c",
|
||||
]
|
||||
sources = [ "test_cl_gl.h.c" ]
|
||||
configs = [ ":cl_test_config" ]
|
||||
part_name = "opencl"
|
||||
part_name = "opencl-headers"
|
||||
subsystem_name = "thirdparty"
|
||||
}
|
||||
|
||||
ohos_executable("test_cl_half") {
|
||||
sources = [
|
||||
"test_cl_half.h.c",
|
||||
]
|
||||
sources = [ "test_cl_half.h.c" ]
|
||||
configs = [ ":cl_test_config" ]
|
||||
part_name = "opencl"
|
||||
part_name = "opencl-headers"
|
||||
subsystem_name = "thirdparty"
|
||||
}
|
||||
|
||||
ohos_executable("test_cl_icd") {
|
||||
sources = [
|
||||
"test_cl_icd.h.c",
|
||||
]
|
||||
sources = [ "test_cl_icd.h.c" ]
|
||||
configs = [ ":cl_test_config" ]
|
||||
part_name = "opencl"
|
||||
part_name = "opencl-headers"
|
||||
subsystem_name = "thirdparty"
|
||||
}
|
||||
|
||||
ohos_executable("test_cl_platform") {
|
||||
sources = [
|
||||
"test_cl_platform.h.c",
|
||||
]
|
||||
sources = [ "test_cl_platform.h.c" ]
|
||||
configs = [ ":cl_test_config" ]
|
||||
part_name = "opencl"
|
||||
part_name = "opencl-headers"
|
||||
subsystem_name = "thirdparty"
|
||||
}
|
||||
|
||||
ohos_executable("test_cl_version") {
|
||||
sources = [
|
||||
"test_cl_version.h.c",
|
||||
]
|
||||
sources = [ "test_cl_version.h.c" ]
|
||||
configs = [ ":cl_test_config" ]
|
||||
part_name = "opencl"
|
||||
part_name = "opencl-headers"
|
||||
subsystem_name = "thirdparty"
|
||||
}
|
||||
|
||||
ohos_executable("test_cl") {
|
||||
sources = [
|
||||
"test_cl.h.c",
|
||||
]
|
||||
sources = [ "test_cl.h.c" ]
|
||||
configs = [ ":cl_test_config" ]
|
||||
part_name = "opencl"
|
||||
part_name = "opencl-headers"
|
||||
subsystem_name = "thirdparty"
|
||||
}
|
||||
|
||||
ohos_executable("test_headers") {
|
||||
sources = [
|
||||
"test_headers.c",
|
||||
]
|
||||
sources = [ "test_headers.c" ]
|
||||
configs = [ ":cl_test_config" ]
|
||||
part_name = "opencl"
|
||||
part_name = "opencl-headers"
|
||||
subsystem_name = "thirdparty"
|
||||
}
|
||||
|
||||
ohos_executable("test_opencl") {
|
||||
sources = [
|
||||
"test_opencl.h.c",
|
||||
]
|
||||
sources = [ "test_opencl.h.c" ]
|
||||
configs = [ ":cl_test_config" ]
|
||||
part_name = "opencl"
|
||||
part_name = "opencl-headers"
|
||||
subsystem_name = "thirdparty"
|
||||
}
|
||||
|
||||
group("tests") {
|
||||
deps = [
|
||||
":test_cl",
|
||||
":test_cl_egl",
|
||||
":test_cl_ext_intel",
|
||||
":test_cl_ext",
|
||||
":test_cl_gl_ext",
|
||||
":test_cl_ext_intel",
|
||||
":test_cl_gl",
|
||||
":test_cl_gl_ext",
|
||||
":test_cl_half",
|
||||
":test_cl_icd",
|
||||
":test_cl_platform",
|
||||
":test_cl_version",
|
||||
":test_cl",
|
||||
":test_headers",
|
||||
":test_opencl",
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user