• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 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
16lite_component("faultloggerd") {
17  features = [
18    "interfaces/innerkits/signal_handler:dfx_signalhandler",
19    "interfaces/innerkits/dump_catcher:lib_dfx_dump_catcher",
20    "interfaces/innerkits/faultloggerd_client:libfaultloggerd",
21    "services:faultloggerd",
22    "tools/process_dump:processdump",
23    "tools/crasher_c:crasher_c",
24    "tools/crasher_cpp:crasher_cpp",
25    ":faultloggerd_test",
26    "test:faultloggerd_funchook",
27  ]
28}
29
30lite_component("faultloggerd_test") {
31  if (ohos_kernel_type == "liteos_m") {
32    features = []
33  } else {
34    features = []
35    if (ohos_build_type == "debug") {
36      features += [
37        "services/test/unittest:test_service",
38        "test/moduletest:FaultloggerdModuleTest",
39        "test/systemtest:test_faultloggerd",
40        "tools/process_dump/test/unittest:test_processdump",
41      ]
42    }
43  }
44}
45