1# Copyright (c) 2021-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("../../../displaymgr.gni") 15 16config("displaymgr_private_config") { 17 include_dirs = [ "${displaymgr_service_zidl}/include" ] 18} 19 20config("displaymgr_public_config") { 21 include_dirs = [ 22 "native/include", 23 "${displaymgr_utils_path}/native/include", 24 ] 25} 26 27ohos_shared_library("displaymgr") { 28 branch_protector_ret = "pac_ret" 29 sanitize = { 30 cfi = true 31 cfi_cross_dso = true 32 debug = false 33 } 34 sources = [ 35 "${displaymgr_framework_path}/native/display_power_mgr_client.cpp", 36 "${displaymgr_service_zidl}/src/display_brightness_callback_stub.cpp", 37 "${displaymgr_service_zidl}/src/display_power_callback_stub.cpp", 38 ] 39 40 configs = [ 41 ":displaymgr_private_config", 42 "${displaymgr_utils_path}:coverage_flags", 43 "${displaymgr_root_path}/service:displaymgr_public_config", 44 ] 45 46 public_configs = [ 47 ":displaymgr_public_config", 48 "${displaymgr_root_path}/service:displaymgr_public_config", 49 ] 50 51 deps = [ "${displaymgr_root_path}/service:displaymgr_proxy" ] 52 53 external_deps = [ 54 "c_utils:utils", 55 "hicollie:libhicollie", 56 "hilog:libhilog", 57 "ipc:ipc_core", 58 "power_manager:powermgr_client", 59 "samgr:samgr_proxy", 60 ] 61 install_images = [ system_base_dir ] 62 relative_install_dir = "platformsdk" 63 64 subsystem_name = "powermgr" 65 innerapi_tags = [ "platformsdk" ] 66 part_name = "${displaymgr_part_name}" 67} 68