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