1# Copyright (c) 2021-2024 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 14faultloggerd_path = "//base/hiviewdfx/faultloggerd" 15faultloggerd_common_path = "$faultloggerd_path/common" 16faultloggerd_frameworks_path = "$faultloggerd_path/frameworks" 17faultloggerd_interfaces_path = "$faultloggerd_path/interfaces" 18faultloggerd_test_path = "$faultloggerd_path/test" 19 20declare_args() { 21 libunwinder_debug = false 22 has_libunwindstack = false 23 processdump_minidebuginfo_enable = true 24 faultloggerd_hisysevent_enable = false 25 faultloggerd_liteperf_enable = true 26 processdump_parse_lock_owner_enable = true 27 faultloggerd_enable_build_targets = true 28 if (defined(global_parts_info)) { 29 if (defined(global_parts_info.hiviewdfx_hisysevent)) { 30 faultloggerd_hisysevent_enable = true 31 } 32 } 33} 34 35if (defined(ohos_lite)) { 36 import("//build/lite/config/component/lite_component.gni") 37 c_utils_include_path = "//commonlibrary/c_utils/base/include" 38 c_utils_src_path = "//commonlibrary/c_utils/base/src" 39 if (ohos_kernel_type == "liteos_m") { 40 hilog_lite_include_path = 41 "//base/hiviewdfx/hilog_lite/interfaces/native/kits/hilog_lite" 42 hilog_lite_deps_path = 43 "//base/hiviewdfx/hilog_lite/frameworks/mini:hilog_lite" 44 } else { 45 hilog_lite_include_path = 46 "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits" 47 hilog_lite_deps_path = 48 "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared" 49 } 50} else { 51 import("//build/ohos.gni") 52} 53