1# Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development 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 14# external glcts build 15 16import("//build/ohos.gni") 17import("//third_party/vk-gl-cts/vk_gl_cts.gni") 18 19config("glcts_config") { 20 cflags_cc = [ 21 "-Wno-conversion", 22 "-Wno-unused-function", 23 ] 24 25 cflags_cc += deqp_common_cflags_cc 26 defines = deqp_common_defines 27} 28 29ohos_source_set("glcts_source") { 30 sources = [ 31 "//third_party/vk-gl-cts/external/openglcts/modules/glcTestPackageRegistry.cpp", 32 ] 33 include_dirs = [ 34 "//third_party/vk-gl-cts/modules/glshared", 35 "//third_party/vk-gl-cts/modules/egl", 36 "//third_party/vk-gl-cts/modules/gles2", 37 "//third_party/vk-gl-cts/modules/gles3", 38 "//third_party/vk-gl-cts/modules/gles31", 39 40 "//third_party/vk-gl-cts/external/openglcts/modules/common", 41 "//third_party/vk-gl-cts/external/openglcts/modules/gl", 42 "//third_party/vk-gl-cts/external/openglcts/modules/gles2", 43 "//third_party/vk-gl-cts/external/openglcts/modules/gles3", 44 "//third_party/vk-gl-cts/external/openglcts/modules/gles31", 45 "//third_party/vk-gl-cts/external/openglcts/modules/gles32", 46 "//third_party/vk-gl-cts/external/openglcts/modules/glesext", 47 "//third_party/vk-gl-cts/external/openglcts/modules", 48 49 ] 50 include_dirs += deqp_common_include_dirs 51 52 deps = [ 53 "//third_party/vk-gl-cts/external/openglcts/modules/common:libdeqp_glcts-common-nocontext-package", 54 "//third_party/vk-gl-cts/external/openglcts/modules/gl:libdeqp_glcts-gl", 55 "//third_party/vk-gl-cts/external/openglcts/modules/gles2:libdeqp_glcts-es2", 56 "//third_party/vk-gl-cts/external/openglcts/modules/gles3:libdeqp_glcts-es3", 57 "//third_party/vk-gl-cts/external/openglcts/modules/gles31:libdeqp_glcts-es31", 58 "//third_party/vk-gl-cts/external/openglcts/modules/gles32:libdeqp_glcts-es32", 59 "//third_party/vk-gl-cts/external/openglcts/modules/glesext:libdeqp_glcts-esext", 60 61 "//third_party/vk-gl-cts/modules/egl:libdeqp-egl", 62 "//third_party/vk-gl-cts/modules/gles2:libdeqp-gles2", 63 "//third_party/vk-gl-cts/modules/gles3:libdeqp-gles3", 64 "//third_party/vk-gl-cts/modules/gles31:libdeqp-gles31", 65 ] 66 67 configs = [ ":glcts_config" ] 68} 69 70ohos_static_library("libdeqp_glcts") { 71 deps = [ ":glcts_source" ] 72 part_name = "graphic_standard" 73 subsystem_name = "graphic" 74} 75 76ohos_executable("deqp_glcts") { 77 sources = [ 78 "//third_party/vk-gl-cts/framework/platform/tcuMain.cpp", 79 "//third_party/vk-gl-cts/external/openglcts/modules/glcTestPackageEntry.cpp", 80 ] 81 include_dirs = [ 82 "//third_party/zlib/src", 83 "//third_party/spirv-headers/include", 84 "//third_party/amber", 85 "//third_party/renderdoc/src", 86 "//third_party/libpng", 87 "//third_party/vulkancts/framework/vulkan", 88 "//third_party/vk-gl-cts/external/openglcts/include", 89 "//third_party/vk-gl-cts/external/openglcts/framework/egl/wrapper", 90 "//third_party/vk-gl-cts/external/openglcts/modules/common", 91 "//third_party/vk-gl-cts/external/openglcts/modules/gl", 92 "//third_party/vk-gl-cts/external/openglcts/modules/gles2", 93 "//third_party/vk-gl-cts/external/openglcts/modules/gles3", 94 "//third_party/vk-gl-cts/external/openglcts/modules/gles31", 95 "//third_party/vk-gl-cts/external/openglcts/modules/gles32", 96 "//third_party/vk-gl-cts/external/openglcts/modules/glesext", 97 "//third_party/vk-gl-cts/external/openglcts/modules", 98 "//third_party/vk-gl-cts/modules/glshared", 99 "//third_party/vk-gl-cts/modules/egl", 100 "//third_party/vk-gl-cts/modules/gles2", 101 "//third_party/vk-gl-cts/modules/gles3", 102 "//third_party/vk-gl-cts/modules/gles31", 103 "//third_party/vk-gl-cts/external/openglcts/modules/runner", 104 "//third_party/glslang/glslang", 105 "//third_party/vk-gl-cts/build/include", 106 "//third_party/glslang/SPIRV", 107 "//third_party/spirv-tools/include", 108 "//third_party/spirv-headers/include", 109 ] 110 include_dirs += deqp_common_include_dirs 111 deps = [ 112 ":libdeqp_glcts", 113 "//third_party/vk-gl-cts/framework/platform:libdeqp_tcutil-platform", 114 ] 115 116 configs = [ ":glcts_config" ] 117 part_name = "graphic_standard" 118 subsystem_name = "graphic" 119} 120 121ohos_executable("deqp_cts-runner") { 122 sources = [ 123 "//third_party/vk-gl-cts/external/openglcts/modules/glcTestPackageEntry.cpp", 124 "//third_party/vk-gl-cts/external/openglcts/modules/runner/glcTestRunnerMain.cpp", 125 ] 126 include_dirs = [ 127 "//third_party/zlib/src", 128 "//third_party/spirv-headers/include", 129 "//third_party/amber", 130 "//third_party/renderdoc/src", 131 "//third_party/libpng", 132 "//third_party/vulkancts/framework/vulkan", 133 "//third_party/vk-gl-cts/external/openglcts/include", 134 "//third_party/vk-gl-cts/external/openglcts/framework/egl/wrapper", 135 "//third_party/vk-gl-cts/external/openglcts/modules/common", 136 "//third_party/vk-gl-cts/external/openglcts/modules/gl", 137 "//third_party/vk-gl-cts/external/openglcts/modules/gles2", 138 "//third_party/vk-gl-cts/external/openglcts/modules/gles3", 139 "//third_party/vk-gl-cts/external/openglcts/modules/gles31", 140 "//third_party/vk-gl-cts/external/openglcts/modules/gles32", 141 "//third_party/vk-gl-cts/external/openglcts/modules/glesext", 142 "//third_party/vk-gl-cts/external/openglcts/modules", 143 "//third_party/vk-gl-cts/modules/glshared", 144 "//third_party/vk-gl-cts/modules/egl", 145 "//third_party/vk-gl-cts/modules/gles2", 146 "//third_party/vk-gl-cts/modules/gles3", 147 "//third_party/vk-gl-cts/modules/gles31", 148 "//third_party/vk-gl-cts/external/openglcts/modules/runner", 149 "//third_party/glslang/glslang", 150 "//third_party/vk-gl-cts/build/include", 151 "//third_party/glslang/SPIRV", 152 "//third_party/spirv-tools/include", 153 "//third_party/spirv-headers/include", 154 ] 155 include_dirs += deqp_common_include_dirs 156 157 deps = [ 158 ":libdeqp_glcts", 159 "//third_party/vk-gl-cts/framework/platform:libdeqp_tcutil-platform", 160 "//third_party/vk-gl-cts/external/openglcts/modules/runner:libdeqp_glcts-runner", 161 "//third_party/vk-gl-cts/modules/glshared:libdeqp-gl-shared", 162 ] 163 164 configs = [ ":glcts_config" ] 165 part_name = "graphic_standard" 166 subsystem_name = "graphic" 167}