100600bfbSopenharmony_ci# Copyright (c) 2021 Huawei Device Co., Ltd. 200600bfbSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 300600bfbSopenharmony_ci# you may not use this file except in compliance with the License. 400600bfbSopenharmony_ci# You may obtain a copy of the License at 500600bfbSopenharmony_ci# 600600bfbSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 700600bfbSopenharmony_ci# 800600bfbSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 900600bfbSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 1000600bfbSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1100600bfbSopenharmony_ci# See the License for the specific language governing permissions and 1200600bfbSopenharmony_ci# limitations under the License. 1300600bfbSopenharmony_ci 1400600bfbSopenharmony_ciimport("//build/ohos.gni") 1500600bfbSopenharmony_ci 1600600bfbSopenharmony_cihidumper_subsystem_name = "hiviewdfx" 1700600bfbSopenharmony_ci 1800600bfbSopenharmony_cihidumper_part_name = "hidumper" 1900600bfbSopenharmony_ci 2000600bfbSopenharmony_cihidumper_root_path = "//base/hiviewdfx/hidumper" 2100600bfbSopenharmony_ci 2200600bfbSopenharmony_cihidumper_frameworks_path = "${hidumper_root_path}/frameworks/native" 2300600bfbSopenharmony_ci 2400600bfbSopenharmony_cihidumper_client_path = "${hidumper_root_path}/client" 2500600bfbSopenharmony_ci 2600600bfbSopenharmony_cihidumper_service_path = "${hidumper_root_path}/services" 2700600bfbSopenharmony_ci 2800600bfbSopenharmony_cihidumper_test_path = "${hidumper_root_path}/test" 2900600bfbSopenharmony_ci 3000600bfbSopenharmony_cihidumper_unittest_path = "${hidumper_test_path}/unittest/common" 3100600bfbSopenharmony_ci 3200600bfbSopenharmony_cihidumper_utils_path = "${hidumper_root_path}/utils" 3300600bfbSopenharmony_ci 3400600bfbSopenharmony_cihidumper_interface = "${hidumper_root_path}/interfaces/native" 3500600bfbSopenharmony_ci 3600600bfbSopenharmony_cihidumper_fuzz_output_path = "hidumper/hidumper" 3700600bfbSopenharmony_ci 3800600bfbSopenharmony_cisystem_type = "default" 3900600bfbSopenharmony_ci 4000600bfbSopenharmony_cideclare_args() { 4100600bfbSopenharmony_ci hidumper_ability_runtime_enable = true 4200600bfbSopenharmony_ci hidumper_ablility_base_enable = false 4300600bfbSopenharmony_ci hidumper_netmanager_base_enable = true 4400600bfbSopenharmony_ci hidumper_bundlemanager_framework_enable = true 4500600bfbSopenharmony_ci hidumper_hiviewdfx_hisysevent_enable = true 4600600bfbSopenharmony_ci hidumper_hiviewdfx_hiview_enable = false 4700600bfbSopenharmony_ci hidumper_report_memmgr = false 4800600bfbSopenharmony_ci if (!defined(global_parts_info.ability_ability_runtime)) { 4900600bfbSopenharmony_ci hidumper_ability_runtime_enable = false 5000600bfbSopenharmony_ci } 5100600bfbSopenharmony_ci if (defined(global_parts_info.ability_ability_base)) { 5200600bfbSopenharmony_ci hidumper_ablility_base_enable = true 5300600bfbSopenharmony_ci } 5400600bfbSopenharmony_ci if (!defined(global_parts_info.communication_netmanager_base)) { 5500600bfbSopenharmony_ci hidumper_netmanager_base_enable = false 5600600bfbSopenharmony_ci } 5700600bfbSopenharmony_ci if (!defined(global_parts_info.bundlemanager_bundle_framework)) { 5800600bfbSopenharmony_ci hidumper_bundlemanager_framework_enable = false 5900600bfbSopenharmony_ci } 6000600bfbSopenharmony_ci if (!defined(global_parts_info.hiviewdfx_hisysevent)) { 6100600bfbSopenharmony_ci hidumper_hiviewdfx_hisysevent_enable = false 6200600bfbSopenharmony_ci } 6300600bfbSopenharmony_ci if (defined(global_parts_info.hiviewdfx_hiview)) { 6400600bfbSopenharmony_ci hidumper_hiviewdfx_hiview_enable = true 6500600bfbSopenharmony_ci } 6600600bfbSopenharmony_ci if (defined(global_parts_info.resourceschedule_memmgr) || 6700600bfbSopenharmony_ci defined(global_parts_info.resourceschedule_memmgr_override)) { 6800600bfbSopenharmony_ci hidumper_report_memmgr = true 6900600bfbSopenharmony_ci } 7000600bfbSopenharmony_ci} 71