1# Copyright (c) 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("../../thermalmgr.gni") 15 16config("thermalmgr_ipc_private_config") { 17 include_dirs = [ "${thermal_inner_api}/native/include" ] 18} 19 20config("thermalmgr_ipc_public_config") { 21 include_dirs = [ "include" ] 22} 23 24deps_ex = [ 25 "bundle_framework:appexecfwk_base", 26 "hilog:libhilog", 27 "hicollie:libhicollie", 28 "ipc:ipc_core", 29 "c_utils:utils", 30] 31 32ohos_shared_library("thermalmgr_stub") { 33 sources = [ 34 "${thermal_frameworks}/native/thermal_srv_sensor_info.cpp", 35 "src/thermal_action_callback_stub.cpp", 36 "src/thermal_srv_stub.cpp", 37 "src/thermal_temp_callback_stub.cpp", 38 ] 39 40 configs = [ 41 "${utils_path}:utils_config", 42 ":thermalmgr_ipc_private_config", 43 "${utils_path}:coverage_flags", 44 ] 45 46 public_configs = [ ":thermalmgr_ipc_public_config" ] 47 48 external_deps = deps_ex 49 50 subsystem_name = "powermgr" 51 part_name = "thermal_manager" 52} 53 54ohos_shared_library("thermalmgr_proxy") { 55 branch_protector_ret = "pac_ret" 56 57 sources = [ 58 "${thermal_manager_path}/frameworks/native/thermal_srv_sensor_info.cpp", 59 "src/thermal_action_callback_proxy.cpp", 60 "src/thermal_level_callback_proxy.cpp", 61 "src/thermal_level_callback_stub.cpp", 62 "src/thermal_srv_proxy.cpp", 63 "src/thermal_temp_callback_proxy.cpp", 64 ] 65 66 configs = [ 67 "${utils_path}:utils_config", 68 ":thermalmgr_ipc_private_config", 69 "${utils_path}:coverage_flags", 70 ] 71 72 public_configs = [ ":thermalmgr_ipc_public_config" ] 73 74 external_deps = deps_ex 75 76 subsystem_name = "powermgr" 77 innerapi_tags = [ "platformsdk" ] 78 part_name = "thermal_manager" 79} 80