# 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. # deqp external subgroups build import("//build/ohos.gni") import("//third_party/vk-gl-cts/vk_gl_cts.gni") config("deqp_vk_subgroups_config") { cflags_cc = deqp_common_cflags_cc defines = deqp_common_defines #defines += [ "_XOPEN_SOURCE=600" ] } ohos_source_set("deqp_vk_subgroups_source") { sources = [ "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/subgroups/vktSubgroupUniformControlFlowTests.cpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/subgroups/vktSubgroupsArithmeticTests.cpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/subgroups/vktSubgroupsBallotBroadcastTests.cpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/subgroups/vktSubgroupsBallotMasksTests.cpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/subgroups/vktSubgroupsBallotOtherTests.cpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/subgroups/vktSubgroupsBallotTests.cpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/subgroups/vktSubgroupsBasicTests.cpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/subgroups/vktSubgroupsBuiltinMaskVarTests.cpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/subgroups/vktSubgroupsBuiltinVarTests.cpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/subgroups/vktSubgroupsClusteredTests.cpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/subgroups/vktSubgroupsMultipleDispatchesUniformSubgroupSizeTests.cpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/subgroups/vktSubgroupsPartitionedTests.cpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/subgroups/vktSubgroupsQuadTests.cpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/subgroups/vktSubgroupsScanHelpers.cpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/subgroups/vktSubgroupsShapeTests.cpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/subgroups/vktSubgroupsShuffleTests.cpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/subgroups/vktSubgroupsSizeControlTests.cpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/subgroups/vktSubgroupsTests.cpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/subgroups/vktSubgroupsTestsUtils.cpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/subgroups/vktSubgroupsVoteTests.cpp", ] include_dirs = deqp_vk_common_include_dirs include_dirs += [ "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/subgroups", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/amber", "//third_party/vk-gl-cts/external/amber/src/include", ] deps = [ "//third_party/vk-gl-cts/external/amber/src/src:libdeqp_amber", "//third_party/vk-gl-cts/external/vulkancts/framework/vulkan:libdeqp_vkutil", "//third_party/vk-gl-cts/framework/common:libdeqp_tcutil", ] part_name = "acts" subsystem_name = "xts" configs = [ ":deqp_vk_subgroups_config" ] } ohos_static_library("libdeqp_vk_subgroups") { deps = [ ":deqp_vk_subgroups_source" ] part_name = "acts" subsystem_name = "xts" }