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  # defines -=["DE_PTR_SIZE=8"]
28  #defines += [
29  #    "DE_PTR_SIZE=4",
30  #    "_XOPEN_SOURCE=600",
31  #  ]
32}
33
34ohos_static_library("libdeqpgles2func0001") {
35  subsystem_name = "graphic"
36  part_name = "graphic_2d"
37  sources = common_src
38  sources += [ "../Deqpgles2BaseFunc.cpp" ]
39
40  include_dirs = common_include
41  deps = common_depends_gles2
42  external_deps = [
43    "hilog:libhilog",
44    "image_framework:image_native",
45  ]
46  configs = [ ":deqp_platform_ohos_config" ]
47}
48
49ohos_moduletest_suite("ActsDeqpgles2TestSuite0001") {
50  subsystem_name = "graphic"
51  part_name = "graphic_2d"
52  sources = [
53    "../ActsDeqpgles20001TestSuite.cpp",
54    "../functional/Deqpgles2conversions_scalar_to_scalarTestCase.cpp",
55    "../functional/Deqpgles2conversions_scalar_to_vectorTestCase.cpp",
56    "../functional/Deqpgles2conversions_vector_illegalTestCase.cpp",
57    "../functional/Deqpgles2conversions_vector_to_scalarTestCase.cpp",
58    "../functional/Deqpgles2conversions_vector_to_vectorTestCase.cpp",
59    "../functional/Deqpgles2functional_clip_controlTestCase.cpp",
60    "../functional/Deqpgles2functional_color_clearTestCase.cpp",
61    "../functional/Deqpgles2functional_depth_stencil_clearTestCase.cpp",
62    "../functional/Deqpgles2functional_implementation_limitsTestCase.cpp",
63    "../functional/Deqpgles2functional_light_amountTestCase.cpp",
64    "../functional/Deqpgles2functional_multisampled_render_to_textureTestCase.cpp",
65    "../functional/Deqpgles2functional_prerequisiteTestCase.cpp",
66    "../functional/Deqpgles2preprocessor_basicTestCase.cpp",
67    "../functional/Deqpgles2preprocessor_builtinTestCase.cpp",
68    "../functional/Deqpgles2preprocessor_commentsTestCase.cpp",
69    "../functional/Deqpgles2preprocessor_conditional_inclusionTestCase.cpp",
70    "../functional/Deqpgles2preprocessor_conditionalsTestCase.cpp",
71    "../functional/Deqpgles2preprocessor_definitionsTestCase.cpp",
72    "../functional/Deqpgles2preprocessor_directiveTestCase.cpp",
73    "../functional/Deqpgles2preprocessor_expressionsTestCase.cpp",
74    "../functional/Deqpgles2preprocessor_extensionsTestCase.cpp",
75    "../functional/Deqpgles2preprocessor_function_definitionsTestCase.cpp",
76    "../functional/Deqpgles2preprocessor_function_redefinitionsTestCase.cpp",
77    "../functional/Deqpgles2preprocessor_invalid_conditionalsTestCase.cpp",
78    "../functional/Deqpgles2preprocessor_invalid_definitionsTestCase.cpp",
79    "../functional/Deqpgles2preprocessor_invalid_expressionsTestCase.cpp",
80    "../functional/Deqpgles2preprocessor_invalid_function_definitionsTestCase.cpp",
81    "../functional/Deqpgles2preprocessor_invalid_opsTestCase.cpp",
82    "../functional/Deqpgles2preprocessor_object_redefinitionsTestCase.cpp",
83    "../functional/Deqpgles2preprocessor_operator_precedenceTestCase.cpp",
84    "../functional/Deqpgles2preprocessor_pragmasTestCase.cpp",
85    "../functional/Deqpgles2preprocessor_predefined_macrosTestCase.cpp",
86    "../functional/Deqpgles2preprocessor_recursionTestCase.cpp",
87    "../functional/Deqpgles2preprocessor_semanticTestCase.cpp",
88    "../functional/Deqpgles2preprocessor_undefined_identifiersTestCase.cpp",
89    "../functional/Deqpgles2shaders_constantsTestCase.cpp",
90    "../functional/Deqpgles2shaders_linkageTestCase.cpp",
91    "../functional/Deqpgles2use_index_arrayTestCase.cpp",
92    "../functional/Deqpgles2use_vertex_arrayTestCase.cpp",
93    "../functional/Deqpgles2write_basicTestCase.cpp",
94    "../functional/Deqpgles2write_basic_subdataTestCase.cpp",
95    "../functional/Deqpgles2write_partial_specifyTestCase.cpp",
96    "../functional/Deqpgles2write_randomTestCase.cpp",
97    "../functional/Deqpgles2write_recreate_storeTestCase.cpp",
98    "../info/Deqpgles2dEQP-GLES2_infoTestCase.cpp",
99  ]
100
101  include_dirs = [ "../../../src" ]
102
103  deps = [ ":libdeqpgles2func0001" ]
104
105  cflags = [ "-Wno-error" ]
106}
107