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 modules common deqp-gl-subgroups build 15 16import("//build/ohos.gni") 17import("//third_party/vk-gl-cts/vk_gl_cts.gni") 18 19config("deqp-gl-subgroups_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("deqp-gl-subgroups_source") { 30 sources = [ 31 "//third_party/vk-gl-cts/external/openglcts/modules/common/subgroups/glcSubgroupsArithmeticTests.cpp", 32 "//third_party/vk-gl-cts/external/openglcts/modules/common/subgroups/glcSubgroupsBallotBroadcastTests.cpp", 33 "//third_party/vk-gl-cts/external/openglcts/modules/common/subgroups/glcSubgroupsBallotOtherTests.cpp", 34 "//third_party/vk-gl-cts/external/openglcts/modules/common/subgroups/glcSubgroupsBallotTests.cpp", 35 "//third_party/vk-gl-cts/external/openglcts/modules/common/subgroups/glcSubgroupsBasicTests.cpp", 36 "//third_party/vk-gl-cts/external/openglcts/modules/common/subgroups/glcSubgroupsBuiltinMaskVarTests.cpp", 37 "//third_party/vk-gl-cts/external/openglcts/modules/common/subgroups/glcSubgroupsBuiltinVarTests.cpp", 38 "//third_party/vk-gl-cts/external/openglcts/modules/common/subgroups/glcSubgroupsClusteredTests.cpp", 39 "//third_party/vk-gl-cts/external/openglcts/modules/common/subgroups/glcSubgroupsPartitionedTests.cpp", 40 "//third_party/vk-gl-cts/external/openglcts/modules/common/subgroups/glcSubgroupsQuadTests.cpp", 41 "//third_party/vk-gl-cts/external/openglcts/modules/common/subgroups/glcSubgroupsShapeTests.cpp", 42 "//third_party/vk-gl-cts/external/openglcts/modules/common/subgroups/glcSubgroupsShuffleTests.cpp", 43 "//third_party/vk-gl-cts/external/openglcts/modules/common/subgroups/glcSubgroupsTests.cpp", 44 "//third_party/vk-gl-cts/external/openglcts/modules/common/subgroups/glcSubgroupsTestsUtils.cpp", 45 "//third_party/vk-gl-cts/external/openglcts/modules/common/subgroups/glcSubgroupsVoteTests.cpp", 46 ] 47 include_dirs = [ 48 "//third_party/zlib/src", 49 "//third_party/spirv-headers/include", 50 #"//third_party/vk-gl-cts/external/amber", 51 #"//third_party/vk-gl-cts/external/renderdoc/src", 52 "//third_party/libpng", 53 "//third_party/vk-gl-cts/external/vulkancts/framework/vulkan", 54 "//third_party/vk-gl-cts/external/openglcts/include", 55 "//third_party/vk-gl-cts/external/openglcts/framework/egl/wrapper", 56 "//third_party/vk-gl-cts/external/openglcts/modules/common", 57 "//third_party/vk-gl-cts/external/openglcts/modules/gl", 58 "//third_party/vk-gl-cts/external/openglcts/modules/gles2", 59 "//third_party/vk-gl-cts/external/openglcts/modules/gles3", 60 "//third_party/vk-gl-cts/external/openglcts/modules/gles31", 61 "//third_party/vk-gl-cts/external/openglcts/modules/gles32", 62 "//third_party/vk-gl-cts/external/openglcts/modules/glesext", 63 "//third_party/vk-gl-cts/external/openglcts/modules", 64 "//third_party/vk-gl-cts/modules/glshared", 65 "//third_party/vk-gl-cts/external/openglcts/modules/common", 66 "//third_party/glslang", 67 "//third_party/vk-gl-cts/build/include", 68 "//third_party/glslang", 69 "//third_party/spirv-tools/include", 70 ] 71 include_dirs += deqp_common_include_dirs 72 73 deps = [ 74 "//third_party/vk-gl-cts/framework/opengl:libdeqp_glutil", 75 "//third_party/vk-gl-cts/framework/common:libdeqp_tcutil", 76 "//third_party/zlib:libz", 77 "//third_party/libpng:libpng", 78 ] 79 80 configs = [ ":deqp-gl-subgroups_config" ] 81 82# lib_dirs = [ 83# "//third_party/vk-gl-cts/outlibs" 84# ] 85# libs = [ 86# "z", 87# "png", 88# # "glslang", 89# # "SPIRV", 90# # "SPVRemapper", 91# # "spirv-tools", 92# # "spirv-tools-link", 93# # "spirv-tools-lint", 94# # "spirv-tools-opt", 95# # "spirv-tools-reduce", 96# # "MachineIndependent", 97# # "OGLCompiler", 98# # "OSDependent", 99# # "GenericCodeGen", 100# ] 101} 102 103ohos_static_library("libdeqp-gl-subgroups") { 104 deps = [ ":deqp-gl-subgroups_source" ] 105 part_name = "graphic_standard" 106 subsystem_name = "graphic" 107} 108