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 = [ 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 "hilog:libhilog", 35 ] 36} 37 38## Build RSInterfacesSystemTest 39ohos_systemtest("RSInterfacesSystemTest") { 40 module_out_path = module_out_path 41 sources = [ "rs_interfaces_system_test.cpp" ] 42 deps = [ ":rs_client_test_common" ] 43 external_deps = [ 44 "c_utils:utils", 45 "hilog:libhilog", 46 ] 47} 48 49## Build rs_client_test_common.a {{{ 50config("rs_client_test_common_public_config") { 51 include_dirs = [ 52 "//foundation/graphic/graphic_2d/rosen/modules/render_service_client/core", 53 54 # windowmanager 55 "//foundation/window/window_manager/dm/include", 56 "//foundation/window/window_manager/dmserver/include", 57 "//foundation/window/window_manager/interfaces/innerkits/dm", 58 "//foundation/window/window_manager/interfaces/innerkits/wm", 59 "//foundation/window/window_manager/utils/include", 60 ] 61 62 cflags = [ 63 "-Wall", 64 "-Werror", 65 "-g3", 66 "-Dprivate=public", 67 "-Dprotected=public", 68 ] 69} 70 71ohos_static_library("rs_client_test_common") { 72 visibility = [ ":*" ] 73 testonly = true 74 75 sources = [ "rs_interfaces_test_utils.cpp" ] 76 77 public_configs = [ ":rs_client_test_common_public_config" ] 78 79 public_deps = [ 80 "//commonlibrary/c_utils/base:utils", 81 "//foundation/graphic/graphic_2d/rosen/modules/render_service_base:librender_service_base", 82 "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client", 83 "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy", 84 "//foundation/window/window_manager/dm:libdm", 85 "//foundation/window/window_manager/dmserver:libdms", 86 "//foundation/window/window_manager/utils:libwmutil", 87 "//foundation/window/window_manager/wm:libwm", 88 "//foundation/window/window_manager/wmserver:libwms", 89 "//third_party/googletest:gtest_main", 90 ] 91 92 external_deps = [ 93 "c_utils:utils", 94 "hilog:libhilog", 95 "image_framework:image_native", 96 ] 97 98 public_external_deps = [ "window_manager:libwmutil_base" ] 99 100 subsystem_name = "graphic" 101 part_name = "graphic_2d" 102} 103## Build rs_client_test_common.a }}} 104