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# deqp-egl build 15 16import("//build/ohos.gni") 17import("//third_party/vk-gl-cts/vk_gl_cts.gni") 18 19config("deqp-egl_config") { 20 cflags_cc = deqp_common_cflags_cc 21 defines = deqp_common_defines 22} 23 24ohos_source_set("deqp-egl_source") { 25 sources = [ 26 "//third_party/vk-gl-cts/modules/egl/teglAndroidUtil.cpp", 27 "//third_party/vk-gl-cts/modules/egl/teglAndroidUtil.hpp", 28 "//third_party/vk-gl-cts/modules/egl/teglApiCase.cpp", 29 "//third_party/vk-gl-cts/modules/egl/teglApiCase.hpp", 30 "//third_party/vk-gl-cts/modules/egl/teglBufferAgeTests.cpp", 31 "//third_party/vk-gl-cts/modules/egl/teglBufferAgeTests.hpp", 32 "//third_party/vk-gl-cts/modules/egl/teglChooseConfigReference.cpp", 33 "//third_party/vk-gl-cts/modules/egl/teglChooseConfigReference.hpp", 34 "//third_party/vk-gl-cts/modules/egl/teglChooseConfigTests.cpp", 35 "//third_party/vk-gl-cts/modules/egl/teglChooseConfigTests.hpp", 36 "//third_party/vk-gl-cts/modules/egl/teglClientExtensionTests.cpp", 37 "//third_party/vk-gl-cts/modules/egl/teglClientExtensionTests.hpp", 38 "//third_party/vk-gl-cts/modules/egl/teglColorClearCase.cpp", 39 "//third_party/vk-gl-cts/modules/egl/teglColorClearCase.hpp", 40 "//third_party/vk-gl-cts/modules/egl/teglColorClearTests.cpp", 41 "//third_party/vk-gl-cts/modules/egl/teglColorClearTests.hpp", 42 "//third_party/vk-gl-cts/modules/egl/teglConfigList.cpp", 43 "//third_party/vk-gl-cts/modules/egl/teglConfigList.hpp", 44 "//third_party/vk-gl-cts/modules/egl/teglCreateContextExtTests.cpp", 45 "//third_party/vk-gl-cts/modules/egl/teglCreateContextExtTests.hpp", 46 "//third_party/vk-gl-cts/modules/egl/teglCreateContextTests.cpp", 47 "//third_party/vk-gl-cts/modules/egl/teglCreateContextTests.hpp", 48 "//third_party/vk-gl-cts/modules/egl/teglCreateSurfaceTests.cpp", 49 "//third_party/vk-gl-cts/modules/egl/teglCreateSurfaceTests.hpp", 50 "//third_party/vk-gl-cts/modules/egl/teglGLES1RenderUtil.cpp", 51 "//third_party/vk-gl-cts/modules/egl/teglGLES1RenderUtil.hpp", 52 "//third_party/vk-gl-cts/modules/egl/teglGLES2RenderUtil.cpp", 53 "//third_party/vk-gl-cts/modules/egl/teglGLES2RenderUtil.hpp", 54 "//third_party/vk-gl-cts/modules/egl/teglGLES2SharedRenderingPerfTests.cpp", 55 "//third_party/vk-gl-cts/modules/egl/teglGLES2SharedRenderingPerfTests.hpp", 56 "//third_party/vk-gl-cts/modules/egl/teglGLES2SharingTests.cpp", 57 "//third_party/vk-gl-cts/modules/egl/teglGLES2SharingTests.hpp", 58 "//third_party/vk-gl-cts/modules/egl/teglGLES2SharingThreadedTests.cpp", 59 "//third_party/vk-gl-cts/modules/egl/teglGLES2SharingThreadedTests.hpp", 60 "//third_party/vk-gl-cts/modules/egl/teglGetFrameTimestampsTests.cpp", 61 "//third_party/vk-gl-cts/modules/egl/teglGetFrameTimestampsTests.hpp", 62 "//third_party/vk-gl-cts/modules/egl/teglGetProcAddressTests.cpp", 63 "//third_party/vk-gl-cts/modules/egl/teglGetProcAddressTests.hpp", 64 "//third_party/vk-gl-cts/modules/egl/teglImageFormatTests.cpp", 65 "//third_party/vk-gl-cts/modules/egl/teglImageFormatTests.hpp", 66 "//third_party/vk-gl-cts/modules/egl/teglImageTests.cpp", 67 "//third_party/vk-gl-cts/modules/egl/teglImageTests.hpp", 68 "//third_party/vk-gl-cts/modules/egl/teglImageUtil.cpp", 69 "//third_party/vk-gl-cts/modules/egl/teglImageUtil.hpp", 70 "//third_party/vk-gl-cts/modules/egl/teglInfoTests.cpp", 71 "//third_party/vk-gl-cts/modules/egl/teglInfoTests.hpp", 72 "//third_party/vk-gl-cts/modules/egl/teglMakeCurrentPerfTests.cpp", 73 "//third_party/vk-gl-cts/modules/egl/teglMakeCurrentPerfTests.hpp", 74 "//third_party/vk-gl-cts/modules/egl/teglMemoryStressTests.cpp", 75 "//third_party/vk-gl-cts/modules/egl/teglMemoryStressTests.hpp", 76 "//third_party/vk-gl-cts/modules/egl/teglMultiContextTests.cpp", 77 "//third_party/vk-gl-cts/modules/egl/teglMultiContextTests.hpp", 78 "//third_party/vk-gl-cts/modules/egl/teglMultiThreadTests.cpp", 79 "//third_party/vk-gl-cts/modules/egl/teglMultiThreadTests.hpp", 80 "//third_party/vk-gl-cts/modules/egl/teglMutableRenderBufferTests.cpp", 81 "//third_party/vk-gl-cts/modules/egl/teglMutableRenderBufferTests.hpp", 82 "//third_party/vk-gl-cts/modules/egl/teglNativeColorMappingTests.cpp", 83 "//third_party/vk-gl-cts/modules/egl/teglNativeColorMappingTests.hpp", 84 "//third_party/vk-gl-cts/modules/egl/teglNativeCoordMappingTests.cpp", 85 "//third_party/vk-gl-cts/modules/egl/teglNativeCoordMappingTests.hpp", 86 "//third_party/vk-gl-cts/modules/egl/teglNegativeApiTests.cpp", 87 "//third_party/vk-gl-cts/modules/egl/teglNegativeApiTests.hpp", 88 "//third_party/vk-gl-cts/modules/egl/teglNegativePartialUpdateTests.cpp", 89 "//third_party/vk-gl-cts/modules/egl/teglNegativePartialUpdateTests.hpp", 90 "//third_party/vk-gl-cts/modules/egl/teglPartialUpdateTests.cpp", 91 "//third_party/vk-gl-cts/modules/egl/teglPartialUpdateTests.hpp", 92 "//third_party/vk-gl-cts/modules/egl/teglPreservingSwapTests.cpp", 93 "//third_party/vk-gl-cts/modules/egl/teglPreservingSwapTests.hpp", 94 "//third_party/vk-gl-cts/modules/egl/teglQueryConfigTests.cpp", 95 "//third_party/vk-gl-cts/modules/egl/teglQueryConfigTests.hpp", 96 "//third_party/vk-gl-cts/modules/egl/teglQueryContextTests.cpp", 97 "//third_party/vk-gl-cts/modules/egl/teglQueryContextTests.hpp", 98 "//third_party/vk-gl-cts/modules/egl/teglQuerySurfaceTests.cpp", 99 "//third_party/vk-gl-cts/modules/egl/teglQuerySurfaceTests.hpp", 100 "//third_party/vk-gl-cts/modules/egl/teglRenderCase.cpp", 101 "//third_party/vk-gl-cts/modules/egl/teglRenderCase.hpp", 102 "//third_party/vk-gl-cts/modules/egl/teglRenderTests.cpp", 103 "//third_party/vk-gl-cts/modules/egl/teglRenderTests.hpp", 104 "//third_party/vk-gl-cts/modules/egl/teglResizeTests.cpp", 105 "//third_party/vk-gl-cts/modules/egl/teglResizeTests.hpp", 106 "//third_party/vk-gl-cts/modules/egl/teglRobustnessTests.cpp", 107 "//third_party/vk-gl-cts/modules/egl/teglRobustnessTests.hpp", 108 "//third_party/vk-gl-cts/modules/egl/teglSimpleConfigCase.cpp", 109 "//third_party/vk-gl-cts/modules/egl/teglSimpleConfigCase.hpp", 110 "//third_party/vk-gl-cts/modules/egl/teglSurfacelessContextTests.cpp", 111 "//third_party/vk-gl-cts/modules/egl/teglSurfacelessContextTests.hpp", 112 "//third_party/vk-gl-cts/modules/egl/teglSwapBuffersTests.cpp", 113 "//third_party/vk-gl-cts/modules/egl/teglSwapBuffersTests.hpp", 114 "//third_party/vk-gl-cts/modules/egl/teglSwapBuffersWithDamageTests.cpp", 115 "//third_party/vk-gl-cts/modules/egl/teglSwapBuffersWithDamageTests.hpp", 116 "//third_party/vk-gl-cts/modules/egl/teglSyncTests.cpp", 117 "//third_party/vk-gl-cts/modules/egl/teglSyncTests.hpp", 118 "//third_party/vk-gl-cts/modules/egl/teglTestCase.cpp", 119 "//third_party/vk-gl-cts/modules/egl/teglTestCase.hpp", 120 "//third_party/vk-gl-cts/modules/egl/teglTestPackage.cpp", 121 "//third_party/vk-gl-cts/modules/egl/teglTestPackage.hpp", 122 "//third_party/vk-gl-cts/modules/egl/teglThreadCleanUpTests.cpp", 123 "//third_party/vk-gl-cts/modules/egl/teglThreadCleanUpTests.hpp", 124 "//third_party/vk-gl-cts/modules/egl/teglVGRenderUtil.cpp", 125 "//third_party/vk-gl-cts/modules/egl/teglVGRenderUtil.hpp", 126 "//third_party/vk-gl-cts/modules/egl/teglWideColorTests.cpp", 127 "//third_party/vk-gl-cts/modules/egl/teglWideColorTests.hpp", 128 ] 129 include_dirs = [ 130 "//third_party/vk-gl-cts/modules/glshared", 131 "//third_party/vk-gl-cts/modules/egl", 132 ] 133 include_dirs += deqp_common_include_dirs 134 135 deps = [ 136 "//third_party/libpng:libpng", 137 "//third_party/vk-gl-cts/framework/common:libdeqp_tcutil", 138 "//third_party/vk-gl-cts/framework/egl:libdeqp_eglutil", 139 "//third_party/vk-gl-cts/framework/opengl:libdeqp_glutil", 140 "//third_party/vk-gl-cts/framework/opengl/simplereference:libdeqp_glutil-sglr", 141 "//third_party/vk-gl-cts/framework/opengl/wrapper:libdeqp_glwrapper", 142 "//third_party/vk-gl-cts/framework/referencerenderer:libdeqp_referencerenderer", 143 "//third_party/zlib:libz", 144 ] 145 configs = [ ":deqp-egl_config" ] 146 147 # lib_dirs = [ 148 # "//third_party/vk-gl-cts/outlibs" 149 # ] 150 # libs = [ 151 # "png", 152 # "z", 153 # # "glslang", 154 # # "SPIRV", 155 # # "SPVRemapper", 156 # # "spirv-tools", 157 # # "spirv-tools-link", 158 # # "spirv-tools-lint", 159 # # "spirv-tools-opt", 160 # # "spirv-tools-reduce", 161 # # "MachineIndependent", 162 # # "OGLCompiler", 163 # # "OSDependent", 164 # # "GenericCodeGen", 165 # ] 166} 167 168ohos_static_library("libdeqp-egl") { 169 deps = [ ":deqp-egl_source" ] 170 part_name = "graphic_2d" 171 subsystem_name = "graphic" 172} 173