• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-2023 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  shared_library("libasync_stack") {
18    # current shared library is unuseful in ohos_lite type
19  }
20} else {
21  config("async_stack_config") {
22    visibility = [ "*:*" ]
23
24    include_dirs = [
25      "include",
26      ".",
27      "$faultloggerd_interfaces_path/common",
28      "$faultloggerd_common_path/dfxutil",
29    ]
30  }
31
32  ohos_shared_library("libasync_stack") {
33    public_configs = [ ":async_stack_config" ]
34    defines = [
35      "is_ohos=${is_ohos}",
36      "ENABLE_PARAMETER",
37    ]
38
39    sources = [
40      "async_stack.cpp",
41      "unique_stack_table.cpp",
42    ]
43    deps = [
44      "$faultloggerd_common_path/dfxlog:dfx_hilog",
45      "$faultloggerd_common_path/dfxutil:dfx_util",
46      "$faultloggerd_interfaces_path/innerkits/backtrace:libbacktrace_local",
47      "$faultloggerd_interfaces_path/innerkits/signal_handler:dfx_signalhandler",
48      "$faultloggerd_interfaces_path/innerkits/unwinder:libunwinder",
49    ]
50    external_deps = [
51      "c_utils:utils",
52      "hilog:libhilog",
53      "init:libbegetutil",
54    ]
55    version_script = "libasync_stack.map"
56    install_images = [
57      "system",
58      "updater",
59    ]
60
61    innerapi_tags = [
62      "chipsetsdk_sp_indirect",
63      "platformsdk_indirect",
64    ]
65
66    part_name = "faultloggerd"
67    subsystem_name = "hiviewdfx"
68  }
69}
70