tor-browser

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

BUILD.gn (4409B)


      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("bitrate_settings") {
     12   visibility = [ "*" ]
     13   sources = [
     14     "bitrate_settings.cc",
     15     "bitrate_settings.h",
     16   ]
     17   deps = [ "../../rtc_base/system:rtc_export" ]
     18 }
     19 
     20 rtc_source_set("bandwidth_usage") {
     21   visibility = [ "*" ]
     22   sources = [ "bandwidth_usage.h" ]
     23 }
     24 
     25 rtc_library("bandwidth_estimation_settings") {
     26   visibility = [ "*" ]
     27   sources = [ "bandwidth_estimation_settings.h" ]
     28   deps = [ "../../rtc_base/system:rtc_export" ]
     29 }
     30 
     31 rtc_source_set("ecn_marking") {
     32   visibility = [ "*" ]
     33   sources = [ "ecn_marking.h" ]
     34 }
     35 
     36 rtc_source_set("enums") {
     37   visibility = [ "*" ]
     38   sources = [ "enums.h" ]
     39 }
     40 
     41 rtc_library("network_control") {
     42   visibility = [ "*" ]
     43   sources = [
     44     "network_control.h",
     45     "network_types.cc",
     46     "network_types.h",
     47   ]
     48 
     49   deps = [
     50     ":ecn_marking",
     51     "../../api:field_trials_view",
     52     "../../rtc_base/system:rtc_export",
     53     "../environment",
     54     "../rtc_event_log",
     55     "../units:data_rate",
     56     "../units:data_size",
     57     "../units:time_delta",
     58     "../units:timestamp",
     59     "//third_party/abseil-cpp/absl/base:core_headers",
     60   ]
     61 }
     62 
     63 rtc_source_set("datagram_transport_interface") {
     64   visibility = [ "*" ]
     65   sources = [ "data_channel_transport_interface.h" ]
     66   deps = [
     67     "..:array_view",
     68     "..:priority",
     69     "..:rtc_error",
     70     "../../rtc_base:copy_on_write_buffer",
     71   ]
     72 }
     73 
     74 rtc_library("goog_cc") {
     75   visibility = [ "*" ]
     76   sources = [
     77     "goog_cc_factory.cc",
     78     "goog_cc_factory.h",
     79   ]
     80   deps = [
     81     ":network_control",
     82     "..:network_state_predictor_api",
     83     "../../api/units:time_delta",
     84     "../../modules/congestion_controller/goog_cc",
     85     "../../rtc_base/system:rtc_export",
     86   ]
     87 }
     88 
     89 rtc_source_set("sctp_transport_factory_interface") {
     90   visibility = [ "*" ]
     91   sources = [ "sctp_transport_factory_interface.h" ]
     92   deps = [ "../../api/environment" ]
     93 }
     94 
     95 rtc_library("stun_types") {
     96 if (!build_with_mozilla) {
     97   visibility = [ "*" ]
     98   sources = [
     99     "stun.cc",
    100     "stun.h",
    101   ]
    102 
    103   deps = [
    104     "../../api:array_view",
    105     "../../rtc_base:byte_buffer",
    106     "../../rtc_base:byte_order",
    107     "../../rtc_base:checks",
    108     "../../rtc_base:crc32",
    109     "../../rtc_base:crypto_random",
    110     "../../rtc_base:digest",
    111     "../../rtc_base:ip_address",
    112     "../../rtc_base:logging",
    113     "../../rtc_base:net_helpers",
    114     "../../rtc_base:socket_address",
    115     "../../system_wrappers:metrics",
    116     "//third_party/abseil-cpp/absl/strings:string_view",
    117   ]
    118 }
    119 }
    120 
    121 if (rtc_include_tests) {
    122   rtc_source_set("test_feedback_generator_interface") {
    123     testonly = true
    124     sources = [ "test/feedback_generator_interface.h" ]
    125     visibility = [ "*" ]
    126     deps = [
    127       ":network_control",
    128       "..:simulated_network_api",
    129       "../../api:network_emulation_manager_api",
    130       "../../api/rtc_event_log",
    131       "../units:data_rate",
    132       "../units:data_size",
    133       "../units:time_delta",
    134       "../units:timestamp",
    135     ]
    136   }
    137   rtc_library("test_feedback_generator") {
    138     testonly = true
    139     sources = [
    140       "test/create_feedback_generator.cc",
    141       "test/create_feedback_generator.h",
    142     ]
    143     visibility = [ "*" ]
    144     deps = [
    145       ":network_control",
    146       ":test_feedback_generator_interface",
    147       "../../api:network_emulation_manager_api",
    148       "../../api/rtc_event_log",
    149       "../../test/network:feedback_generator",
    150     ]
    151   }
    152 }
    153 
    154 if (rtc_include_tests) {
    155   rtc_library("stun_unittest") {
    156     visibility = [ "*" ]
    157     testonly = true
    158     sources = [ "stun_unittest.cc" ]
    159     deps = [
    160       ":stun_types",
    161       "..:array_view",
    162       "../../rtc_base:byte_buffer",
    163       "../../rtc_base:byte_order",
    164       "../../rtc_base:ip_address",
    165       "../../rtc_base:socket_address",
    166       "../../system_wrappers:metrics",
    167       "../../test:test_support",
    168       "//testing/gtest",
    169     ]
    170   }
    171 }
    172 
    173 if (rtc_include_tests) {
    174   rtc_source_set("mock_network_control") {
    175     visibility = [ "*" ]
    176     testonly = true
    177     sources = [ "test/mock_network_control.h" ]
    178     deps = [
    179       ":network_control",
    180       "../../test:test_support",
    181     ]
    182   }
    183 }