tor-browser

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

BUILD.gn (4457B)


      1 # Copyright (c) 2019 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("resource_adaptation") {
     12   sources = [
     13     "adaptation_constraint.cc",
     14     "adaptation_constraint.h",
     15     "broadcast_resource_listener.cc",
     16     "broadcast_resource_listener.h",
     17     "degradation_preference_provider.cc",
     18     "degradation_preference_provider.h",
     19     "encoder_settings.cc",
     20     "encoder_settings.h",
     21     "resource_adaptation_processor.cc",
     22     "resource_adaptation_processor.h",
     23     "resource_adaptation_processor_interface.cc",
     24     "resource_adaptation_processor_interface.h",
     25     "video_source_restrictions.cc",
     26     "video_source_restrictions.h",
     27     "video_stream_adapter.cc",
     28     "video_stream_adapter.h",
     29     "video_stream_input_state.cc",
     30     "video_stream_input_state.h",
     31     "video_stream_input_state_provider.cc",
     32     "video_stream_input_state_provider.h",
     33   ]
     34   deps = [
     35     "../../api:field_trials_view",
     36     "../../api:make_ref_counted",
     37     "../../api:ref_count",
     38     "../../api:rtp_parameters",
     39     "../../api:scoped_refptr",
     40     "../../api:sequence_checker",
     41     "../../api/adaptation:resource_adaptation_api",
     42     "../../api/task_queue",
     43     "../../api/video:video_adaptation",
     44     "../../api/video:video_frame",
     45     "../../api/video_codecs:video_codecs_api",
     46     "../../modules/video_coding/svc:scalability_mode_util",
     47     "../../rtc_base:checks",
     48     "../../rtc_base:logging",
     49     "../../rtc_base:macromagic",
     50     "../../rtc_base:safe_conversions",
     51     "../../rtc_base:stringutils",
     52     "../../rtc_base/experiments:balanced_degradation_settings",
     53     "../../rtc_base/synchronization:mutex",
     54     "../../rtc_base/system:no_unique_address",
     55     "../../video:video_stream_encoder_interface",
     56     "../../video/config:encoder_config",
     57     "//third_party/abseil-cpp/absl/algorithm:container",
     58     "//third_party/abseil-cpp/absl/strings:string_view",
     59   ]
     60 }
     61 
     62 if (rtc_include_tests) {
     63   rtc_library("resource_adaptation_tests") {
     64     testonly = true
     65 
     66     sources = [
     67       "broadcast_resource_listener_unittest.cc",
     68       "resource_adaptation_processor_unittest.cc",
     69       "resource_unittest.cc",
     70       "video_source_restrictions_unittest.cc",
     71       "video_stream_adapter_unittest.cc",
     72       "video_stream_input_state_provider_unittest.cc",
     73     ]
     74     deps = [
     75       ":resource_adaptation",
     76       ":resource_adaptation_test_utilities",
     77       "../../api:rtc_error_matchers",
     78       "../../api:rtp_parameters",
     79       "../../api:scoped_refptr",
     80       "../../api:sequence_checker",
     81       "../../api/adaptation:resource_adaptation_api",
     82       "../../api/units:time_delta",
     83       "../../api/video:video_adaptation",
     84       "../../api/video:video_frame",
     85       "../../api/video_codecs:video_codecs_api",
     86       "../../rtc_base:checks",
     87       "../../rtc_base:macromagic",
     88       "../../rtc_base:rtc_event",
     89       "../../rtc_base:stringutils",
     90       "../../rtc_base:task_queue_for_test",
     91       "../../rtc_base:threading",
     92       "../../test:create_test_field_trials",
     93       "../../test:test_support",
     94       "../../test:wait_until",
     95       "../../video/config:encoder_config",
     96       "//third_party/abseil-cpp/absl/strings",
     97     ]
     98   }
     99 
    100   rtc_library("resource_adaptation_test_utilities") {
    101     testonly = true
    102 
    103     sources = [
    104       "test/fake_adaptation_constraint.cc",
    105       "test/fake_adaptation_constraint.h",
    106       "test/fake_frame_rate_provider.cc",
    107       "test/fake_frame_rate_provider.h",
    108       "test/fake_resource.cc",
    109       "test/fake_resource.h",
    110       "test/fake_video_stream_input_state_provider.cc",
    111       "test/fake_video_stream_input_state_provider.h",
    112       "test/mock_resource_listener.h",
    113     ]
    114     deps = [
    115       ":resource_adaptation",
    116       "../../api:make_ref_counted",
    117       "../../api:scoped_refptr",
    118       "../../api/adaptation:resource_adaptation_api",
    119       "../../api/video:video_adaptation",
    120       "../../api/video:video_bitrate_allocation",
    121       "../../api/video_codecs:video_codecs_api",
    122       "../../test:test_support",
    123       "../../video:video_stream_encoder_interface",
    124       "../../video/config:encoder_config",
    125       "//third_party/abseil-cpp/absl/strings:string_view",
    126     ]
    127   }
    128 }