tor-browser

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

BUILD.gn (4072B)


      1 # Copyright (c) 2025 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("filter_settings") {
     12   visibility = [ "*" ]
     13   sources = [ "corruption_detection_filter_settings.h" ]
     14 }
     15 
     16 rtc_library("frame_instrumentation_data") {
     17   visibility = [ "*" ]
     18   sources = [
     19     "frame_instrumentation_data.cc",
     20     "frame_instrumentation_data.h",
     21   ]
     22 
     23   deps = [
     24     "../../:array_view",
     25     "../../../rtc_base:checks",
     26   ]
     27 }
     28 
     29 rtc_library("frame_instrumentation_data_reader") {
     30   visibility = [ "*" ]
     31   sources = [
     32     "frame_instrumentation_data_reader.cc",
     33     "frame_instrumentation_data_reader.h",
     34   ]
     35 
     36   deps = [
     37     ":frame_instrumentation_data",
     38     "../../:array_view",
     39     "../../../rtc_base:checks",
     40     "../../../rtc_base:logging",
     41     "../../transport/rtp:corruption_detection_message",
     42   ]
     43 }
     44 
     45 rtc_library("frame_instrumentation_evaluation") {
     46   visibility = [ "*" ]
     47   sources = [
     48     "frame_instrumentation_evaluation.cc",
     49     "frame_instrumentation_evaluation.h",
     50   ]
     51   deps = [
     52     ":frame_instrumentation_data",
     53     "../:video_frame",
     54     "../:video_rtp_headers",
     55     "../../:array_view",
     56     "../../:scoped_refptr",
     57     "../../../rtc_base:checks",
     58     "../../../rtc_base:logging",
     59     "../../../video/corruption_detection:corruption_classifier",
     60     "../../../video/corruption_detection:halton_frame_sampler",
     61   ]
     62 }
     63 
     64 rtc_library("frame_instrumentation_generator") {
     65   visibility = [ "*" ]
     66   sources = [
     67     "frame_instrumentation_generator.cc",
     68     "frame_instrumentation_generator.h",
     69   ]
     70   deps = [
     71     ":filter_settings",
     72     ":frame_instrumentation_data",
     73     "../:encoded_image",
     74     "../:video_frame",
     75     "../:video_frame_type",
     76     "../../../modules:module_api_public",
     77     "../../../modules/video_coding:video_coding_utility",
     78     "../../../rtc_base:checks",
     79     "../../../rtc_base:logging",
     80     "../../../rtc_base:macromagic",
     81     "../../../rtc_base/synchronization:mutex",
     82     "../../../video/corruption_detection:generic_mapping_functions",
     83     "../../../video/corruption_detection:halton_frame_sampler",
     84     "../../../video/corruption_detection:utils",
     85     "../../video_codecs:video_codecs_api",
     86     "//third_party/abseil-cpp/absl/algorithm:container",
     87   ]
     88 }
     89 
     90 if (rtc_include_tests) {
     91   rtc_library("frame_instrumentation_data_unittest") {
     92     testonly = true
     93     sources = [ "frame_instrumentation_data_unittest.cc" ]
     94 
     95     deps = [
     96       ":frame_instrumentation_data",
     97       "../../../test:test_support",
     98     ]
     99   }
    100 
    101   rtc_library("frame_instrumentation_data_reader_unittest") {
    102     testonly = true
    103     sources = [ "frame_instrumentation_data_reader_unittest.cc" ]
    104 
    105     deps = [
    106       ":frame_instrumentation_data",
    107       ":frame_instrumentation_data_reader",
    108       "../../../test:test_support",
    109       "../../transport/rtp:corruption_detection_message",
    110     ]
    111   }
    112 
    113   rtc_library("frame_instrumentation_evaluation_unittest") {
    114     testonly = true
    115     sources = [ "frame_instrumentation_evaluation_unittest.cc" ]
    116     deps = [
    117       ":frame_instrumentation_data",
    118       ":frame_instrumentation_evaluation",
    119       "../:video_frame",
    120       "../:video_rtp_headers",
    121       "../../:scoped_refptr",
    122       "../../../test:test_support",
    123     ]
    124   }
    125 
    126   rtc_library("frame_instrumentation_generator_unittest") {
    127     testonly = true
    128     sources = [ "frame_instrumentation_generator_unittest.cc" ]
    129     deps = [
    130       ":filter_settings",
    131       ":frame_instrumentation_data",
    132       ":frame_instrumentation_generator",
    133       "../:encoded_image",
    134       "../:video_frame",
    135       "../:video_frame_type",
    136       "../../../api:make_ref_counted",
    137       "../../../api:scoped_refptr",
    138       "../../../rtc_base:refcount",
    139       "../../../test:test_support",
    140       "../../../video/corruption_detection:utils",
    141     ]
    142   }
    143 }