1# Copyright (c) 2023 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/ohos.gni") 15import("../windowmanager_aafwk.gni") 16 17config("libdm_private_config") { 18 include_dirs = [ 19 "include", 20 "../dm/include", 21 ] 22} 23 24config("libdm_public_config") { 25 include_dirs = [ 26 "../interfaces/innerkits/dm", 27 "../interfaces/innerkits/dm_lite", 28 "../utils/include", 29 "../window_scene/session_manager/include", 30 "../wmserver/include", 31 ] 32} 33 34## Build libdm_lite.so 35ohos_shared_library("libdm_lite") { 36 branch_protector_ret = "pac_ret" 37 sanitize = { 38 cfi = true 39 cfi_cross_dso = true 40 debug = false 41 } 42 sources = [ 43 "../dm/src/zidl/display_manager_agent_stub.cpp", 44 "../window_scene/session_manager/src/zidl/screen_session_manager_lite_proxy.cpp", 45 "../wmserver/src/zidl/mock_session_manager_service_proxy.cpp", 46 "src/display_lite.cpp", 47 "src/display_manager_adapter_lite.cpp", 48 "src/display_manager_lite.cpp", 49 ] 50 51 configs = [ 52 ":libdm_private_config", 53 "../resources/config/build:coverage_flags", 54 ] 55 56 public_configs = [ ":libdm_public_config" ] 57 58 deps = [ "${window_base_path}/utils:libwmutil_base" ] 59 60 external_deps = [ 61 "c_utils:utils", 62 "hilog:libhilog", 63 "ipc:ipc_single", 64 "samgr:samgr_proxy", 65 ] 66 67 innerapi_tags = [ "platformsdk" ] 68 part_name = "window_manager" 69 subsystem_name = "window" 70} 71 72group("test") { 73 testonly = true 74 if (scene_board_enabled) { 75 deps = [ "test:test" ] 76 } else { 77 deps = [] 78 } 79} 80