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("libdeqpgles3func0043") {
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("ActsDeqpgles3TestSuite0043") {
44  subsystem_name = "graphic"
45  part_name = "graphic_2d"
46  sources = [
47    "../ActsDeqpgles30043TestSuite.cpp",
48    "../functional/Deqpgles3dither_disabledTestCase.cpp",
49    "../functional/Deqpgles3dither_enabledTestCase.cpp",
50    "../functional/Deqpgles3multisample_default_framebufferTestCase.cpp",
51    "../functional/Deqpgles3multisample_fbo_4_samplesTestCase.cpp",
52    "../functional/Deqpgles3multisample_fbo_8_samplesTestCase.cpp",
53    "../functional/Deqpgles3multisample_fbo_max_samplesTestCase.cpp",
54    "../functional/Deqpgles3negative_api_fragmentTestCase.cpp",
55    "../functional/Deqpgles3negative_api_shaderTestCase.cpp",
56    "../functional/Deqpgles3negative_api_stateTestCase.cpp",
57    "../functional/Deqpgles3negative_api_vertex_arrayTestCase.cpp",
58    "../functional/Deqpgles3read_pixels_alignmentTestCase.cpp",
59    "../functional/Deqpgles3read_pixels_rowlengthTestCase.cpp",
60    "../functional/Deqpgles3read_pixels_skipTestCase.cpp",
61    "../functional/Deqpgles3state_query_booleanTestCase.cpp",
62    "../functional/Deqpgles3state_query_floatsTestCase.cpp",
63    "../functional/Deqpgles3state_query_integers64TestCase.cpp",
64    "../functional/Deqpgles3state_query_integersTestCase.cpp",
65  ]
66
67  include_dirs = [ "../../../src" ]
68
69  deps = [ ":libdeqpgles3func0043" ]
70
71  cflags = [ "-Wno-error" ]
72}
73