xref: /base/hiviewdfx/hiview/hiview.gni (revision 020a203a)
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  thermal_manager_enable = true
56  if (defined(global_parts_info) &&
57      !defined(global_parts_info.powermgr_thermal_manager)) {
58    thermal_manager_enable = false
59  }
60
61  enable_hiview_usage_event_report_build = true
62
63  has_hiperf = true
64  if (defined(global_parts_info) &&
65      !defined(global_parts_info.developtools_hiperf)) {
66    has_hiperf = false
67  }
68  has_hiprofiler = true
69  if (defined(global_parts_info) &&
70      !defined(global_parts_info.developtools_hiprofiler)) {
71    has_hiprofiler = false
72  }
73
74  is_wifi_enable = true
75  if (defined(global_parts_info) &&
76      !defined(global_parts_info.communication_wifi)) {
77    is_wifi_enable = false
78  }
79
80  window_manager_enable = true
81  if (defined(global_parts_info) &&
82      !defined(global_parts_info.window_window_manager)) {
83    window_manager_enable = false
84  }
85
86  hiview_enable_leak_detector = false
87
88  hiview_unified_collector_PC_app_state_collect_enable = false
89  hiview_enable_performance_monitor = false
90}
91