• 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/render_service_client"
17
18group("systemtest") {
19  testonly = true
20
21  deps = [ ":RSInterfacesSystemTest" ]
22}
23
24## Build RSInterfacesSystemTest
25ohos_systemtest("RSInterfacesSystemTest") {
26  module_out_path = module_out_path
27  sources = [ "rs_interfaces_system_test.cpp" ]
28  deps = [ ":rs_client_test_common" ]
29  external_deps = [
30    "c_utils:utils",
31    "hilog:libhilog",
32  ]
33}
34
35## Build rs_client_test_common.a {{{
36config("rs_client_test_common_public_config") {
37  include_dirs = [
38    "//foundation/graphic/graphic_2d/frameworks/surface/include",
39    "//foundation/graphic/graphic_2d/rosen/modules/render_service_client/core",
40
41    # windowmanager
42    "//foundation/window/window_manager/dm/include",
43    "//foundation/window/window_manager/dmserver/include",
44    "//foundation/window/window_manager/interfaces/innerkits/dm",
45    "//foundation/window/window_manager/interfaces/innerkits/wm",
46    "//foundation/window/window_manager/utils/include",
47  ]
48
49  cflags = [
50    "-Wall",
51    "-Werror",
52    "-g3",
53    "-Dprivate=public",
54    "-Dprotected=public",
55  ]
56}
57
58ohos_static_library("rs_client_test_common") {
59  visibility = [ ":*" ]
60  testonly = true
61
62  sources = [ "rs_interfaces_test_utils.cpp" ]
63
64  public_configs = [ ":rs_client_test_common_public_config" ]
65
66  public_deps = [
67    "//commonlibrary/c_utils/base:utils",
68    "//foundation/graphic/graphic_2d:libsurface",
69    "//foundation/graphic/graphic_2d/rosen/modules/render_service_base:librender_service_base",
70    "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client",
71    "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
72    "//foundation/window/window_manager/dm:libdm",
73    "//foundation/window/window_manager/dmserver:libdms",
74    "//foundation/window/window_manager/utils:libwmutil",
75    "//foundation/window/window_manager/wm:libwm",
76    "//foundation/window/window_manager/wmserver:libwms",
77    "//third_party/googletest:gtest_main",
78  ]
79
80  external_deps = [
81    "c_utils:utils",
82    "hilog:libhilog",
83    "image_framework:image_native",
84  ]
85
86  subsystem_name = "graphic"
87  part_name = "graphic_2d"
88}
89## Build rs_client_test_common.a }}}
90