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("//build/ohos.gni") 15 16declare_args() { 17 thermal_manager_audio_framework_enable = false 18} 19if (!defined(global_parts_info) || 20 defined(global_parts_info.communication_netmanager_base)) { 21 has_thermal_airplane_manager_part = true 22} else { 23 has_thermal_airplane_manager_part = false 24} 25 26if (!defined(global_parts_info) || 27 defined(global_parts_info.multimedia_audio_framework)) { 28 has_thermal_audio_framework_part = true 29} else { 30 has_thermal_audio_framework_part = false 31} 32 33if (!defined(global_parts_info) || 34 defined(global_parts_info.powermgr_display_manager)) { 35 has_thermal_display_manager_part = true 36 cflags_cc = [ "-DHAS_THERMAL_DISPLAY_MANAGER_PART" ] 37} else { 38 has_thermal_display_manager_part = false 39} 40 41ability_runtime_path = "//foundation/ability/ability_runtime" 42ability_runtime_inner_api_path = "${ability_runtime_path}/interfaces/inner_api" 43ability_runtime_services_path = "${ability_runtime_path}/services" 44batterystats_utils_path = "//base/powermgr/battery_statistics/utils" 45netmanager_base_path = "//foundation/communication/netmanager_base" 46netmanager_base_inner_api_path = "${netmanager_base_path}/interfaces/innerkits" 47netmanager_base_services_path = "${netmanager_base_path}/services" 48thermalmgr_native_part_name = "thermal_manager" 49thermal_manager_path = "//base/powermgr/thermal_manager" 50thermal_inner_api = "${thermal_manager_path}/interfaces/inner_api" 51thermal_service_zidl = "${thermal_manager_path}/services/zidl" 52thermal_frameworks = "${thermal_manager_path}/frameworks" 53utils_path = "${thermal_manager_path}/utils" 54taihe_generated_file_path = "${root_out_dir}/taihe/out/powermgr/thermal_manager"