1# Copyright (c) 2021 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("//base/powermgr/display_manager/displaymgr.gni") 15 16config("displaymgr_private_config") { 17 include_dirs = [ 18 "${displaymgr_service_zidl}/include", 19 "//base/hiviewdfx/hicollie/interfaces/native/innerkits/include/xcollie", 20 "//base/powermgr/power_manager/interfaces/innerkits/native/include", 21 ] 22} 23 24config("displaymgr_public_config") { 25 include_dirs = [ "native/include" ] 26} 27 28ohos_shared_library("displaymgr") { 29 sources = [ 30 "${displaymgr_framework_path}/native/display_power_mgr_client.cpp", 31 "${displaymgr_service_zidl}/src/display_power_callback_stub.cpp", 32 "${displaymgr_service_zidl}/src/display_power_mgr_proxy.cpp", 33 ] 34 35 configs = [ ":displaymgr_private_config" ] 36 37 public_configs = [ 38 "${displaymgr_utils_path}:utils_config", 39 ":displaymgr_public_config", 40 ] 41 42 external_deps = [ 43 "c_utils:utils", 44 "hicollie_native:libhicollie", 45 "hiviewdfx_hilog_native:libhilog", 46 "ipc:ipc_core", 47 "samgr:samgr_proxy", 48 ] 49 install_images = [ system_base_dir ] 50 relative_install_dir = "platformsdk" 51 52 part_name = "${displaymgr_part_name}" 53} 54