1# Copyright (c) 2022 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//build/ohos.gni") 15 16config("cl_test_config") { 17 visibility = [ "*" ] 18 include_dirs = [ 19 "../", 20 "include", 21 ] 22} 23 24ohos_executable("test_cl_egl") { 25 sources = [ 26 "test_cl_egl.h.c", 27 ] 28 configs = [ ":cl_test_config" ] 29 part_name = "opencl" 30 subsystem_name = "thirdparty" 31} 32 33ohos_executable("test_cl_ext_intel") { 34 sources = [ 35 "test_cl_ext_intel.h.c", 36 ] 37 configs = [ ":cl_test_config" ] 38 part_name = "opencl" 39 subsystem_name = "thirdparty" 40} 41 42ohos_executable("test_cl_ext") { 43 sources = [ 44 "test_cl_ext.h.c", 45 ] 46 configs = [ ":cl_test_config" ] 47 part_name = "opencl" 48 subsystem_name = "thirdparty" 49} 50 51ohos_executable("test_cl_gl_ext") { 52 sources = [ 53 "test_cl_gl_ext.h.c", 54 ] 55 configs = [ ":cl_test_config" ] 56 part_name = "opencl" 57 subsystem_name = "thirdparty" 58} 59 60ohos_executable("test_cl_gl") { 61 sources = [ 62 "test_cl_gl.h.c", 63 ] 64 configs = [ ":cl_test_config" ] 65 part_name = "opencl" 66 subsystem_name = "thirdparty" 67} 68 69ohos_executable("test_cl_half") { 70 sources = [ 71 "test_cl_half.h.c", 72 ] 73 configs = [ ":cl_test_config" ] 74 part_name = "opencl" 75 subsystem_name = "thirdparty" 76} 77 78ohos_executable("test_cl_icd") { 79 sources = [ 80 "test_cl_icd.h.c", 81 ] 82 configs = [ ":cl_test_config" ] 83 part_name = "opencl" 84 subsystem_name = "thirdparty" 85} 86 87ohos_executable("test_cl_platform") { 88 sources = [ 89 "test_cl_platform.h.c", 90 ] 91 configs = [ ":cl_test_config" ] 92 part_name = "opencl" 93 subsystem_name = "thirdparty" 94} 95 96ohos_executable("test_cl_version") { 97 sources = [ 98 "test_cl_version.h.c", 99 ] 100 configs = [ ":cl_test_config" ] 101 part_name = "opencl" 102 subsystem_name = "thirdparty" 103} 104 105ohos_executable("test_cl") { 106 sources = [ 107 "test_cl.h.c", 108 ] 109 configs = [ ":cl_test_config" ] 110 part_name = "opencl" 111 subsystem_name = "thirdparty" 112} 113 114ohos_executable("test_headers") { 115 sources = [ 116 "test_headers.c", 117 ] 118 configs = [ ":cl_test_config" ] 119 part_name = "opencl" 120 subsystem_name = "thirdparty" 121} 122 123ohos_executable("test_opencl") { 124 sources = [ 125 "test_opencl.h.c", 126 ] 127 configs = [ ":cl_test_config" ] 128 part_name = "opencl" 129 subsystem_name = "thirdparty" 130} 131 132group("tests") { 133 deps = [ 134 ":test_cl_egl", 135 ":test_cl_ext_intel", 136 ":test_cl_ext", 137 ":test_cl_gl_ext", 138 ":test_cl_gl", 139 ":test_cl_half", 140 ":test_cl_icd", 141 ":test_cl_platform", 142 ":test_cl_version", 143 ":test_cl", 144 ":test_headers", 145 ":test_opencl", 146 ] 147}