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