# Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # external glcts build import("//build/ohos.gni") import("//third_party/vk-gl-cts/vk_gl_cts.gni") config("glcts_config") { cflags_cc = [ "-Wno-conversion", "-Wno-unused-function", ] cflags_cc += deqp_common_cflags_cc defines = deqp_common_defines } ohos_source_set("glcts_source") { sources = [ "//third_party/vk-gl-cts/external/openglcts/modules/glcTestPackageRegistry.cpp" ] include_dirs = [ "//third_party/vk-gl-cts/modules/glshared", "//third_party/vk-gl-cts/modules/egl", "//third_party/vk-gl-cts/modules/gles2", "//third_party/vk-gl-cts/modules/gles3", "//third_party/vk-gl-cts/modules/gles31", "//third_party/vk-gl-cts/external/openglcts/modules/common", "//third_party/vk-gl-cts/external/openglcts/modules/gl", "//third_party/vk-gl-cts/external/openglcts/modules/gles2", "//third_party/vk-gl-cts/external/openglcts/modules/gles3", "//third_party/vk-gl-cts/external/openglcts/modules/gles31", "//third_party/vk-gl-cts/external/openglcts/modules/gles32", "//third_party/vk-gl-cts/external/openglcts/modules/glesext", "//third_party/vk-gl-cts/external/openglcts/modules", ] include_dirs += deqp_common_include_dirs deps = [ "//third_party/vk-gl-cts/external/openglcts/modules/common:libdeqp_glcts-common-nocontext-package", "//third_party/vk-gl-cts/external/openglcts/modules/gl:libdeqp_glcts-gl", "//third_party/vk-gl-cts/external/openglcts/modules/gles2:libdeqp_glcts-es2", "//third_party/vk-gl-cts/external/openglcts/modules/gles3:libdeqp_glcts-es3", "//third_party/vk-gl-cts/external/openglcts/modules/gles31:libdeqp_glcts-es31", "//third_party/vk-gl-cts/external/openglcts/modules/gles32:libdeqp_glcts-es32", "//third_party/vk-gl-cts/external/openglcts/modules/glesext:libdeqp_glcts-esext", "//third_party/vk-gl-cts/modules/egl:libdeqp-egl", "//third_party/vk-gl-cts/modules/gles2:libdeqp-gles2", "//third_party/vk-gl-cts/modules/gles3:libdeqp-gles3", "//third_party/vk-gl-cts/modules/gles31:libdeqp-gles31", ] configs = [ ":glcts_config" ] } ohos_static_library("libdeqp_glcts") { deps = [ ":glcts_source" ] part_name = "graphic_2d" subsystem_name = "graphic" } ohos_executable("deqp_glcts") { sources = [ "//third_party/vk-gl-cts/external/openglcts/modules/glcTestPackageEntry.cpp", "//third_party/vk-gl-cts/framework/platform/tcuMain.cpp", ] include_dirs = [ "//third_party/zlib/src", "//third_party/spirv-headers/include", "//third_party/amber", "//third_party/renderdoc/src", "//third_party/vulkancts/framework/vulkan", "//third_party/vk-gl-cts/external/openglcts/include", "//third_party/vk-gl-cts/external/openglcts/framework/egl/wrapper", "//third_party/vk-gl-cts/external/openglcts/modules/common", "//third_party/vk-gl-cts/external/openglcts/modules/gl", "//third_party/vk-gl-cts/external/openglcts/modules/gles2", "//third_party/vk-gl-cts/external/openglcts/modules/gles3", "//third_party/vk-gl-cts/external/openglcts/modules/gles31", "//third_party/vk-gl-cts/external/openglcts/modules/gles32", "//third_party/vk-gl-cts/external/openglcts/modules/glesext", "//third_party/vk-gl-cts/external/openglcts/modules", "//third_party/vk-gl-cts/modules/glshared", "//third_party/vk-gl-cts/modules/egl", "//third_party/vk-gl-cts/modules/gles2", "//third_party/vk-gl-cts/modules/gles3", "//third_party/vk-gl-cts/modules/gles31", "//third_party/vk-gl-cts/external/openglcts/modules/runner", "//third_party/glslang/glslang", "//third_party/vk-gl-cts/build/include", "//third_party/glslang/SPIRV", "//third_party/spirv-tools/include", "//third_party/spirv-headers/include", ] include_dirs += deqp_common_include_dirs deps = [ ":libdeqp_glcts", "//third_party/libpng:libpng", "//third_party/vk-gl-cts/framework/platform:libdeqp_tcutil-platform", ] configs = [ ":glcts_config" ] part_name = "graphic_2d" subsystem_name = "graphic" } ohos_executable("deqp_cts-runner") { sources = [ "//third_party/vk-gl-cts/external/openglcts/modules/glcTestPackageEntry.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/runner/glcTestRunnerMain.cpp", ] include_dirs = [ "//third_party/zlib/src", "//third_party/spirv-headers/include", "//third_party/amber", "//third_party/renderdoc/src", "//third_party/vulkancts/framework/vulkan", "//third_party/vk-gl-cts/external/openglcts/include", "//third_party/vk-gl-cts/external/openglcts/framework/egl/wrapper", "//third_party/vk-gl-cts/external/openglcts/modules/common", "//third_party/vk-gl-cts/external/openglcts/modules/gl", "//third_party/vk-gl-cts/external/openglcts/modules/gles2", "//third_party/vk-gl-cts/external/openglcts/modules/gles3", "//third_party/vk-gl-cts/external/openglcts/modules/gles31", "//third_party/vk-gl-cts/external/openglcts/modules/gles32", "//third_party/vk-gl-cts/external/openglcts/modules/glesext", "//third_party/vk-gl-cts/external/openglcts/modules", "//third_party/vk-gl-cts/modules/glshared", "//third_party/vk-gl-cts/modules/egl", "//third_party/vk-gl-cts/modules/gles2", "//third_party/vk-gl-cts/modules/gles3", "//third_party/vk-gl-cts/modules/gles31", "//third_party/vk-gl-cts/external/openglcts/modules/runner", "//third_party/glslang/glslang", "//third_party/vk-gl-cts/build/include", "//third_party/glslang/SPIRV", "//third_party/spirv-tools/include", "//third_party/spirv-headers/include", ] include_dirs += deqp_common_include_dirs deps = [ ":libdeqp_glcts", "//third_party/vk-gl-cts/external/openglcts/modules/runner:libdeqp_glcts-runner", "//third_party/vk-gl-cts/framework/platform:libdeqp_tcutil-platform", "//third_party/vk-gl-cts/modules/glshared:libdeqp-gl-shared", ] configs = [ ":glcts_config" ] part_name = "graphic_2d" subsystem_name = "graphic" }