tor-browser

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

BUILD.gn (3031B)


      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("pcc") {
     12   sources = [
     13     "pcc_factory.cc",
     14     "pcc_factory.h",
     15   ]
     16   deps = [
     17     ":pcc_controller",
     18     "../../../api/transport:network_control",
     19     "../../../api/units:time_delta",
     20   ]
     21 }
     22 
     23 rtc_library("pcc_controller") {
     24   sources = [
     25     "pcc_network_controller.cc",
     26     "pcc_network_controller.h",
     27   ]
     28   deps = [
     29     ":bitrate_controller",
     30     ":monitor_interval",
     31     ":rtt_tracker",
     32     "../../../api/transport:network_control",
     33     "../../../api/units:data_rate",
     34     "../../../api/units:data_size",
     35     "../../../api/units:time_delta",
     36     "../../../api/units:timestamp",
     37     "../../../rtc_base:checks",
     38     "../../../rtc_base:random",
     39   ]
     40 }
     41 
     42 rtc_library("monitor_interval") {
     43   sources = [
     44     "monitor_interval.cc",
     45     "monitor_interval.h",
     46   ]
     47   deps = [
     48     "../../../api/transport:network_control",
     49     "../../../api/units:data_rate",
     50     "../../../api/units:data_size",
     51     "../../../api/units:time_delta",
     52     "../../../api/units:timestamp",
     53     "../../../rtc_base:logging",
     54   ]
     55 }
     56 
     57 rtc_library("rtt_tracker") {
     58   sources = [
     59     "rtt_tracker.cc",
     60     "rtt_tracker.h",
     61   ]
     62   deps = [
     63     "../../../api/transport:network_control",
     64     "../../../api/units:time_delta",
     65     "../../../api/units:timestamp",
     66   ]
     67 }
     68 
     69 rtc_library("utility_function") {
     70   sources = [
     71     "utility_function.cc",
     72     "utility_function.h",
     73   ]
     74   deps = [
     75     ":monitor_interval",
     76     "../../../api/transport:network_control",
     77     "../../../api/units:data_rate",
     78     "../../../rtc_base:checks",
     79   ]
     80 }
     81 
     82 rtc_library("bitrate_controller") {
     83   sources = [
     84     "bitrate_controller.cc",
     85     "bitrate_controller.h",
     86   ]
     87   deps = [
     88     ":monitor_interval",
     89     ":utility_function",
     90     "../../../api/transport:network_control",
     91     "../../../api/units:data_rate",
     92   ]
     93 }
     94 
     95 if (rtc_include_tests && !build_with_chromium) {
     96   rtc_library("pcc_unittests") {
     97     testonly = true
     98     sources = [
     99       "bitrate_controller_unittest.cc",
    100       "monitor_interval_unittest.cc",
    101       "pcc_network_controller_unittest.cc",
    102       "rtt_tracker_unittest.cc",
    103       "utility_function_unittest.cc",
    104     ]
    105     deps = [
    106       ":bitrate_controller",
    107       ":monitor_interval",
    108       ":pcc",
    109       ":pcc_controller",
    110       ":rtt_tracker",
    111       ":utility_function",
    112       "../../../api/environment",
    113       "../../../api/environment:environment_factory",
    114       "../../../api/transport:network_control",
    115       "../../../api/units:data_rate",
    116       "../../../api/units:data_size",
    117       "../../../api/units:time_delta",
    118       "../../../api/units:timestamp",
    119       "../../../test:test_support",
    120       "../../../test/scenario",
    121     ]
    122   }
    123 }