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
16if (!defined(global_parts_info) ||
17    defined(global_parts_info.multimedia_audio_framework)) {
18  has_thermal_audio_framework_part = false
19} else {
20  has_thermal_audio_framework_part = false
21}
22
23if (!defined(global_parts_info) ||
24    defined(global_parts_info.powermgr_display_manager)) {
25  has_thermal_display_manager_part = true
26  cflags_cc = [ "-DHAS_THERMAL_DISPLAY_MANAGER_PART" ]
27} else {
28  has_thermal_display_manager_part = false
29}
30
31ability_runtime_path = "//foundation/ability/ability_runtime"
32ability_runtime_inner_api_path = "${ability_runtime_path}/interfaces/inner_api"
33ability_runtime_services_path = "${ability_runtime_path}/services"
34batterystats_utils_path = "//base/powermgr/battery_statistics/utils"
35thermalmgr_native_part_name = "thermal_manager"
36thermal_manager_path = "//base/powermgr/thermal_manager"
37thermal_inner_api = "${thermal_manager_path}/interfaces/inner_api"
38thermal_service_zidl = "${thermal_manager_path}/services/zidl"
39thermal_frameworks = "${thermal_manager_path}/frameworks"
40utils_path = "${thermal_manager_path}/utils"
41