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("../../thermalmgr.gni") 15 16config("thermalsrv_private_config") { 17 include_dirs = [ "${thermal_service_zidl}/include" ] 18} 19 20config("thermalsrv_public_config") { 21 include_dirs = [ "native/include" ] 22} 23 24ohos_shared_library("thermalsrv_client") { 25 branch_protector_ret = "pac_ret" 26 27 sources = [ "${thermal_frameworks}/native/thermal_mgr_client.cpp" ] 28 29 configs = [ 30 "${utils_path}:utils_config", 31 ":thermalsrv_private_config", 32 "${utils_path}:coverage_flags", 33 ] 34 35 public_configs = [ ":thermalsrv_public_config" ] 36 37 deps = [ "${thermal_service_zidl}:thermalmgr_proxy" ] 38 39 external_deps = [ 40 "bundle_framework:appexecfwk_base", 41 "c_utils:utils", 42 "hilog:libhilog", 43 "ipc:ipc_core", 44 "samgr:samgr_proxy", 45 ] 46 subsystem_name = "powermgr" 47 innerapi_tags = [ "platformsdk" ] 48 part_name = "thermal_manager" 49} 50 51ohos_shared_library("thermalmgr_listener") { 52 sources = [ 53 "${thermal_frameworks}/native/thermal_level_callback_stub.cpp", 54 "${thermal_frameworks}/native/thermal_mgr_listener.cpp", 55 ] 56 57 configs = [ 58 "${utils_path}:utils_config", 59 ":thermalsrv_private_config", 60 "${utils_path}:coverage_flags", 61 ] 62 63 public_configs = [ ":thermalsrv_public_config" ] 64 65 deps = [ 66 "${thermal_inner_api}:thermalsrv_client", 67 "${thermal_service_zidl}:thermalmgr_proxy", 68 ] 69 70 external_deps = [ 71 "bundle_framework:appexecfwk_base", 72 "c_utils:utils", 73 "hilog:libhilog", 74 "ipc:ipc_core", 75 ] 76 77 subsystem_name = "powermgr" 78 part_name = "thermal_manager" 79} 80