1# Copyright (c) 2021-2023 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# build type definitions
14is_phone = true
15is_tv = false
16is_watch = false
17
18# hiview path definitions
19hiview_root = "//base/hiviewdfx/hiview"
20hiview_adapter = "//base/hiviewdfx/hiview/adapter"
21hiview_base = "//base/hiviewdfx/hiview/base"
22hiview_core = "//base/hiviewdfx/hiview/core"
23hiview_plugin = "//base/hiviewdfx/hiview/plugins"
24hiview_service = "//base/hiviewdfx/hiview/service"
25hiview_framework = "//base/hiviewdfx/hiview/framework"
26hiview_interfaces = "//base/hiviewdfx/hiview/interfaces"
27hiview_test = "//base/hiviewdfx/hiview/test"
28
29# hiview plugin path definitions
30hiview_faultlogger = "//base/hiviewdfx/hiview/plugins/faultlogger"
31hiview_eventlogger = "//base/hiviewdfx/hiview/plugins/eventlogger"
32
33# hiview module
34hiview_module = "hiview/hiview"
35
36declare_args() {
37  device_usage_statistics_enable = true
38  if (defined(global_parts_info) &&
39      !defined(global_parts_info.resourceschedule_device_usage_statistics)) {
40    device_usage_statistics_enable = false
41  }
42
43  battery_statistics_enable = true
44  if (defined(global_parts_info) &&
45      !defined(global_parts_info.powermgr_battery_statistics)) {
46    battery_statistics_enable = false
47  }
48
49  power_manager_enable = true
50  if (defined(global_parts_info) &&
51      !defined(global_parts_info.powermgr_power_manager)) {
52    power_manager_enable = false
53  }
54
55  enable_hiview_usage_event_report_build = true
56
57  has_hiperf = true
58  if (defined(global_parts_info) &&
59      !defined(global_parts_info.developtools_hiperf)) {
60    has_hiperf = false
61  }
62  has_hiprofiler = true
63  if (defined(global_parts_info) &&
64      !defined(global_parts_info.developtools_hiprofiler)) {
65    has_hiprofiler = false
66  }
67
68  is_wifi_enable = true
69  if (defined(global_parts_info) &&
70      !defined(global_parts_info.communication_wifi)) {
71    is_wifi_enable = false
72  }
73
74  window_manager_enable = true
75  if (defined(global_parts_info) &&
76      !defined(global_parts_info.window_window_manager)) {
77    window_manager_enable = false
78  }
79
80  hiview_enable_leak_detector = false
81
82  hiview_unified_collector_PC_app_state_collect_enable = false
83  hiview_enable_performance_monitor = false
84}
85