# 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 vkutil build import("//build/ohos.gni") import("//third_party/vk-gl-cts/vk_gl_cts.gni") config("deqp_vk_tessellation_config") { cflags_cc = deqp_common_cflags_cc defines = deqp_common_defines #defines += [ "_XOPEN_SOURCE=600" ] } ohos_source_set("deqp_vk_tessellation_source") { sources = [ "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/vktTessellationCommonEdgeTests.cpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/vktTessellationCommonEdgeTests.hpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/vktTessellationCoordinatesTests.cpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/vktTessellationCoordinatesTests.hpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/vktTessellationFractionalSpacingTests.cpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/vktTessellationFractionalSpacingTests.hpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/vktTessellationGeometryGridRenderTests.cpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/vktTessellationGeometryGridRenderTests.hpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/vktTessellationGeometryPassthroughTests.cpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/vktTessellationGeometryPassthroughTests.hpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/vktTessellationGeometryPointSizeTests.cpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/vktTessellationGeometryPointSizeTests.hpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/vktTessellationInvarianceTests.cpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/vktTessellationInvarianceTests.hpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/vktTessellationLimitsTests.cpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/vktTessellationLimitsTests.hpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/vktTessellationMiscDrawTests.cpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/vktTessellationMiscDrawTests.hpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/vktTessellationPrimitiveDiscardTests.cpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/vktTessellationPrimitiveDiscardTests.hpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/vktTessellationShaderInputOutputTests.cpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/vktTessellationShaderInputOutputTests.hpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/vktTessellationTests.cpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/vktTessellationTests.hpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/vktTessellationUserDefinedIO.cpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/vktTessellationUserDefinedIO.hpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/vktTessellationUtil.cpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/vktTessellationUtil.hpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/vktTessellationWindingTests.cpp", "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/vktTessellationWindingTests.hpp", ] include_dirs = deqp_vk_common_include_dirs include_dirs += [ "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation", ] deps = [ "//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_tessellation_config" ] } ohos_static_library("libdeqp_vk_tessellation") { deps = [ ":deqp_vk_tessellation_source" ] part_name = "acts" subsystem_name = "xts" }