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
16defines = []
17if (!defined(global_parts_info) ||
18    defined(global_parts_info.hiviewdfx_hisysevent)) {
19  has_hiviewdfx_hisysevent_part = true
20  defines += [ "HAS_HIVIEWDFX_HISYSEVENT_PART" ]
21} else {
22  has_hiviewdfx_hisysevent_part = false
23}
24
25if (!defined(global_parts_info) ||
26    defined(global_parts_info.communication_netmanager_base)) {
27  has_thermal_airplane_manager_part = true
28} else {
29  has_thermal_airplane_manager_part = false
30}
31
32if (!defined(global_parts_info) ||
33    defined(global_parts_info.multimedia_audio_framework)) {
34  has_thermal_audio_framework_part = false
35} else {
36  has_thermal_audio_framework_part = false
37}
38
39if (!defined(global_parts_info) ||
40    defined(global_parts_info.powermgr_display_manager)) {
41  has_thermal_display_manager_part = true
42  defines += [ "HAS_THERMAL_DISPLAY_MANAGER_PART" ]
43} else {
44  has_thermal_display_manager_part = false
45}
46
47if (!defined(global_parts_info) ||
48    defined(global_parts_info.customization_config_policy)) {
49  has_thermal_config_policy_part = true
50} else {
51  has_thermal_config_policy_part = false
52}
53
54ability_runtime_path = "//foundation/ability/ability_runtime"
55ability_runtime_inner_api_path = "${ability_runtime_path}/interfaces/inner_api"
56ability_runtime_services_path = "${ability_runtime_path}/services"
57batterystats_utils_path = "//base/powermgr/battery_statistics/utils"
58netmanager_base_path = "//foundation/communication/netmanager_base"
59netmanager_base_inner_api_path = "${netmanager_base_path}/interfaces/innerkits"
60netmanager_base_services_path = "${netmanager_base_path}/services"
61thermalmgr_native_part_name = "thermal_manager"
62thermal_manager_path = "//base/powermgr/thermal_manager"
63thermal_inner_api = "${thermal_manager_path}/interfaces/inner_api"
64thermal_service_zidl = "${thermal_manager_path}/services/zidl"
65thermal_frameworks = "${thermal_manager_path}/frameworks"
66utils_path = "${thermal_manager_path}/utils"
67