tor-browser

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

BUILD.gn (2438B)


      1 # Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
      2 #
      3 # Use of this source code is governed by a BSD-style license
      4 # that can be found in the LICENSE file in the root of the source
      5 # tree. An additional intellectual property rights grant can be found
      6 # in the file PATENTS.  All contributing project authors may
      7 # be found in the AUTHORS file in the root of the source tree.
      8 
      9 import("../../webrtc.gni")
     10 
     11 rtc_library("data_rate") {
     12   visibility = [ "*" ]
     13   sources = [
     14     "data_rate.cc",
     15     "data_rate.h",
     16   ]
     17 
     18   deps = [
     19     ":data_size",
     20     ":frequency",
     21     ":time_delta",
     22     "..:array_view",
     23     "../../rtc_base:checks",
     24     "../../rtc_base:stringutils",
     25     "../../rtc_base/system:rtc_export",
     26     "../../rtc_base/units:unit_base",
     27   ]
     28 }
     29 
     30 rtc_library("data_size") {
     31   visibility = [ "*" ]
     32   sources = [
     33     "data_size.cc",
     34     "data_size.h",
     35   ]
     36 
     37   deps = [
     38     "..:array_view",
     39     "../../rtc_base:checks",
     40     "../../rtc_base:stringutils",
     41     "../../rtc_base/system:rtc_export",
     42     "../../rtc_base/units:unit_base",
     43   ]
     44 }
     45 
     46 rtc_library("time_delta") {
     47   visibility = [ "*" ]
     48   sources = [
     49     "time_delta.cc",
     50     "time_delta.h",
     51   ]
     52 
     53   deps = [
     54     "..:array_view",
     55     "../../rtc_base:checks",
     56     "../../rtc_base:stringutils",
     57     "../../rtc_base/system:rtc_export",
     58     "../../rtc_base/units:unit_base",
     59   ]
     60 }
     61 
     62 rtc_library("frequency") {
     63   visibility = [ "*" ]
     64   sources = [
     65     "frequency.cc",
     66     "frequency.h",
     67   ]
     68 
     69   deps = [
     70     ":time_delta",
     71     "..:array_view",
     72     "../../rtc_base:checks",
     73     "../../rtc_base:stringutils",
     74     "../../rtc_base/system:rtc_export",
     75     "../../rtc_base/units:unit_base",
     76   ]
     77 }
     78 
     79 rtc_library("timestamp") {
     80   visibility = [ "*" ]
     81   sources = [
     82     "timestamp.cc",
     83     "timestamp.h",
     84   ]
     85 
     86   deps = [
     87     ":time_delta",
     88     "..:array_view",
     89     "../../rtc_base:checks",
     90     "../../rtc_base:stringutils",
     91     "../../rtc_base/system:rtc_export",
     92     "../../rtc_base/units:unit_base",
     93   ]
     94 }
     95 
     96 if (rtc_include_tests) {
     97   rtc_library("units_unittests") {
     98     testonly = true
     99     sources = [
    100       "data_rate_unittest.cc",
    101       "data_size_unittest.cc",
    102       "frequency_unittest.cc",
    103       "time_delta_unittest.cc",
    104       "timestamp_unittest.cc",
    105     ]
    106     deps = [
    107       ":data_rate",
    108       ":data_size",
    109       ":frequency",
    110       ":time_delta",
    111       ":timestamp",
    112       "../../rtc_base:checks",
    113       "../../rtc_base:logging",
    114       "../../test:test_support",
    115     ]
    116   }
    117 }