1# Copyright (c) 2021-2022 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 executable("dumpcatcherdemo") { 18 sources = [ "dump_catcher_demo.cpp" ] 19 20 visibility = [ "*:*" ] 21 22 include_dirs = [ 23 ".", 24 "//commonlibrary/c_utils/base/include", 25 "$faultloggerd_path/interfaces/innerkits/dump_catcher/include/", 26 "$faultloggerd_path/common", 27 "$faultloggerd_path/common/dfxlog", 28 "$faultloggerd_path/tools/process_dump", 29 "$hilog_lite_include_path", 30 ] 31 32 deps = [ 33 "$faultloggerd_path/common/dfxlog:static_common_log", 34 "$faultloggerd_path/interfaces/innerkits/dump_catcher:lib_dfx_dump_catcher", 35 "$hilog_lite_deps_path", 36 ] 37 } 38} else { 39 config("dumpcatcherdemo_config") { 40 visibility = [ ":*" ] 41 42 include_dirs = [ 43 ".", 44 "//commonlibrary/c_utils/base/include", 45 "$faultloggerd_path/common", 46 "$faultloggerd_path/common/dfxlog", 47 "$faultloggerd_path/interfaces/innerkits/dump_catcher/include/", 48 ] 49 } 50 51 ohos_executable("dumpcatcherdemo") { 52 sources = [ "dump_catcher_demo.cpp" ] 53 54 configs = [ ":dumpcatcherdemo_config" ] 55 56 deps = [ 57 "$faultloggerd_path/common/dfxlog:static_common_log", 58 "$faultloggerd_path/interfaces/innerkits/dump_catcher:lib_dfx_dump_catcher", 59 ] 60 61 external_deps = [ 62 "c_utils:utils", 63 "hilog_native:libhilog", 64 ] 65 66 part_name = "faultloggerd" 67 subsystem_name = "hiviewdfx" 68 } 69} 70