• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2018 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5import("//third_party/abseil-cpp/absl.gni")
6
7absl_source_set("civil_time") {
8  sources = [ "src/civil_time_detail.cc" ]
9  public = [
10    "include/cctz/civil_time.h",
11    "include/cctz/civil_time_detail.h",
12  ]
13  deps = [ "//third_party/abseil-cpp/absl/base:config" ]
14}
15
16absl_source_set("time_zone") {
17  sources = [
18    "src/time_zone_fixed.cc",
19    "src/time_zone_fixed.h",
20    "src/time_zone_format.cc",
21    "src/time_zone_if.cc",
22    "src/time_zone_if.h",
23    "src/time_zone_impl.cc",
24    "src/time_zone_impl.h",
25    "src/time_zone_info.cc",
26    "src/time_zone_info.h",
27    "src/time_zone_libc.cc",
28    "src/time_zone_libc.h",
29    "src/time_zone_lookup.cc",
30    "src/time_zone_posix.cc",
31    "src/time_zone_posix.h",
32    "src/tzfile.h",
33    "src/zone_info_source.cc",
34  ]
35  public = [
36    "include/cctz/time_zone.h",
37    "include/cctz/zone_info_source.h",
38  ]
39  if (is_apple) {
40    frameworks = [ "Foundation.framework" ]
41  }
42  deps = [
43    ":civil_time",
44    "//third_party/abseil-cpp/absl/base:config",
45  ]
46  if (is_fuchsia) {
47    deps += [
48      "//third_party/fuchsia-sdk/sdk/fidl/fuchsia.intl",
49      "//third_party/fuchsia-sdk/sdk/pkg/async",
50      "//third_party/fuchsia-sdk/sdk/pkg/async-loop-cpp",
51      "//third_party/fuchsia-sdk/sdk/pkg/sys_cpp",
52      "//third_party/fuchsia-sdk/sdk/pkg/zx",
53    ]
54  }
55}
56