• 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_time") {
19  sources = [
20    "civil_time.cc",
21    "clock.cc",
22    "duration.cc",
23    "format.cc",
24    "internal/get_current_time_chrono.inc",
25    "internal/get_current_time_posix.inc",
26    "time.cc",
27  ]
28  include_dirs = [ "../../" ]
29
30  cflags = ABSL_DEFAULT_COPTS
31
32  public_deps = [
33    "${ABSEIL_DIR}/absl/base:absl_base",
34    "${ABSEIL_DIR}/absl/base:absl_raw_logging_internal",
35    "${ABSEIL_DIR}/absl/numeric:absl_int128",
36    "${ABSEIL_DIR}/absl/strings:absl_strings",
37    "${ABSEIL_DIR}/absl/time/internal/cctz:absl_civil_time",
38    "${ABSEIL_DIR}/absl/time/internal/cctz:absl_time_zone",
39  ]
40  install_enable = true
41  subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
42  part_name = "${OHOS_PROFILER_PART_NAME}"
43}
44