1e5c31af7Sopenharmony_ci# Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. 2e5c31af7Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3e5c31af7Sopenharmony_ci# you may not use this file except in compliance with the License. 4e5c31af7Sopenharmony_ci# You may obtain a copy of the License at 5e5c31af7Sopenharmony_ci# 6e5c31af7Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7e5c31af7Sopenharmony_ci# 8e5c31af7Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9e5c31af7Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10e5c31af7Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11e5c31af7Sopenharmony_ci# See the License for the specific language governing permissions and 12e5c31af7Sopenharmony_ci# limitations under the License. 13e5c31af7Sopenharmony_ci 14e5c31af7Sopenharmony_ci# external modules glcts-es31 build 15e5c31af7Sopenharmony_ci 16e5c31af7Sopenharmony_ciimport("//build/ohos.gni") 17e5c31af7Sopenharmony_ciimport("//third_party/vk-gl-cts/vk_gl_cts.gni") 18e5c31af7Sopenharmony_ci 19e5c31af7Sopenharmony_ciconfig("glcts-es31_config") { 20e5c31af7Sopenharmony_ci cflags_cc = [ 21e5c31af7Sopenharmony_ci "-Wno-conversion", 22e5c31af7Sopenharmony_ci "-Wno-unused-function", 23e5c31af7Sopenharmony_ci ] 24e5c31af7Sopenharmony_ci 25e5c31af7Sopenharmony_ci cflags_cc += deqp_common_cflags_cc 26e5c31af7Sopenharmony_ci defines = deqp_common_defines 27e5c31af7Sopenharmony_ci} 28e5c31af7Sopenharmony_ci 29e5c31af7Sopenharmony_ciohos_source_set("glcts-es31_source") { 30e5c31af7Sopenharmony_ci sources = [ 31e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/openglcts/modules/gles31/es31cArrayOfArraysTests.cpp", 32e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/openglcts/modules/gles31/es31cComputeShaderTests.cpp", 33e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/openglcts/modules/gles31/es31cDrawIndirectTests.cpp", 34e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/openglcts/modules/gles31/es31cExplicitUniformLocationTest.cpp", 35e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/openglcts/modules/gles31/es31cFramebufferNoAttachmentsTests.cpp", 36e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/openglcts/modules/gles31/es31cLayoutBindingTests.cpp", 37e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/openglcts/modules/gles31/es31cProgramInterfaceQueryTests.cpp", 38e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/openglcts/modules/gles31/es31cSampleShadingTests.cpp", 39e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/openglcts/modules/gles31/es31cSeparateShaderObjsTests.cpp", 40e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/openglcts/modules/gles31/es31cShaderAtomicCountersTests.cpp", 41e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/openglcts/modules/gles31/es31cShaderBitfieldOperationTests.cpp", 42e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/openglcts/modules/gles31/es31cShaderImageLoadStoreTests.cpp", 43e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/openglcts/modules/gles31/es31cShaderImageSizeTests.cpp", 44e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/openglcts/modules/gles31/es31cShaderStorageBufferObjectTests.cpp", 45e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/openglcts/modules/gles31/es31cTestPackage.cpp", 46e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/openglcts/modules/gles31/es31cTextureGatherTests.cpp", 47e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/openglcts/modules/gles31/es31cTextureStorageMultisampleDependenciesTests.cpp", 48e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/openglcts/modules/gles31/es31cTextureStorageMultisampleFunctionalTests.cpp", 49e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/openglcts/modules/gles31/es31cTextureStorageMultisampleGLCoverageTests.cpp", 50e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/openglcts/modules/gles31/es31cTextureStorageMultisampleGetActiveUniformTests.cpp", 51e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/openglcts/modules/gles31/es31cTextureStorageMultisampleGetMultisamplefvTests.cpp", 52e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/openglcts/modules/gles31/es31cTextureStorageMultisampleGetTexLevelParameterifvTests.cpp", 53e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/openglcts/modules/gles31/es31cTextureStorageMultisampleSampleMaskiTests.cpp", 54e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/openglcts/modules/gles31/es31cTextureStorageMultisampleTests.cpp", 55e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/openglcts/modules/gles31/es31cTextureStorageMultisampleTexStorage2DMultisampleTests.cpp", 56e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/openglcts/modules/gles31/es31cTextureStorageMultisampleTexStorage3DMultisampleTests.cpp", 57e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/openglcts/modules/gles31/es31cVertexAttribBindingTests.cpp", 58e5c31af7Sopenharmony_ci ] 59e5c31af7Sopenharmony_ci include_dirs = [ 60e5c31af7Sopenharmony_ci "//third_party/zlib/src", 61e5c31af7Sopenharmony_ci "//third_party/spirv-headers/include", 62e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/amber", 63e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/renderdoc/src", 64e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/vulkancts/framework/vulkan", 65e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/openglcts/include", 66e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/openglcts/framework/egl/wrapper", 67e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/openglcts/modules/common", 68e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/openglcts/modules/gl", 69e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/openglcts/modules/gles2", 70e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/openglcts/modules/gles3", 71e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/openglcts/modules/gles31", 72e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/openglcts/modules/gles32", 73e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/openglcts/modules/glesext", 74e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/openglcts/modules", 75e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/modules/glshared", 76e5c31af7Sopenharmony_ci "//third_party/glslang/glslang", 77e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/build/include", 78e5c31af7Sopenharmony_ci "//third_party/glslang/SPIRV", 79e5c31af7Sopenharmony_ci "//third_party/spirv-tools/include", 80e5c31af7Sopenharmony_ci ] 81e5c31af7Sopenharmony_ci include_dirs += deqp_common_include_dirs 82e5c31af7Sopenharmony_ci 83e5c31af7Sopenharmony_ci deps = [ 84e5c31af7Sopenharmony_ci "//third_party/libpng:libpng", 85e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/openglcts/modules/common:libdeqp_glcts-common", 86e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/external/openglcts/modules/gl:libdeqp_glcts-gl", 87e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/framework/common:libdeqp_tcutil", 88e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/framework/opengl:libdeqp_glutil", 89e5c31af7Sopenharmony_ci "//third_party/vk-gl-cts/framework/opengl/wrapper:libdeqp_glwrapper", 90e5c31af7Sopenharmony_ci ] 91e5c31af7Sopenharmony_ci 92e5c31af7Sopenharmony_ci configs = [ ":glcts-es31_config" ] 93e5c31af7Sopenharmony_ci} 94e5c31af7Sopenharmony_ci 95e5c31af7Sopenharmony_ciohos_static_library("libdeqp_glcts-es31") { 96e5c31af7Sopenharmony_ci deps = [ ":glcts-es31_source" ] 97e5c31af7Sopenharmony_ci part_name = "graphic_2d" 98e5c31af7Sopenharmony_ci subsystem_name = "graphic" 99e5c31af7Sopenharmony_ci} 100