# 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 modules common build import("//build/ohos.gni") import("//third_party/vk-gl-cts/vk_gl_cts.gni") config("glcts-common_config") { cflags_cc = [ "-Wno-conversion", "-Wno-unused-function", ] cflags_cc += deqp_common_cflags_cc defines = deqp_common_defines } ohos_source_set("glcts-common_source") { sources = [ "//third_party/vk-gl-cts/external/openglcts/modules/common/glcAggressiveShaderOptimizationsTests.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcBlendEquationAdvancedTests.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcCompressedFormatTests.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcConfigList.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcConfigListCase.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcConfigListEGL.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcConfigListWGL.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcConfigPackage.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcContext.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcContextFlagsTests.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcExposedExtensionsTests.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcExtTokens.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcFragDepthTests.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcFramebufferCompleteness.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcGLSLVectorConstructorTests.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcInfoTests.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcInternalformatTests.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcKHRDebugTests.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcLayoutLocationTests.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcMisc.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcMultipleContextsTests.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcNearestEdgeTests.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcNoErrorTests.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcPackedDepthStencilTests.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcPackedPixelsTests.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcParallelShaderCompileTests.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcPixelStorageModesTests.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcPolygonOffsetClampTests.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcRobustBufferAccessBehaviorTests.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcRobustnessTests.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcSampleVariablesTests.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcSeparableProgramsTransformFeedbackTests.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcShaderConstExprTests.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcShaderGroupVoteTests.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcShaderIndexingTests.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcShaderIntegerMixTests.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcShaderLibrary.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcShaderLibraryCase.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcShaderLoopTests.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcShaderMacroTests.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcShaderMultisampleInterpolationTests.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcShaderNegativeTests.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcShaderRenderCase.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcShaderStructTests.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcSpirvUtils.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcTestCase.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcTestCaseWrapper.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcTestPackage.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcTestSubcase.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcTextureCompatibilityTests.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcTextureFilterAnisotropicTests.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcTextureRepeatModeTests.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcUniformBlockCase.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcUniformBlockTests.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcViewportArrayTests.cpp", ] include_dirs = [ "//third_party/zlib/src", "//third_party/spirv-headers/include", #"//third_party/vk-gl-cts/external/amber", #"//third_party/vk-gl-cts/external/renderdoc/src", "//third_party/libpng", #"//third_party/vk-gl-cts/external/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/external/openglcts/modules/common/subgroups", "//third_party/glslang", "//third_party/spirv-tools/include", "//third_party/spirv-tools/external/include", "//third_party/vk-gl-cts/build/external/vulkancts/framework/vulkan", "//third_party/glslang/glslang", "//third_party/vk-gl-cts/build/include", "//third_party/glslang/SPIRV", ] include_dirs += deqp_common_include_dirs deps = [ "//third_party/vk-gl-cts/framework/opengl:libdeqp_glutil", "//third_party/vk-gl-cts/framework/common:libdeqp_tcutil", "//third_party/vk-gl-cts/framework/egl:libdeqp_eglutil", "//third_party/vk-gl-cts/external/openglcts/modules/common/subgroups:libdeqp-gl-subgroups", "//third_party/glslang/glslang:libdeqp_MachineIndependent", "//third_party/glslang/glslang:libdeqp_OSDependent", "//third_party/glslang/glslang:libdeqp_GenericCodeGen", "//third_party/glslang/OGLCompilersDLL:libdeqp_OGLCompiler", "//third_party/glslang/SPIRV:libdeqp_spvremapper", "//third_party/glslang/SPIRV:libdeqp_spirv", "//third_party/glslang/glslang:libdeqp_glslang", "//third_party/spirv-tools:libdeqp_spirvtools", "//third_party/spirv-tools/source/link:libdeqp_spirvtools-link", "//third_party/spirv-tools/source/opt:libdeqp_spirvtools-opt", "//third_party/spirv-tools/source/reduce:libdeqp_spirvtools-reduce", "//third_party/spirv-tools/source/lint:libdeqp_spirvtools-lint", ] # lib_dirs = [ # "//third_party/vk-gl-cts/outlibs" # ] # libs = [ # "glslang", # "SPIRV", # "SPVRemapper", # "spirv-tools", # "spirv-tools-link", # "spirv-tools-lint", # "spirv-tools-opt", # "spirv-tools-reduce", # "MachineIndependent", # "OGLCompiler", # "OSDependent", # "GenericCodeGen", # ] configs = [ ":glcts-common_config" ] } ohos_static_library("libdeqp_glcts-common") { deps = [ ":glcts-common_source" ] part_name = "graphic_standard" subsystem_name = "graphic" } ohos_source_set("glcts-common-nocontext-package_source") { sources = [ "//third_party/vk-gl-cts/external/openglcts/modules/common/glcNoDefaultContextPackage.cpp", "//third_party/vk-gl-cts/external/openglcts/modules/common/glcSingleConfigTestPackage.cpp", ] include_dirs = [ "//third_party/zlib/src", "//third_party/spirv-headers/include", #"//third_party/vk-gl-cts/external/amber", #"//third_party/vk-gl-cts/external/renderdoc/src", "//third_party/libpng", #"//third_party/vk-gl-cts/external/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/external/openglcts/modules/common/subgroups", "//third_party/glslang", "//third_party/spirv-tools/include", "//third_party/spirv-tools/external/include", "//third_party/vk-gl-cts/build/external/vulkancts/framework/vulkan", ] include_dirs += deqp_common_include_dirs deps = [ "//third_party/vk-gl-cts/framework/opengl:libdeqp_glutil", "//third_party/vk-gl-cts/framework/common:libdeqp_tcutil", "//third_party/vk-gl-cts/framework/egl:libdeqp_eglutil", ] configs = [ ":glcts-common_config" ] } ohos_static_library("libdeqp_glcts-common-nocontext-package") { deps = [ ":glcts-common-nocontext-package_source" ] part_name = "graphic_standard" subsystem_name = "graphic" }