• 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("//developtools/profiler/build/config.gni")
16import("../copts/configure_copts.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  part_name = "${OHOS_PROFILER_PART_NAME}"
39}
40
41ohos_shared_library("absl_raw_logging_internal") {
42  sources = [ "internal/raw_logging.cc" ]
43
44  include_dirs = [ "${ABSEIL_DIR}/" ]
45
46  cflags = ABSL_DEFAULT_COPTS
47
48  deps = [ ":absl_log_severity" ]
49  install_enable = true
50  subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
51  part_name = "${OHOS_PROFILER_PART_NAME}"
52}
53
54ohos_shared_library("absl_log_severity") {
55  sources = [ "log_severity.cc" ]
56  include_dirs = [ "${ABSEIL_DIR}/" ]
57  cflags = ABSL_DEFAULT_COPTS
58  install_enable = true
59  subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
60  part_name = "${OHOS_PROFILER_PART_NAME}"
61}
62
63ohos_shared_library("absl_spinlock_wait") {
64  sources = [
65    "internal/spinlock_akaros.inc",
66    "internal/spinlock_linux.inc",
67    "internal/spinlock_posix.inc",
68    "internal/spinlock_wait.cc",
69    "internal/spinlock_win32.inc",
70  ]
71  include_dirs = [ "${ABSEIL_DIR}/" ]
72  cflags = ABSL_DEFAULT_COPTS
73  install_enable = true
74  subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
75  part_name = "${OHOS_PROFILER_PART_NAME}"
76}
77
78ohos_shared_library("absl_throw_delegate") {
79  sources = [ "internal/throw_delegate.cc" ]
80
81  include_dirs = [ "${ABSEIL_DIR}/" ]
82
83  cflags = ABSL_DEFAULT_COPTS
84  deps = [ "${ABSEIL_DIR}/absl/base:absl_raw_logging_internal" ]
85  install_enable = true
86  subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
87  part_name = "${OHOS_PROFILER_PART_NAME}"
88}
89