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("libkhrgles32func0002") {
29  subsystem_name = "graphic"
30  part_name = "graphic_2d"
31  sources = common_src
32  sources += [ "../Khrgles32BaseFunc.cpp" ]
33
34  include_dirs = common_include
35  deps = common_depends_gles32
36  external_deps = [
37    "hilog:libhilog",
38    "image_framework:image_native",
39  ]
40  configs = [ ":deqp_platform_ohos_config" ]
41}
42
43ohos_moduletest_suite("ActsKhrgles32TestSuite0002") {
44  subsystem_name = "graphic"
45  part_name = "graphic_2d"
46  sources = [
47    "../ActsKhrgles320002TestSuite.cpp",
48    "../core/Khrgles32compressed_format_apiTestCase.cpp",
49    "../core/Khrgles32compressed_format_formatTestCase.cpp",
50    "../core/Khrgles32core_copy_imageTestCase.cpp",
51    "../core/Khrgles32core_framebuffer_completenessTestCase.cpp",
52    "../core/Khrgles32core_nearest_edgeTestCase.cpp",
53    "../core/Khrgles32core_separable_programs_tfTestCase.cpp",
54    "../core/Khrgles32core_shader_macrosTestCase.cpp",
55    "../core/Khrgles32core_texture_compatibilityTestCase.cpp",
56    "../core/Khrgles32ext_texture_shadow_lod_textureTestCase.cpp",
57    "../core/Khrgles32ext_texture_shadow_lod_texturelodTestCase.cpp",
58    "../core/Khrgles32ext_texture_shadow_lod_texturelodoffsetTestCase.cpp",
59    "../core/Khrgles32ext_texture_shadow_lod_textureoffsetTestCase.cpp",
60    "../core/Khrgles32internalformat_copy_tex_imageTestCase.cpp",
61    "../core/Khrgles32internalformat_renderbufferTestCase.cpp",
62    "../core/Khrgles32internalformat_texture2dTestCase.cpp",
63  ]
64
65  include_dirs = [ "../../../src" ]
66
67  deps = [ ":libkhrgles32func0002" ]
68
69  cflags = [ "-Wno-error" ]
70}
71