tor-browser

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

BUILD.gn (2274B)


      1 # Copyright (c) 2023 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_source_set("environment") {
     12   visibility = [ "*" ]
     13   sources = [ "environment.h" ]
     14   deps = [
     15     "..:field_trials_view",
     16     "..:refcountedbase",
     17     "..:scoped_refptr",
     18     "../../rtc_base/system:rtc_export",
     19     "../../system_wrappers",
     20     "../rtc_event_log",
     21     "../task_queue",
     22     "//third_party/abseil-cpp/absl/base:nullability",
     23   ]
     24 }
     25 
     26 rtc_library("deprecated_global_field_trials") {
     27   visibility = [
     28     ":environment_factory",
     29     "../../system_wrappers:field_trial",
     30   ]
     31   allow_poison = [ "environment_construction" ]
     32   sources = [
     33     "deprecated_global_field_trials.cc",
     34     "deprecated_global_field_trials.h",
     35   ]
     36   deps = [
     37     "../:field_trials_registry",
     38     "//third_party/abseil-cpp/absl/strings:string_view",
     39   ]
     40 }
     41 
     42 rtc_library("environment_factory") {
     43   visibility = [ "*" ]
     44   poisonous = [ "environment_construction" ]
     45   sources = [
     46     "environment_factory.cc",
     47     "environment_factory.h",
     48   ]
     49   deps = [
     50     ":deprecated_global_field_trials",
     51     ":environment",
     52     "..:field_trials_view",
     53     "..:make_ref_counted",
     54     "..:refcountedbase",
     55     "..:scoped_refptr",
     56     "../../rtc_base:checks",
     57     "../../rtc_base/system:rtc_export",
     58     "../../system_wrappers",
     59     "../rtc_event_log",
     60     "../task_queue",
     61     "../task_queue:default_task_queue_factory",
     62     "//third_party/abseil-cpp/absl/base:nullability",
     63   ]
     64 }
     65 
     66 if (rtc_include_tests) {
     67   rtc_library("environment_unittests") {
     68     testonly = true
     69     sources = [ "environment_unittest.cc" ]
     70     deps = [
     71       ":environment",
     72       ":environment_factory",
     73       "..:field_trials_view",
     74       "../../system_wrappers",
     75       "../../test:test_support",
     76       "../rtc_event_log",
     77       "../task_queue",
     78       "../units:timestamp",
     79       "//third_party/abseil-cpp/absl/functional:any_invocable",
     80       "//third_party/abseil-cpp/absl/strings:string_view",
     81     ]
     82   }
     83 }