137a09cd7Sopenharmony_ci# Copyright (c) 2022 Huawei Device Co., Ltd. 237a09cd7Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 337a09cd7Sopenharmony_ci# you may not use this file except in compliance with the License. 437a09cd7Sopenharmony_ci# You may obtain a copy of the License at 537a09cd7Sopenharmony_ci# 637a09cd7Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 737a09cd7Sopenharmony_ci# 837a09cd7Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 937a09cd7Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 1037a09cd7Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1137a09cd7Sopenharmony_ci# See the License for the specific language governing permissions and 1237a09cd7Sopenharmony_ci# limitations under the License. 1337a09cd7Sopenharmony_ciimport("../../thermalmgr.gni") 1437a09cd7Sopenharmony_ci 1537a09cd7Sopenharmony_ciconfig("module_private_config") { 1637a09cd7Sopenharmony_ci visibility = [ ":*" ] 1737a09cd7Sopenharmony_ci include_dirs = [ 1837a09cd7Sopenharmony_ci "include", 1937a09cd7Sopenharmony_ci "${thermal_service_zidl}/include", 2037a09cd7Sopenharmony_ci "${thermal_inner_api}/native/include", 2137a09cd7Sopenharmony_ci ] 2237a09cd7Sopenharmony_ci} 2337a09cd7Sopenharmony_ci 2437a09cd7Sopenharmony_ciohos_shared_library("mock_thermalsrv_client") { 2537a09cd7Sopenharmony_ci sources = [ "src/mock_thermal_mgr_client.cpp" ] 2637a09cd7Sopenharmony_ci 2737a09cd7Sopenharmony_ci configs = [ 2837a09cd7Sopenharmony_ci "${utils_path}:utils_config", 2937a09cd7Sopenharmony_ci "${utils_path}:coverage_flags", 3037a09cd7Sopenharmony_ci ":module_private_config", 3137a09cd7Sopenharmony_ci ] 3237a09cd7Sopenharmony_ci 3337a09cd7Sopenharmony_ci deps = [ "${thermal_service_zidl}:thermalmgr_proxy" ] 3437a09cd7Sopenharmony_ci 3537a09cd7Sopenharmony_ci external_deps = [ 3637a09cd7Sopenharmony_ci "ability_runtime:app_manager", 3737a09cd7Sopenharmony_ci "bundle_framework:appexecfwk_base", 3837a09cd7Sopenharmony_ci "c_utils:utils", 3937a09cd7Sopenharmony_ci "hilog:libhilog", 4037a09cd7Sopenharmony_ci "ipc:ipc_core", 4137a09cd7Sopenharmony_ci "samgr:samgr_proxy", 4237a09cd7Sopenharmony_ci ] 4337a09cd7Sopenharmony_ci subsystem_name = "powermgr" 4437a09cd7Sopenharmony_ci part_name = "thermal_manager" 4537a09cd7Sopenharmony_ci} 46