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
14import("//test/xts/acts/graphic/vkgl/comm.gni")
15
16config("deqp_platform_ohos_config") {
17  cflags_cc = deqp_common_cflags_cc
18
19  cflags_cc += [
20    # "-Wno-conversion",
21    # "-Wno-unused-function",
22    "-Wno-unused-parameter",
23  ]
24
25  defines = deqp_common_defines
26}
27
28ohos_static_library("libdeqpgles3func0018") {
29  subsystem_name = "graphic"
30  part_name = "graphic_2d"
31  sources = common_src
32  sources += [ "../Deqpgles3BaseFunc.cpp" ]
33
34  include_dirs = common_include
35  deps = common_depends_gles3
36  external_deps = [
37    "hilog:libhilog",
38    "image_framework:image_native",
39  ]
40  configs = [ ":deqp_platform_ohos_config" ]
41}
42
43ohos_moduletest_suite("ActsDeqpgles3TestSuite0018") {
44  subsystem_name = "graphic"
45  part_name = "graphic_2d"
46  sources = [
47    "../ActsDeqpgles30018TestSuite.cpp",
48    "../functional/Deqpgles3common_absTestCase.cpp",
49    "../functional/Deqpgles3dfdx_constantTestCase.cpp",
50    "../functional/Deqpgles3dfdx_fboTestCase.cpp",
51    "../functional/Deqpgles3dfdx_fbo_floatTestCase.cpp",
52    "../functional/Deqpgles3dfdx_fbo_msaa2TestCase.cpp",
53    "../functional/Deqpgles3dfdx_fbo_msaa4TestCase.cpp",
54    "../functional/Deqpgles3dfdx_in_functionTestCase.cpp",
55    "../functional/Deqpgles3dfdx_linearTestCase.cpp",
56    "../functional/Deqpgles3dfdx_static_ifTestCase.cpp",
57    "../functional/Deqpgles3dfdx_static_loopTestCase.cpp",
58    "../functional/Deqpgles3dfdx_static_switchTestCase.cpp",
59    "../functional/Deqpgles3dfdx_uniform_ifTestCase.cpp",
60    "../functional/Deqpgles3dfdx_uniform_loopTestCase.cpp",
61    "../functional/Deqpgles3dfdx_uniform_switchTestCase.cpp",
62    "../functional/Deqpgles3dfdy_constantTestCase.cpp",
63    "../functional/Deqpgles3dfdy_fboTestCase.cpp",
64    "../functional/Deqpgles3dfdy_fbo_floatTestCase.cpp",
65    "../functional/Deqpgles3dfdy_fbo_msaa2TestCase.cpp",
66    "../functional/Deqpgles3dfdy_fbo_msaa4TestCase.cpp",
67    "../functional/Deqpgles3dfdy_in_functionTestCase.cpp",
68    "../functional/Deqpgles3dfdy_linearTestCase.cpp",
69    "../functional/Deqpgles3dfdy_static_ifTestCase.cpp",
70    "../functional/Deqpgles3dfdy_static_loopTestCase.cpp",
71    "../functional/Deqpgles3dfdy_static_switchTestCase.cpp",
72    "../functional/Deqpgles3dfdy_uniform_ifTestCase.cpp",
73    "../functional/Deqpgles3dfdy_uniform_loopTestCase.cpp",
74    "../functional/Deqpgles3dfdy_uniform_switchTestCase.cpp",
75    "../functional/Deqpgles3fastest_defaultTestCase.cpp",
76    "../functional/Deqpgles3fastest_fbo_floatTestCase.cpp",
77    "../functional/Deqpgles3fastest_fbo_msaa4TestCase.cpp",
78    "../functional/Deqpgles3fwidth_constantTestCase.cpp",
79    "../functional/Deqpgles3fwidth_fboTestCase.cpp",
80    "../functional/Deqpgles3fwidth_fbo_floatTestCase.cpp",
81    "../functional/Deqpgles3fwidth_fbo_msaa2TestCase.cpp",
82    "../functional/Deqpgles3fwidth_fbo_msaa4TestCase.cpp",
83    "../functional/Deqpgles3fwidth_in_functionTestCase.cpp",
84    "../functional/Deqpgles3fwidth_linearTestCase.cpp",
85    "../functional/Deqpgles3fwidth_static_ifTestCase.cpp",
86    "../functional/Deqpgles3fwidth_static_loopTestCase.cpp",
87    "../functional/Deqpgles3fwidth_static_switchTestCase.cpp",
88    "../functional/Deqpgles3fwidth_uniform_ifTestCase.cpp",
89    "../functional/Deqpgles3fwidth_uniform_loopTestCase.cpp",
90    "../functional/Deqpgles3fwidth_uniform_switchTestCase.cpp",
91    "../functional/Deqpgles3nicest_defaultTestCase.cpp",
92    "../functional/Deqpgles3nicest_fbo_floatTestCase.cpp",
93    "../functional/Deqpgles3nicest_fbo_msaa4TestCase.cpp",
94    "../functional/Deqpgles3texture_basicTestCase.cpp",
95    "../functional/Deqpgles3texture_float_fastestTestCase.cpp",
96    "../functional/Deqpgles3texture_float_nicestTestCase.cpp",
97    "../functional/Deqpgles3texture_functions_invalidTestCase.cpp",
98    "../functional/Deqpgles3texture_functions_texelfetchTestCase.cpp",
99    "../functional/Deqpgles3texture_functions_texelfetchoffsetTestCase.cpp",
100    "../functional/Deqpgles3texture_functions_texturegradTestCase.cpp",
101    "../functional/Deqpgles3texture_functions_texturegradoffsetTestCase.cpp",
102    "../functional/Deqpgles3texture_functions_texturelodoffsetTestCase.cpp",
103    "../functional/Deqpgles3texture_functions_textureprojgradTestCase.cpp",
104    "../functional/Deqpgles3texture_functions_textureprojgradoffsetTestCase.cpp",
105    "../functional/Deqpgles3texture_functions_textureprojlodTestCase.cpp",
106    "../functional/Deqpgles3texture_functions_textureprojlodoffsetTestCase.cpp",
107    "../functional/Deqpgles3texture_functions_texturesizeTestCase.cpp",
108    "../functional/Deqpgles3texture_msaa4TestCase.cpp",
109  ]
110
111  include_dirs = [ "../../../src" ]
112
113  deps = [ ":libdeqpgles3func0018" ]
114
115  cflags = [ "-Wno-error" ]
116}
117