• 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
16dfx_util_sources = [ "dfx_util.cpp" ]
17
18if (defined(ohos_lite)) {
19  static_library("dfx_util") {
20    visibility = [ "*:*" ]
21    include_dirs = [
22      ".",
23      "$faultloggerd_interfaces_path/common",
24      "$hilog_lite_include_path",
25    ]
26    sources = dfx_util_sources
27    deps = [
28      "$faultloggerd_path/common/dfxlog:dfx_hilog",
29      "$hilog_lite_deps_path",
30      "//third_party/bounds_checking_function:libsec_shared",
31    ]
32  }
33} else {
34  config("dfx_util_config") {
35    visibility = [ ":*" ]
36    include_dirs = [
37      ".",
38      "$faultloggerd_interfaces_path/common",
39    ]
40  }
41
42  ohos_static_library("dfx_util") {
43    sources = dfx_util_sources
44    public_configs = [ ":dfx_util_config" ]
45    deps = [ "$faultloggerd_path/common/dfxlog:dfx_hilog" ]
46    external_deps = [
47      "c_utils:utils",
48      "hilog:libhilog",
49    ]
50    part_name = "faultloggerd"
51    subsystem_name = "hiviewdfx"
52  }
53
54  ohos_static_library("dfx_util_static") {
55    sources = dfx_util_sources
56    public_configs = [ ":dfx_util_config" ]
57    deps = [ "$faultloggerd_path/common/dfxlog:dfx_hilog_base" ]
58    external_deps = [
59      "c_utils:utils",
60      "hilog:libhilog_base",
61    ]
62    part_name = "faultloggerd"
63    subsystem_name = "hiviewdfx"
64  }
65}
66