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 = [ "include" ] 22} 23 24ohos_source_set("faultlogger_service_ohos_common") { 25 part_name = "hiview" 26 sources = [ 27 "src/faultlog_info_ohos.cpp", 28 "src/faultlog_query_result_proxy.cpp", 29 "src/faultlog_query_result_stub.cpp", 30 "src/faultlogger_service_proxy.cpp", 31 "src/faultlogger_service_stub.cpp", 32 ] 33 34 configs = [ ":faultlogger_service_ohos_private_config" ] 35 36 all_dependent_configs = [ ":faultlogger_service_impl_config" ] 37 38 deps = [ 39 "$hiview_base:logger", 40 "$hiview_plugin/faultlogger/common:faultlogger_common", 41 ] 42 43 external_deps = [ 44 "c_utils:utils", 45 "hilog:libhilog", 46 "ipc:ipc_single", 47 ] 48} 49 50ohos_source_set("faultlogger_service_impl") { 51 part_name = "hiview" 52 include_dirs = [ "$hiview_plugin/faultlogger/service" ] 53 54 sources = [ 55 "faultlog_query_result_ohos.cpp", 56 "faultlogger_service_ohos.cpp", 57 ] 58 59 configs = [ ":faultlogger_service_ohos_private_config" ] 60 61 public_configs = [ ":faultlogger_service_impl_config" ] 62 63 deps = [ 64 "$hiview_base:hiviewbase", 65 "$hiview_plugin/faultlogger/common:faultlogger_common", 66 ] 67 68 external_deps = [ 69 "c_utils:utils", 70 "hilog:libhilog", 71 "ipc:ipc_single", 72 "safwk:system_ability_fwk", 73 "samgr:samgr_proxy", 74 ] 75} 76