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