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. 13import("../../thermalmgr.gni") 14 15config("module_private_config") { 16 visibility = [ ":*" ] 17 include_dirs = [ 18 "include", 19 "${thermal_service_zidl}/include", 20 "${thermal_inner_api}/native/include", 21 ] 22} 23 24ohos_shared_library("mock_thermalsrv_client") { 25 sanitize = { 26 cfi = true 27 cfi_cross_dso = true 28 debug = false 29 } 30 sources = [ 31 "${thermal_frameworks}/native/thermal_srv_sensor_info.cpp", 32 "src/mock_thermal_mgr_client.cpp", 33 ] 34 35 configs = [ 36 "${utils_path}:utils_config", 37 "${utils_path}:coverage_flags", 38 ":module_private_config", 39 ] 40 41 deps = [ "${thermal_service_zidl}:thermalmgr_proxy" ] 42 43 external_deps = [ 44 "ability_runtime:app_manager", 45 "bundle_framework:appexecfwk_base", 46 "c_utils:utils", 47 "hilog:libhilog", 48 "ipc:ipc_core", 49 "samgr:samgr_proxy", 50 ] 51 subsystem_name = "powermgr" 52 part_name = "thermal_manager" 53} 54