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
36hidumper_fuzz_output_path = "hidumper/hidumper"
37
38system_type = "default"
39
40declare_args() {
41  hidumper_ability_runtime_enable = true
42  hidumper_ablility_base_enable = false
43  hidumper_netmanager_base_enable = true
44  hidumper_bundlemanager_framework_enable = true
45  hidumper_hiviewdfx_hisysevent_enable = true
46  hidumper_hiviewdfx_hiview_enable = false
47  hidumper_report_memmgr = false
48  if (!defined(global_parts_info.ability_ability_runtime)) {
49    hidumper_ability_runtime_enable = false
50  }
51  if (defined(global_parts_info.ability_ability_base)) {
52    hidumper_ablility_base_enable = true
53  }
54  if (!defined(global_parts_info.communication_netmanager_base)) {
55    hidumper_netmanager_base_enable = false
56  }
57  if (!defined(global_parts_info.bundlemanager_bundle_framework)) {
58    hidumper_bundlemanager_framework_enable = false
59  }
60  if (!defined(global_parts_info.hiviewdfx_hisysevent)) {
61    hidumper_hiviewdfx_hisysevent_enable = false
62  }
63  if (defined(global_parts_info.hiviewdfx_hiview)) {
64    hidumper_hiviewdfx_hiview_enable = true
65  }
66  if (defined(global_parts_info.resourceschedule_memmgr) ||
67      defined(global_parts_info.resourceschedule_memmgr_override)) {
68    hidumper_report_memmgr = true
69  }
70}
71