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_libunwind = true 23 has_libunwindstack = false 24 processdump_minidebuginfo_enable = true 25 faultloggerd_hisysevent_enable = false 26 if (defined(global_parts_info)) { 27 if (defined(global_parts_info.hiviewdfx_hisysevent)) { 28 faultloggerd_hisysevent_enable = true 29 } 30 } 31} 32 33if (defined(ohos_lite)) { 34 import("//build/lite/config/component/lite_component.gni") 35 c_utils_include_path = "//commonlibrary/c_utils/base/include" 36 c_utils_src_path = "//commonlibrary/c_utils/base/src" 37 if (ohos_kernel_type == "liteos_m") { 38 hilog_lite_include_path = 39 "//base/hiviewdfx/hilog_lite/interfaces/native/kits/hilog_lite" 40 hilog_lite_deps_path = 41 "//base/hiviewdfx/hilog_lite/frameworks/mini:hilog_lite" 42 } else { 43 hilog_lite_include_path = 44 "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits" 45 hilog_lite_deps_path = 46 "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared" 47 } 48} else { 49 import("//build/ohos.gni") 50} 51