1# Copyright (c) 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 14import("//base/hiviewdfx/faultloggerd/faultloggerd.gni") 15 16if (defined(ohos_lite)) { 17 static_library("dfx_sigdump_handler") { 18 # current static library is unuseful in ohos_lite type 19 } 20} else { 21 dfx_sigdump_handler_sources = [ "dfx_sigdump_handler.cpp" ] 22 config("dfx_sigdump_handler_config") { 23 visibility = [ "*:*" ] 24 25 include_dirs = [ "include" ] 26 27 defines = [ "is_ohos=${is_ohos}" ] 28 } 29 30 ohos_static_library("dfx_sigdump_handler") { 31 public_configs = [ ":dfx_sigdump_handler_config" ] 32 33 sources = dfx_sigdump_handler_sources 34 include_dirs = [ 35 "$faultloggerd_common_path/dfxlog", 36 "$faultloggerd_common_path/dfxutil", 37 "$faultloggerd_interfaces_path/common", 38 "$faultloggerd_interfaces_path/innerkits/backtrace", 39 ] 40 41 deps = [ 42 "$faultloggerd_common_path/dfxlog:dfx_hilog", 43 "$faultloggerd_interfaces_path/innerkits/backtrace:libbacktrace_local", 44 "$faultloggerd_interfaces_path/innerkits/faultloggerd_client:libfaultloggerd", 45 ] 46 47 external_deps = [ 48 "bounds_checking_function:libsec_shared", 49 "c_utils:utils", 50 "hilog:libhilog", 51 ] 52 53 part_name = "faultloggerd" 54 subsystem_name = "hiviewdfx" 55 } 56} 57