• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 framwork tcutil-platform build
15
16import("//build/ohos.gni")
17import("//foundation/graphic/graphic_2d/graphic_config.gni")
18import("//third_party/vk-gl-cts/vk_gl_cts.gni")
19
20config("tcutil-platform_config") {
21  cflags_cc = [
22    "-Wno-conversion",
23    "-Wno-unused-function",
24  ]
25  cflags_cc += deqp_common_cflags_cc
26  defines = deqp_common_defines
27}
28
29ohos_source_set("tcutil-platform_source") {
30  sources = [
31    "//third_party/vk-gl-cts/framework/platform/vanilla/tcuVanillaPlatform.cpp",
32  ]
33  include_dirs = [
34    "//third_party/zlib/src",
35    "//third_party/spirv-headers/include",
36    "//third_party/amber",
37    "//third_party/renderdoc/src",
38    "//third_party/vulkancts/framework/vulkan",
39
40    #"//third_party/vk-gl-cts/build/external/vulkancts/framework/vulkan",
41    "//third_party/vk-gl-cts/external/vulkancts/framework/vulkan/generated/vulkan",
42    "//third_party/glslang/glslang",
43    "//third_party/vk-gl-cts/build/include",
44    "//third_party/glslang/SPIRV",
45    "//third_party/spirv-tools/include",
46    "//third_party/spirv-headers/include",
47  ]
48  include_dirs += deqp_common_include_dirs
49
50  deps = [
51    "//third_party/libpng:libpng",
52    "//third_party/vk-gl-cts/external/vulkancts/framework/vulkan:libdeqp_vkutil",
53    "//third_party/vk-gl-cts/framework/common:libdeqp_tcutil",
54    "//third_party/vk-gl-cts/framework/egl:libdeqp_eglutil",
55    "//third_party/vk-gl-cts/framework/opengl:libdeqp_glutil",
56  ]
57  configs = [ ":tcutil-platform_config" ]
58}
59
60ohos_static_library("libdeqp_tcutil-platform") {
61  deps = [ ":tcutil-platform_source" ]
62  part_name = "graphic_2d"
63  subsystem_name = "graphic"
64}
65
66config("deqp_platform_ohos_config") {
67  cflags_cc = deqp_common_cflags_cc
68  defines = deqp_common_defines
69  defines += [ "_XOPEN_SOURCE=600" ]
70}
71
72ohos_shared_library("libdeqp_ohos_platform") {
73  sources = [
74    "ohos/context/tcuOhosEglContextFactory.cpp",
75    "ohos/context/tcuOhosNativeContext.cpp",
76    "ohos/display/pixmap/tcuOhosNativePixmap.cpp",
77    "ohos/display/pixmap/tcuOhosPixmapFactory.cpp",
78    "ohos/display/tcuOhosEglDisplayFactory.cpp",
79    "ohos/display/tcuOhosNativeDisplay.cpp",
80    "ohos/display/window/tcuOhosNativeWindow.cpp",
81    "ohos/display/window/tcuOhosWindowFactory.cpp",
82    "ohos/tcuOhosPlatform.cpp",
83  ]
84  include_dirs = [
85    "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include",
86    "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src",
87    "//foundation/graphic/graphic_2d/rosen/modules/render_service_base/src",
88    "//foundation/graphic/graphic_2d/rosen/modules/render_service_base/include",
89    "//foundation/graphic/graphic_2d/rosen/modules/render_service_client",
90    "//foundation/graphic/graphic_2d/interfaces/innerkits/vsync_module",
91    "//foundation/graphic/graphic_2d/rosen/include/common",
92    "//foundation/window/window_manager/interfaces/innerkits/wm",
93    "//third_party/vk-gl-cts",
94    "//third_party/vk-gl-cts/framework/delibs/debase",
95    "//third_party/vk-gl-cts/framework/delibs/decpp",
96    "//third_party/vk-gl-cts/framework/delibs/depool",
97    "//third_party/vk-gl-cts/framework/delibs/dethread",
98    "//third_party/vk-gl-cts/framework/delibs/deutil",
99    "//third_party/vk-gl-cts/framework/delibs/destream",
100    "//third_party/vk-gl-cts/framework/common",
101    "//third_party/vk-gl-cts/framework/qphelper",
102    "//third_party/vk-gl-cts/framework/xexml",
103    "//third_party/vk-gl-cts/framework/egl",
104    "//third_party/vk-gl-cts/framework/egl/wrapper",
105    "//third_party/vk-gl-cts/framework/opengl",
106    "//third_party/vk-gl-cts/framework/opengl/wrapper",
107    "//third_party/vk-gl-cts/framework/opengl/simplereference",
108    "//third_party/vk-gl-cts/framework/platform/ohos",
109    "//third_party/vk-gl-cts/external/openglcts/modules",
110    "//third_party/vk-gl-cts/external/openglcts/modules/common",
111    "//third_party/vk-gl-cts/external/openglcts/modules/gl",
112    "//third_party/vk-gl-cts/external/openglcts/modules/gles2",
113    "//third_party/vk-gl-cts/external/openglcts/modules/gles3",
114    "//third_party/vk-gl-cts/external/openglcts/modules/gles31",
115    "//third_party/vk-gl-cts/external/openglcts/modules/gles32",
116    "//third_party/vk-gl-cts/external/openglcts/modules/glesext",
117    "//third_party/vk-gl-cts/external/openglcts/modules/runner",
118    "//third_party/vk-gl-cts/framework/referencerenderer",
119    "//third_party/vk-gl-cts/modules/glshared",
120    "ohos/rosen_context",
121
122    "//third_party/vk-gl-cts/external/vulkancts/framework/vulkan",
123
124    #"//third_party/vk-gl-cts/build/external/vulkancts/framework/vulkan",
125    "//third_party/vk-gl-cts/external/vulkancts/framework/vulkan/generated/vulkan",
126  ]
127  deps = [
128    ":libdeqp_tcutil-platform",
129    "ohos/rosen_context:rosen_context",
130    "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics:2d_graphics",
131    "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics:2d_graphics",
132    "//foundation/graphic/graphic_2d/rosen/modules/render_service_base:librender_service_base",
133    "//foundation/graphic/graphic_2d/rosen/modules/render_service_base:librender_service_base",
134    "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client",
135    "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client",
136    "//foundation/graphic/graphic_2d/rosen/samples/2d_graphics:drawing_sample_rs",
137    "//foundation/window/window_manager/dm:libdm",
138    "//foundation/window/window_manager/dmserver:libdms",
139    "//foundation/window/window_manager/wm:libwm",
140    "//foundation/window/window_manager/wm:libwm",
141    "//foundation/window/window_manager/wmserver:libwms",
142    "//third_party/libpng:libpng",
143    "//third_party/spirv-tools:libdeqp_spirvtools",
144    "//third_party/spirv-tools/source/opt:libdeqp_spirvtools-opt",
145    "//third_party/vk-gl-cts/external/openglcts/modules:libdeqp_glcts",
146    "//third_party/vk-gl-cts/external/vulkancts/framework/vulkan:libdeqp_vkutilnoshader",
147
148    #"//third_party/vk-gl-cts/external/vulkancts/modules/vulkan:deqp_vk_execute",
149    # "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan:deqp_vk_build",
150    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan:libdeqp_vk_package",
151    "//third_party/vk-gl-cts/framework/common:libdeqp_tcutil",
152    "//third_party/vk-gl-cts/framework/delibs/debase:libdeqp_debase",
153    "//third_party/vk-gl-cts/framework/delibs/decpp:libdeqp_decpp",
154    "//third_party/vk-gl-cts/framework/delibs/dethread:libdeqp_dethread",
155    "//third_party/vk-gl-cts/framework/delibs/deutil:libdeqp_deutil",
156    "//third_party/vk-gl-cts/framework/egl:libdeqp_eglutil",
157    "//third_party/vk-gl-cts/framework/egl/wrapper:libdeqp_eglwrapper",
158    "//third_party/vk-gl-cts/framework/opengl:libdeqp_glutil",
159    "//third_party/vk-gl-cts/framework/opengl/simplereference:libdeqp_glutil-sglr",
160    "//third_party/vk-gl-cts/framework/opengl/wrapper:libdeqp_glwrapper",
161    "//third_party/vk-gl-cts/framework/qphelper:libdeqp_qphelper",
162    "//third_party/vk-gl-cts/framework/xexml:libdeqp_xexml",
163    "//third_party/vk-gl-cts/modules/egl:libdeqp-egl",
164    "//third_party/vk-gl-cts/modules/gles2:libdeqp-gles2",
165    "//third_party/vk-gl-cts/modules/gles3:libdeqp-gles3",
166    "//third_party/vk-gl-cts/modules/gles31:libdeqp-gles31",
167    "//third_party/vk-gl-cts/modules/glshared:libdeqp-gl-shared",
168    "//third_party/zlib:libz",
169  ]
170  external_deps = [
171    #  "hilog_native:libhilog",
172    #  "multimedia_image_framework:image_native",
173  ]
174
175  configs = [ ":deqp_platform_ohos_config" ]
176  part_name = "graphic_2d"
177  subsystem_name = "graphic"
178}
179
180ohos_executable("glcts") {
181  sources = [ "ohos/testmain.cpp" ]
182  include_dirs = [
183    "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include",
184    "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src",
185    "//foundation/graphic/graphic_2d/rosen/modules/render_service_base/src",
186    "//foundation/graphic/graphic_2d/rosen/modules/render_service_base/include",
187    "//foundation/graphic/graphic_2d/rosen/modules/render_service_client",
188    "//foundation/graphic/graphic_2d/interfaces/innerkits/vsync_module",
189    "//foundation/graphic/graphic_2d/rosen/include/common",
190    "//foundation/window/window_manager/interfaces/innerkits/wm",
191    "//third_party/vk-gl-cts",
192    "//third_party/vk-gl-cts/framework/delibs/debase",
193    "//third_party/vk-gl-cts/framework/delibs/decpp",
194    "//third_party/vk-gl-cts/framework/delibs/depool",
195    "//third_party/vk-gl-cts/framework/delibs/dethread",
196    "//third_party/vk-gl-cts/framework/delibs/deutil",
197    "//third_party/vk-gl-cts/framework/delibs/destream",
198    "//third_party/vk-gl-cts/framework/common",
199    "//third_party/vk-gl-cts/framework/qphelper",
200    "//third_party/vk-gl-cts/framework/xexml",
201    "//third_party/vk-gl-cts/framework/egl",
202    "//third_party/vk-gl-cts/framework/egl/wrapper",
203    "//third_party/vk-gl-cts/framework/opengl",
204    "//third_party/vk-gl-cts/framework/opengl/wrapper",
205    "//third_party/vk-gl-cts/framework/opengl/simplereference",
206    "//third_party/vk-gl-cts/framework/platform/ohos",
207    "//third_party/vk-gl-cts/external/openglcts/modules",
208    "//third_party/vk-gl-cts/external/openglcts/modules/common",
209    "//third_party/vk-gl-cts/external/openglcts/modules/gl",
210    "//third_party/vk-gl-cts/external/openglcts/modules/gles2",
211    "//third_party/vk-gl-cts/external/openglcts/modules/gles3",
212    "//third_party/vk-gl-cts/external/openglcts/modules/gles31",
213    "//third_party/vk-gl-cts/external/openglcts/modules/gles32",
214    "//third_party/vk-gl-cts/external/openglcts/modules/glesext",
215    "//third_party/vk-gl-cts/external/openglcts/modules/runner",
216    "//third_party/vk-gl-cts/framework/referencerenderer",
217    "//third_party/vk-gl-cts/modules/glshared",
218    "ohos/rosen_context",
219
220    "//third_party/vk-gl-cts/external/vulkancts/framework/vulkan",
221
222    #"//third_party/vk-gl-cts/build/external/vulkancts/framework/vulkan",
223    "//third_party/vk-gl-cts/external/vulkancts/framework/vulkan/generated/vulkan",
224  ]
225  deps = [
226    ":libdeqp_ohos_platform",
227    "//third_party/libpng:libpng",
228  ]
229  configs = [ ":deqp_platform_ohos_config" ]
230  part_name = "graphic_2d"
231  subsystem_name = "graphic"
232}
233