1# Copyright (c) 2021-2022 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") 15import("//build/test.gni") 16 17config("utils_config") { 18 include_dirs = [ 19 "native/include", 20 "//commonlibrary/c_utils/base/include", 21 ] 22} 23 24ohos_executable("power-shell") { 25 include_dirs = [ 26 "${powermgr_innerkits}/native/include", 27 "${powermgr_utils_path}/shell/include", 28 "${ability_runtime_services_path}/common/include", 29 "${ability_runtime_path}/tools/aa/include", 30 ] 31 32 sources = [ 33 "shell/src/main.cpp", 34 "shell/src/power_shell_command.cpp", 35 ] 36 37 deps = [ 38 "${ability_runtime_path}/tools/aa:tools_aa_source_set", 39 "${powermgr_innerkits}:powermgr_client", 40 ] 41 42 configs = [ 43 "${ability_runtime_path}/tools/aa:ability_command_config", 44 "${ability_runtime_services_path}/common:common_config", 45 ] 46 47 external_deps = [ 48 "c_utils:utils", 49 "hiviewdfx_hilog_native:libhilog", 50 "ipc:ipc_core", 51 ] 52 53 if (has_display_manager_part) { 54 external_deps += [ "display_manager:displaymgr" ] 55 } 56 57 install_enable = true 58 part_name = "${powermgr_part_name}" 59} 60