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/power_manager/powermgr.gni") 15 16config("powermgr_private_config") { 17 include_dirs = [ 18 "${powermgr_service_path}/zidl/include", 19 "//utils/system/safwk/native/include", 20 ] 21} 22 23config("powermgr_public_config") { 24 include_dirs = [ "native/include" ] 25} 26 27ohos_shared_library("powermgr_client") { 28 sources = [ 29 "${powermgr_framework_path}/native/power_mgr_client.cpp", 30 "${powermgr_framework_path}/native/running_lock.cpp", 31 "${powermgr_framework_path}/native/running_lock_info.cpp", 32 "${powermgr_framework_path}/native/running_lock_token_stub.cpp", 33 "${powermgr_service_path}/zidl/src/power_mgr_proxy.cpp", 34 "${powermgr_service_path}/zidl/src/power_mode_callback_proxy.cpp", 35 "${powermgr_service_path}/zidl/src/power_shutdown_callback_proxy.cpp", 36 "${powermgr_service_path}/zidl/src/power_state_callback_proxy.cpp", 37 ] 38 39 configs = [ 40 "${powermgr_utils_path}:utils_config", 41 ":powermgr_private_config", 42 ] 43 44 public_configs = [ ":powermgr_public_config" ] 45 46 deps = [ 47 "${powermgr_utils_path}:powermgr_utils", 48 "//utils/native/base:utils", 49 ] 50 51 external_deps = [ 52 "eventhandler:libeventhandler", 53 "hiviewdfx_hilog_native:libhilog", 54 "ipc:ipc_core", 55 "safwk:system_ability_fwk", 56 "samgr_standard:samgr_proxy", 57 ] 58 59 part_name = "${powermgr_native_part_name}" 60} 61