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. 13import("//base/powermgr/thermal_manager/thermalmgr.gni") 14 15config("utils_config") { 16 include_dirs = [ 17 "native/include", 18 "//utils/native/base/include", 19 ] 20} 21 22ohos_source_set("thermal_utils") { 23 sources = [ 24 "native/src//file_operation.cpp", 25 "native/src/string_operation.cpp", 26 ] 27 28 public_configs = [ ":utils_config" ] 29 30 deps = [ "//utils/native/base:utils" ] 31 32 external_deps = [ 33 "hiviewdfx_hilog_native:libhilog", 34 "startup_l2:syspara", 35 ] 36 37 part_name = "thermal_manager" 38} 39 40ohos_executable("thermal-shell") { 41 include_dirs = [ 42 "shell/include", 43 "//foundation/aafwk/standard/services/common/include", 44 "//foundation/aafwk/standard/tools/aa/include", 45 "//utils/native/base/include", 46 ] 47 48 sources = [ 49 "shell/src/main.cpp", 50 "shell/src/thermal_shell_command.cpp", 51 ] 52 53 cflags = [] 54 if (target_cpu == "arm") { 55 cflags += [ "-DBINDER_IPC_32BIT" ] 56 } 57 58 deps = [ 59 "${thermal_manager_path}/interfaces/innerkits:thermalsrv_client", 60 "//foundation/aafwk/standard/tools/aa:tools_aa_source_set", 61 "//utils/native/base:utils", 62 ] 63 64 configs = [ 65 "//foundation/aafwk/standard/tools/aa:ability_command_config", 66 "//foundation/aafwk/standard/services/common:common_config", 67 ] 68 69 external_deps = [ 70 "ability_base:base", 71 "ability_base:want", 72 "hiviewdfx_hilog_native:libhilog", 73 "ipc:ipc_core", 74 "samgr_standard:samgr_proxy", 75 ] 76 77 install_enable = true 78 part_name = "thermal_manager" 79} 80