| OLD | NEW |
| (Empty) |
| 1 # Copyright (c) 2014 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 config("audio_conference_mixer_config") { | |
| 12 visibility = [ ":*" ] # Only targets in this file can depend on this. | |
| 13 include_dirs = [ | |
| 14 "include", | |
| 15 "../include", | |
| 16 ] | |
| 17 } | |
| 18 | |
| 19 rtc_static_library("audio_conference_mixer") { | |
| 20 sources = [ | |
| 21 "include/audio_conference_mixer.h", | |
| 22 "include/audio_conference_mixer_defines.h", | |
| 23 "source/audio_conference_mixer_impl.cc", | |
| 24 "source/audio_conference_mixer_impl.h", | |
| 25 "source/audio_frame_manipulator.cc", | |
| 26 "source/audio_frame_manipulator.h", | |
| 27 "source/memory_pool.h", | |
| 28 "source/memory_pool_posix.h", | |
| 29 "source/memory_pool_win.h", | |
| 30 "source/time_scheduler.cc", | |
| 31 "source/time_scheduler.h", | |
| 32 ] | |
| 33 | |
| 34 public_configs = [ ":audio_conference_mixer_config" ] | |
| 35 | |
| 36 if (!build_with_chromium && is_clang) { | |
| 37 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | |
| 38 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | |
| 39 } | |
| 40 | |
| 41 deps = [ | |
| 42 "..:module_api", | |
| 43 "../..:webrtc_common", | |
| 44 "../../audio/utility:audio_frame_operations", | |
| 45 "../../rtc_base:rtc_base_approved", | |
| 46 "../../system_wrappers", | |
| 47 "../audio_processing", | |
| 48 ] | |
| 49 } | |
| 50 | |
| 51 if (rtc_include_tests) { | |
| 52 rtc_source_set("audio_conference_mixer_unittests") { | |
| 53 testonly = true | |
| 54 | |
| 55 # Skip restricting visibility on mobile platforms since the tests on those | |
| 56 # gets additional generated targets which would require many lines here to | |
| 57 # cover (which would be confusing to read and hard to maintain). | |
| 58 if (!is_android && !is_ios) { | |
| 59 visibility = [ "..:modules_unittests" ] | |
| 60 } | |
| 61 sources = [ | |
| 62 "test/audio_conference_mixer_unittest.cc", | |
| 63 ] | |
| 64 deps = [ | |
| 65 ":audio_conference_mixer", | |
| 66 "../../test:test_support", | |
| 67 "//testing/gmock", | |
| 68 ] | |
| 69 if (is_win) { | |
| 70 cflags = [ | |
| 71 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning. | |
| 72 "/wd4373", # virtual function override. | |
| 73 ] | |
| 74 } | |
| 75 if (!build_with_chromium && is_clang) { | |
| 76 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | |
| 77 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | |
| 78 } | |
| 79 } | |
| 80 } | |
| OLD | NEW |