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 16crash_exception_sources = [ "crash_exception.cpp" ] 17 18if (defined(ohos_lite)) { 19 shared_library("crash_exception") { 20 visibility = [ "*:*" ] 21 22 include_dirs = [ 23 ".", 24 "$faultloggerd_interfaces_path/common", 25 ] 26 27 sources = crash_exception_sources 28 29 if (faultloggerd_hisysevent_enable) { 30 external_deps = [ "hisysevent:libhisysevent" ] 31 } else { 32 defines = [ "HISYSEVENT_DISABLE" ] 33 } 34 } 35} else { 36 config("crash_exception_config") { 37 visibility = [ "*:*" ] 38 39 include_dirs = [ 40 ".", 41 "$faultloggerd_interfaces_path/common", 42 ] 43 } 44 45 ohos_shared_library("crash_exception") { 46 sources = crash_exception_sources 47 public_configs = [ ":crash_exception_config" ] 48 external_deps = [ "hisysevent:libhisysevent" ] 49 install_images = [ 50 "system", 51 "updater", 52 ] 53 innerapi_tags = [ 54 "chipsetsdk_indirect", 55 "platformsdk_indirect", 56 ] 57 part_name = "faultloggerd" 58 subsystem_name = "hiviewdfx" 59 } 60} 61