• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022 Huawei Device 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("//build/test.gni")
15
16module_out_path = "graphic_2d/graphic_2d/render_service_client"
17
18group("systemtest") {
19  testonly = true
20
21  deps = [
22    ":RSInterfacesSystemTest",
23    ":RSInterfacesVirtualScreenTest",
24  ]
25}
26
27## Build RSInterfacesVirtualScreenTest
28ohos_systemtest("RSInterfacesVirtualScreenTest") {
29  module_out_path = module_out_path
30  sources = [ "rs_interfaces_virtual_screen_test.cpp" ]
31  deps = [ ":rs_client_test_common" ]
32  external_deps = [
33    "c_utils:utils",
34    "eventhandler:libeventhandler",
35    "hilog:libhilog",
36  ]
37}
38
39## Build RSInterfacesSystemTest
40ohos_systemtest("RSInterfacesSystemTest") {
41  module_out_path = module_out_path
42  sources = [ "rs_interfaces_system_test.cpp" ]
43  deps = [ ":rs_client_test_common" ]
44  external_deps = [
45    "c_utils:utils",
46    "eventhandler:libeventhandler",
47    "hilog:libhilog",
48  ]
49}
50
51## Build rs_client_test_common.a {{{
52config("rs_client_test_common_public_config") {
53  include_dirs = [
54    "//foundation/graphic/graphic_2d/rosen/modules/render_service_client/core",
55  ]
56
57  cflags = [
58    "-Wall",
59    "-Werror",
60    "-g3",
61    "-Dprivate=public",
62    "-Dprotected=public",
63  ]
64}
65
66ohos_static_library("rs_client_test_common") {
67  visibility = [ ":*" ]
68  testonly = true
69
70  sources = [ "rs_interfaces_test_utils.cpp" ]
71
72  public_configs = [ ":rs_client_test_common_public_config" ]
73
74  public_deps = [
75    "//foundation/graphic/graphic_2d/rosen/modules/render_service_base:librender_service_base",
76    "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client",
77  ]
78
79  external_deps = [
80    "c_utils:utils",
81    "eventhandler:libeventhandler",
82    "hilog:libhilog",
83    "image_framework:image_native",
84  ]
85
86  public_external_deps = [
87    "googletest:gtest_main",
88    "samgr:samgr_proxy",
89    "window_manager:libdm",
90    "window_manager:libdms",
91    "window_manager:libwm",
92    "window_manager:libwmutil",
93    "window_manager:libwmutil_base",
94  ]
95
96  subsystem_name = "graphic"
97  part_name = "graphic_2d"
98}
99## Build rs_client_test_common.a }}}
100