1595d5899Sopenharmony_ci# Copyright (c) 2021-2023 Huawei Device Co., Ltd. 2595d5899Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3595d5899Sopenharmony_ci# you may not use this file except in compliance with the License. 4595d5899Sopenharmony_ci# You may obtain a copy of the License at 5595d5899Sopenharmony_ci# 6595d5899Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7595d5899Sopenharmony_ci# 8595d5899Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9595d5899Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10595d5899Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11595d5899Sopenharmony_ci# See the License for the specific language governing permissions and 12595d5899Sopenharmony_ci# limitations under the License. 13595d5899Sopenharmony_ci 14595d5899Sopenharmony_ciimport("../../../displaymgr.gni") 15595d5899Sopenharmony_ci 16595d5899Sopenharmony_ciconfig("displaymgr_private_config") { 17595d5899Sopenharmony_ci include_dirs = [ "${displaymgr_service_zidl}/include" ] 18595d5899Sopenharmony_ci} 19595d5899Sopenharmony_ci 20595d5899Sopenharmony_ciconfig("displaymgr_public_config") { 21595d5899Sopenharmony_ci include_dirs = [ 22595d5899Sopenharmony_ci "native/include", 23595d5899Sopenharmony_ci "${displaymgr_utils_path}/native/include", 24595d5899Sopenharmony_ci ] 25595d5899Sopenharmony_ci} 26595d5899Sopenharmony_ci 27595d5899Sopenharmony_ciohos_shared_library("displaymgr") { 28595d5899Sopenharmony_ci branch_protector_ret = "pac_ret" 29595d5899Sopenharmony_ci 30595d5899Sopenharmony_ci sources = [ 31595d5899Sopenharmony_ci "${displaymgr_framework_path}/native/display_power_mgr_client.cpp", 32595d5899Sopenharmony_ci "${displaymgr_service_zidl}/src/display_brightness_callback_stub.cpp", 33595d5899Sopenharmony_ci "${displaymgr_service_zidl}/src/display_power_callback_stub.cpp", 34595d5899Sopenharmony_ci "${displaymgr_service_zidl}/src/display_power_mgr_proxy.cpp", 35595d5899Sopenharmony_ci ] 36595d5899Sopenharmony_ci 37595d5899Sopenharmony_ci configs = [ 38595d5899Sopenharmony_ci ":displaymgr_private_config", 39595d5899Sopenharmony_ci "${displaymgr_utils_path}:coverage_flags", 40595d5899Sopenharmony_ci ] 41595d5899Sopenharmony_ci 42595d5899Sopenharmony_ci public_configs = [ ":displaymgr_public_config" ] 43595d5899Sopenharmony_ci 44595d5899Sopenharmony_ci external_deps = [ 45595d5899Sopenharmony_ci "c_utils:utils", 46595d5899Sopenharmony_ci "hicollie:libhicollie", 47595d5899Sopenharmony_ci "hilog:libhilog", 48595d5899Sopenharmony_ci "ipc:ipc_core", 49595d5899Sopenharmony_ci "power_manager:powermgr_client", 50595d5899Sopenharmony_ci "samgr:samgr_proxy", 51595d5899Sopenharmony_ci ] 52595d5899Sopenharmony_ci install_images = [ system_base_dir ] 53595d5899Sopenharmony_ci relative_install_dir = "platformsdk" 54595d5899Sopenharmony_ci 55595d5899Sopenharmony_ci subsystem_name = "powermgr" 56595d5899Sopenharmony_ci innerapi_tags = [ "platformsdk" ] 57595d5899Sopenharmony_ci part_name = "${displaymgr_part_name}" 58595d5899Sopenharmony_ci} 59