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  if (!defined(global_parts_info.ability_ability_runtime)) {
47    hidumper_ability_runtime_enable = false
48  }
49  if (defined(global_parts_info.ability_ability_base)) {
50    hidumper_ablility_base_enable = true
51  }
52  if (!defined(global_parts_info.communication_netmanager_base)) {
53    hidumper_netmanager_base_enable = false
54  }
55  if (!defined(global_parts_info.bundlemanager_bundle_framework)) {
56    hidumper_bundlemanager_framework_enable = false
57  }
58  if (!defined(global_parts_info.hiviewdfx_hisysevent)) {
59    hidumper_hiviewdfx_hisysevent_enable = false
60  }
61}
62