• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
13
14import("//build/ohos.gni")
15import("../copts/configure_copts.gni")
16import("//developtools/profiler/build/config.gni")
17
18ohos_shared_library("absl_base") {
19  sources = [
20    "internal/cycleclock.cc",
21    "internal/spinlock.cc",
22    "internal/sysinfo.cc",
23    "internal/thread_identity.cc",
24    "internal/unscaledcycleclock.cc",
25  ]
26
27  include_dirs = [ "${ABSEIL_DIR}/" ]
28
29  cflags = ABSL_DEFAULT_COPTS
30
31  public_deps = [
32    ":absl_log_severity",
33    ":absl_raw_logging_internal",
34    ":absl_spinlock_wait",
35  ]
36  install_enable = true
37  subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
38}
39
40ohos_shared_library("absl_raw_logging_internal") {
41  sources = [ "internal/raw_logging.cc" ]
42
43  include_dirs = [ "${ABSEIL_DIR}/" ]
44
45  cflags = ABSL_DEFAULT_COPTS
46
47  deps = [ ":absl_log_severity" ]
48  install_enable = true
49  subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
50}
51
52ohos_shared_library("absl_log_severity") {
53  sources = [ "log_severity.cc" ]
54  include_dirs = [ "${ABSEIL_DIR}/" ]
55  cflags = ABSL_DEFAULT_COPTS
56  install_enable = true
57  subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
58}
59
60ohos_shared_library("absl_spinlock_wait") {
61  sources = [
62    "internal/spinlock_akaros.inc",
63    "internal/spinlock_linux.inc",
64    "internal/spinlock_posix.inc",
65    "internal/spinlock_wait.cc",
66    "internal/spinlock_win32.inc",
67  ]
68  include_dirs = [ "${ABSEIL_DIR}/" ]
69  cflags = ABSL_DEFAULT_COPTS
70  install_enable = true
71  subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
72}
73
74ohos_shared_library("absl_dynamic_annotations") {
75  sources = [ "dynamic_annotations.cc" ]
76  include_dirs = [ "${ABSEIL_DIR}/" ]
77
78  cflags = ABSL_DEFAULT_COPTS
79
80  install_enable = true
81  subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
82}
83
84ohos_shared_library("absl_malloc_internal") {
85  sources = [ "internal/low_level_alloc.cc" ]
86  include_dirs = [ "${ABSEIL_DIR}/" ]
87
88  cflags = ABSL_DEFAULT_COPTS
89
90  deps = [
91    ":absl_base",
92    ":absl_spinlock_wait",
93    "${ABSEIL_DIR}/absl/base:absl_raw_logging_internal",
94  ]
95  install_enable = true
96  subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
97}
98
99ohos_shared_library("absl_exponential_biased") {
100  sources = [ "internal/exponential_biased.cc" ]
101
102  include_dirs = [ "${ABSEIL_DIR}/" ]
103
104  cflags = ABSL_DEFAULT_COPTS
105  install_enable = true
106  subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
107}
108
109ohos_shared_library("absl_throw_delegate") {
110  sources = [ "internal/throw_delegate.cc" ]
111
112  include_dirs = [ "${ABSEIL_DIR}/" ]
113
114  cflags = ABSL_DEFAULT_COPTS
115  deps = [ "${ABSEIL_DIR}/absl/base:absl_raw_logging_internal" ]
116  install_enable = true
117  subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
118}
119