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("libkhrgles3func0003") {
29  subsystem_name = "graphic"
30  part_name = "graphic_2d"
31  sources = common_src
32  sources += [ "../Khrgles3BaseFunc.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("ActsKhrgles3TestSuite0003") {
44  subsystem_name = "graphic"
45  part_name = "graphic_2d"
46  sources = [
47    "../ActsKhrgles30003TestSuite.cpp",
48    "../shaders/Khrgles3instance_array_basic_type_packedTestCase.cpp",
49    "../shaders/Khrgles3instance_array_basic_type_sharedTestCase.cpp",
50    "../shaders/Khrgles3instance_array_basic_type_std140TestCase.cpp",
51    "../shaders/Khrgles3multi_basic_types_per_block_bufferTestCase.cpp",
52    "../shaders/Khrgles3multi_basic_types_single_bufferTestCase.cpp",
53    "../shaders/Khrgles3multi_nested_struct_per_block_bufferTestCase.cpp",
54    "../shaders/Khrgles3multi_nested_struct_single_bufferTestCase.cpp",
55    "../shaders/Khrgles3random_all_per_block_buffersTestCase.cpp",
56    "../shaders/Khrgles3random_all_shared_bufferTestCase.cpp",
57    "../shaders/Khrgles3random_basic_arraysTestCase.cpp",
58    "../shaders/Khrgles3random_basic_instance_arraysTestCase.cpp",
59    "../shaders/Khrgles3random_basic_typesTestCase.cpp",
60    "../shaders/Khrgles3random_nested_structsTestCase.cpp",
61    "../shaders/Khrgles3random_nested_structs_arraysTestCase.cpp",
62    "../shaders/Khrgles3random_nested_structs_arrays_instance_arraysTestCase.cpp",
63    "../shaders/Khrgles3random_nested_structs_instance_arraysTestCase.cpp",
64    "../shaders/Khrgles3random_scalar_typesTestCase.cpp",
65    "../shaders/Khrgles3random_vector_typesTestCase.cpp",
66    "../shaders/Khrgles3shaders_aggressive_optimizationsTestCase.cpp",
67    "../shaders/Khrgles3shaders_glsl_constructorsTestCase.cpp",
68    "../shaders/Khrgles3shaders_negativeTestCase.cpp",
69    "../shaders/Khrgles3shaders_shader_integer_mixTestCase.cpp",
70    "../shaders/Khrgles3uniform_block_commonTestCase.cpp",
71    "../texture_filter_anisotropic/Khrgles3KHR-GLES3_texture_filter_anisotropicTestCase.cpp",
72    "../texture_repeat_mode/Khrgles3KHR-GLES3_texture_repeat_modeTestCase.cpp",
73  ]
74
75  include_dirs = [ "../../../src" ]
76
77  deps = [ ":libkhrgles3func0003" ]
78
79  cflags = [ "-Wno-error" ]
80}
81