1020a203aSopenharmony_ci# Copyright (c) 2021-2023 Huawei Device Co., Ltd.
2020a203aSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3020a203aSopenharmony_ci# you may not use this file except in compliance with the License.
4020a203aSopenharmony_ci# You may obtain a copy of the License at
5020a203aSopenharmony_ci#
6020a203aSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7020a203aSopenharmony_ci#
8020a203aSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9020a203aSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10020a203aSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11020a203aSopenharmony_ci# See the License for the specific language governing permissions and
12020a203aSopenharmony_ci# limitations under the License.
13020a203aSopenharmony_ci# build type definitions
14020a203aSopenharmony_ciis_phone = true
15020a203aSopenharmony_ciis_tv = false
16020a203aSopenharmony_ciis_watch = false
17020a203aSopenharmony_ci
18020a203aSopenharmony_ci# hiview path definitions
19020a203aSopenharmony_cihiview_root = "//base/hiviewdfx/hiview"
20020a203aSopenharmony_cihiview_adapter = "//base/hiviewdfx/hiview/adapter"
21020a203aSopenharmony_cihiview_base = "//base/hiviewdfx/hiview/base"
22020a203aSopenharmony_cihiview_core = "//base/hiviewdfx/hiview/core"
23020a203aSopenharmony_cihiview_plugin = "//base/hiviewdfx/hiview/plugins"
24020a203aSopenharmony_cihiview_service = "//base/hiviewdfx/hiview/service"
25020a203aSopenharmony_cihiview_framework = "//base/hiviewdfx/hiview/framework"
26020a203aSopenharmony_cihiview_interfaces = "//base/hiviewdfx/hiview/interfaces"
27020a203aSopenharmony_cihiview_test = "//base/hiviewdfx/hiview/test"
28020a203aSopenharmony_ci
29020a203aSopenharmony_ci# hiview plugin path definitions
30020a203aSopenharmony_cihiview_faultlogger = "//base/hiviewdfx/hiview/plugins/faultlogger"
31020a203aSopenharmony_cihiview_eventlogger = "//base/hiviewdfx/hiview/plugins/eventlogger"
32020a203aSopenharmony_ci
33020a203aSopenharmony_ci# hiview module
34020a203aSopenharmony_cihiview_module = "hiview/hiview"
35020a203aSopenharmony_ci
36020a203aSopenharmony_cideclare_args() {
37020a203aSopenharmony_ci  device_usage_statistics_enable = true
38020a203aSopenharmony_ci  if (defined(global_parts_info) &&
39020a203aSopenharmony_ci      !defined(global_parts_info.resourceschedule_device_usage_statistics)) {
40020a203aSopenharmony_ci    device_usage_statistics_enable = false
41020a203aSopenharmony_ci  }
42020a203aSopenharmony_ci
43020a203aSopenharmony_ci  battery_statistics_enable = true
44020a203aSopenharmony_ci  if (defined(global_parts_info) &&
45020a203aSopenharmony_ci      !defined(global_parts_info.powermgr_battery_statistics)) {
46020a203aSopenharmony_ci    battery_statistics_enable = false
47020a203aSopenharmony_ci  }
48020a203aSopenharmony_ci
49020a203aSopenharmony_ci  power_manager_enable = true
50020a203aSopenharmony_ci  if (defined(global_parts_info) &&
51020a203aSopenharmony_ci      !defined(global_parts_info.powermgr_power_manager)) {
52020a203aSopenharmony_ci    power_manager_enable = false
53020a203aSopenharmony_ci  }
54020a203aSopenharmony_ci
55020a203aSopenharmony_ci  thermal_manager_enable = true
56020a203aSopenharmony_ci  if (defined(global_parts_info) &&
57020a203aSopenharmony_ci      !defined(global_parts_info.powermgr_thermal_manager)) {
58020a203aSopenharmony_ci    thermal_manager_enable = false
59020a203aSopenharmony_ci  }
60020a203aSopenharmony_ci
61020a203aSopenharmony_ci  enable_hiview_usage_event_report_build = true
62020a203aSopenharmony_ci
63020a203aSopenharmony_ci  has_hiperf = true
64020a203aSopenharmony_ci  if (defined(global_parts_info) &&
65020a203aSopenharmony_ci      !defined(global_parts_info.developtools_hiperf)) {
66020a203aSopenharmony_ci    has_hiperf = false
67020a203aSopenharmony_ci  }
68020a203aSopenharmony_ci  has_hiprofiler = true
69020a203aSopenharmony_ci  if (defined(global_parts_info) &&
70020a203aSopenharmony_ci      !defined(global_parts_info.developtools_hiprofiler)) {
71020a203aSopenharmony_ci    has_hiprofiler = false
72020a203aSopenharmony_ci  }
73020a203aSopenharmony_ci
74020a203aSopenharmony_ci  is_wifi_enable = true
75020a203aSopenharmony_ci  if (defined(global_parts_info) &&
76020a203aSopenharmony_ci      !defined(global_parts_info.communication_wifi)) {
77020a203aSopenharmony_ci    is_wifi_enable = false
78020a203aSopenharmony_ci  }
79020a203aSopenharmony_ci
80020a203aSopenharmony_ci  window_manager_enable = true
81020a203aSopenharmony_ci  if (defined(global_parts_info) &&
82020a203aSopenharmony_ci      !defined(global_parts_info.window_window_manager)) {
83020a203aSopenharmony_ci    window_manager_enable = false
84020a203aSopenharmony_ci  }
85020a203aSopenharmony_ci
86020a203aSopenharmony_ci  hiview_enable_leak_detector = false
87020a203aSopenharmony_ci
88020a203aSopenharmony_ci  hiview_unified_collector_PC_app_state_collect_enable = false
89020a203aSopenharmony_ci  hiview_enable_performance_monitor = false
90020a203aSopenharmony_ci}
91