tor-browser

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

BUILD.gn (3560B)


      1 # Copyright (c) 2017 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")  # This contains def of 'rtc_enable_protobuf'
     10 
     11 rtc_source_set("aec_dump") {
     12   visibility = [ "*" ]
     13   sources = [ "aec_dump_factory.h" ]
     14 
     15   deps = [
     16     "..:aec_dump_interface",
     17     "../../../api/task_queue",
     18     "../../../rtc_base/system:file_wrapper",
     19     "../../../rtc_base/system:rtc_export",
     20     "//third_party/abseil-cpp/absl/base:nullability",
     21     "//third_party/abseil-cpp/absl/strings:string_view",
     22   ]
     23 }
     24 
     25 if (rtc_include_tests) {
     26   rtc_library("mock_aec_dump") {
     27     testonly = true
     28     sources = [
     29       "mock_aec_dump.cc",
     30       "mock_aec_dump.h",
     31     ]
     32 
     33     deps = [
     34       "..:aec_dump_interface",
     35       "..:audio_frame_view",
     36       "..:audioproc_test_utils",
     37       "../",
     38       "../../../api/audio:audio_frame_api",
     39       "../../../api/audio:audio_processing",
     40       "../../../test:test_support",
     41     ]
     42   }
     43 
     44   rtc_library("mock_aec_dump_unittests") {
     45     testonly = true
     46     configs += [ "..:apm_debug_dump" ]
     47     sources = [ "aec_dump_integration_test.cc" ]
     48 
     49     deps = [
     50       ":mock_aec_dump",
     51       "..:audioproc_test_utils",
     52       "../",
     53       "../../../api:scoped_refptr",
     54       "../../../api/audio:audio_processing",
     55       "../../../api/audio:builtin_audio_processing_builder",
     56       "../../../api/environment:environment_factory",
     57       "../../../rtc_base:checks",
     58       "../../../test:test_support",
     59       "//testing/gtest",
     60     ]
     61   }
     62 }
     63 
     64 if (rtc_enable_protobuf) {
     65   rtc_library("aec_dump_impl") {
     66     sources = [
     67       "aec_dump_impl.cc",
     68       "aec_dump_impl.h",
     69       "capture_stream_info.cc",
     70       "capture_stream_info.h",
     71     ]
     72 
     73     deps = [
     74       ":aec_dump",
     75       "..:aec_dump_interface",
     76       "..:audio_frame_view",
     77       "../../../api/audio:audio_frame_api",
     78       "../../../api/audio:audio_processing",
     79       "../../../api/task_queue",
     80       "../../../rtc_base:checks",
     81       "../../../rtc_base:logging",
     82       "../../../rtc_base:macromagic",
     83       "../../../rtc_base:protobuf_utils",
     84       "../../../rtc_base:race_checker",
     85       "../../../rtc_base:rtc_event",
     86       "../../../rtc_base/system:file_wrapper",
     87       "../../../system_wrappers",
     88       "//third_party/abseil-cpp/absl/base:nullability",
     89       "//third_party/abseil-cpp/absl/strings:string_view",
     90     ]
     91 
     92     deps += [ "../:audioproc_debug_proto" ]
     93   }
     94 
     95   if (rtc_include_tests) {
     96     rtc_library("aec_dump_unittests") {
     97       testonly = true
     98       defines = []
     99       deps = [
    100         ":aec_dump",
    101         ":aec_dump_impl",
    102         "..:aec_dump_interface",
    103         "..:audioproc_debug_proto",
    104         "../",
    105         "../../../api/audio:audio_processing",
    106         "../../../rtc_base:task_queue_for_test",
    107         "../../../test:fileutils",
    108         "../../../test:test_support",
    109         "//testing/gtest",
    110       ]
    111       sources = [ "aec_dump_unittest.cc" ]
    112     }
    113   }
    114 }
    115 
    116 rtc_library("null_aec_dump_factory") {
    117   assert_no_deps = [ ":aec_dump_impl" ]
    118   sources = [ "null_aec_dump_factory.cc" ]
    119 
    120   deps = [
    121     ":aec_dump",
    122     "..:aec_dump_interface",
    123     "../../../api/task_queue",
    124     "../../../rtc_base/system:file_wrapper",
    125     "//third_party/abseil-cpp/absl/base:nullability",
    126     "//third_party/abseil-cpp/absl/strings:string_view",
    127   ]
    128 }