tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

BUILD.gn (1606B)


      1 # Copyright 2018 The Chromium Authors
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 import("//third_party/abseil-cpp/absl.gni")
      6 
      7 absl_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 
     16 absl_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   defines = []
     40   if (is_apple) {
     41     frameworks = [ "Foundation.framework" ]
     42 
     43     # Work-around for https://github.com/llvm/llvm-project/issues/117630
     44     defines += [ "_XOPEN_SOURCE=700" ]
     45   }
     46   deps = [
     47     ":civil_time",
     48     "//third_party/abseil-cpp/absl/base:config",
     49   ]
     50   if (is_fuchsia) {
     51     deps += [
     52       "//third_party/fuchsia-sdk/sdk/fidl/fuchsia.intl:fuchsia.intl_hlcpp",
     53       "//third_party/fuchsia-sdk/sdk/pkg/async",
     54       "//third_party/fuchsia-sdk/sdk/pkg/async-loop-cpp",
     55       "//third_party/fuchsia-sdk/sdk/pkg/sys_cpp",
     56       "//third_party/fuchsia-sdk/sdk/pkg/zx",
     57     ]
     58   }
     59 }