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 = [ "native/include" ] 22} 23 24ohos_shared_library("displaymgr") { 25 branch_protector_ret = "pac_ret" 26 27 sources = [ 28 "${displaymgr_framework_path}/native/display_power_mgr_client.cpp", 29 "${displaymgr_service_zidl}/src/display_brightness_callback_stub.cpp", 30 "${displaymgr_service_zidl}/src/display_power_callback_stub.cpp", 31 "${displaymgr_service_zidl}/src/display_power_mgr_proxy.cpp", 32 ] 33 34 configs = [ 35 ":displaymgr_private_config", 36 "${displaymgr_utils_path}:coverage_flags", 37 ] 38 39 public_configs = [ 40 "${displaymgr_utils_path}:utils_config", 41 ":displaymgr_public_config", 42 ] 43 44 external_deps = [ 45 "c_utils:utils", 46 "hicollie:libhicollie", 47 "hilog:libhilog", 48 "ipc:ipc_core", 49 "power_manager:powermgr_client", 50 "samgr:samgr_proxy", 51 ] 52 install_images = [ system_base_dir ] 53 relative_install_dir = "platformsdk" 54 55 subsystem_name = "powermgr" 56 innerapi_tags = [ "platformsdk" ] 57 part_name = "${displaymgr_part_name}" 58} 59