• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
16hidumper_subsystem_name = "hiviewdfx"
17
18hidumper_part_name = "hidumper"
19
20hidumper_root_path = "//base/hiviewdfx/hidumper"
21
22hidumper_frameworks_path = "${hidumper_root_path}/frameworks/native"
23
24hidumper_client_path = "${hidumper_root_path}/client"
25
26hidumper_service_path = "${hidumper_root_path}/services"
27
28hidumper_test_path = "${hidumper_root_path}/test"
29
30hidumper_unittest_path = "${hidumper_test_path}/unittest/common"
31
32hidumper_utils_path = "${hidumper_root_path}/utils"
33
34hidumper_interface = "${hidumper_root_path}/interfaces/native"
35
36system_type = "default"
37
38declare_args() {
39  hidumper_report_memmgr = false
40  hidumper_report_memmgr_plugins = false
41  hidumper_ability_runtime_enable = true
42  hidumper_graphic_enable = true
43  hidumper_battery_manager_enable = false
44  hidumper_ablility_base_enable = false
45  hidumper_common_event_enable = false
46  if (!defined(global_parts_info.ability_ability_runtime)) {
47    hidumper_ability_runtime_enable = false
48  }
49  if (defined(global_parts_info.resourceschedule_memmgr)) {
50    hidumper_report_memmgr = true
51  }
52  if (defined(global_parts_info.resourceschedule_memmgr_plugin)) {
53    hidumper_report_memmgr_plugins = true
54  }
55  if (!defined(global_parts_info.graphic_graphic_2d)) {
56    hidumper_graphic_enable = false
57  }
58  if (defined(global_parts_info.powermgr_battery_manager)) {
59    hidumper_battery_manager_enable = true
60  }
61  if (defined(global_parts_info.ability_ability_base)) {
62    hidumper_ablility_base_enable = true
63  }
64  if (defined(global_parts_info.notification_common_event_service)) {
65    hidumper_common_event_enable = true
66  }
67}
68