1# Copyright (c) 2021 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. 13import("//base/hiviewdfx/hiview/hiview.gni") 14import("//build/ohos.gni") 15 16config("faultlogger_service_ohos_private_config") { 17 include_dirs = [ "." ] 18} 19 20config("faultlogger_service_impl_config") { 21 include_dirs = [ 22 "include", 23 "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include", 24 ] 25} 26 27ohos_source_set("faultlogger_service_ohos_common") { 28 part_name = "hiview" 29 sources = [ 30 "src/faultlog_info_ohos.cpp", 31 "src/faultlog_query_result_proxy.cpp", 32 "src/faultlog_query_result_stub.cpp", 33 "src/faultlogger_service_proxy.cpp", 34 "src/faultlogger_service_stub.cpp", 35 ] 36 37 configs = [ ":faultlogger_service_ohos_private_config" ] 38 39 all_dependent_configs = [ ":faultlogger_service_impl_config" ] 40 41 deps = [ 42 "$hiview_base:logger", 43 "$hiview_plugin/faultlogger/common:faultlogger_common", 44 ] 45 46 external_deps = [ 47 "c_utils:utils", 48 "hilog_native:libhilog", 49 "ipc:ipc_single", 50 "samgr:samgr_proxy", 51 ] 52} 53 54ohos_source_set("faultlogger_service_impl") { 55 part_name = "hiview" 56 include_dirs = [ "$hiview_plugin/faultlogger/service" ] 57 58 sources = [ 59 "faultlog_query_result_ohos.cpp", 60 "faultlogger_service_ohos.cpp", 61 ] 62 63 configs = [ ":faultlogger_service_ohos_private_config" ] 64 65 public_configs = [ ":faultlogger_service_impl_config" ] 66 67 deps = [ 68 "$hiview_base:hiviewbase", 69 "$hiview_plugin/faultlogger/common:faultlogger_common", 70 ] 71 72 external_deps = [ 73 "c_utils:utils", 74 "hilog_native:libhilog", 75 "ipc:ipc_core", 76 "safwk:system_ability_fwk", 77 "samgr:samgr_proxy", 78 ] 79} 80