| OLD | NEW |
| 1 # Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license | 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 | 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 | 5 # tree. An additional intellectual property rights grant can be found |
| 6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
| 7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
| 8 | 8 |
| 9 import("../build/webrtc.gni") | 9 import("../build/webrtc.gni") |
| 10 | 10 |
| 11 rtc_static_library("audio") { | 11 rtc_static_library("audio") { |
| 12 sources = [ | 12 sources = [ |
| 13 "audio_receive_stream.cc", | 13 "audio_receive_stream.cc", |
| 14 "audio_receive_stream.h", | 14 "audio_receive_stream.h", |
| 15 "audio_send_stream.cc", | 15 "audio_send_stream.cc", |
| 16 "audio_send_stream.h", | 16 "audio_send_stream.h", |
| 17 "audio_state.cc", | 17 "audio_state.cc", |
| 18 "audio_state.h", | 18 "audio_state.h", |
| 19 "conversion.h", | 19 "conversion.h", |
| 20 "scoped_voe_interface.h", | 20 "scoped_voe_interface.h", |
| 21 ] | 21 ] |
| 22 | 22 |
| 23 if (!build_with_chromium && is_clang) { | 23 if (!build_with_chromium && is_clang) { |
| 24 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 24 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 25 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 25 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 26 } | 26 } |
| 27 | 27 |
| 28 deps = [ | 28 deps = [ |
| 29 "..:webrtc_common", | 29 "..:webrtc_common", |
| 30 "../api:audio_mixer_api", |
| 30 "../api:call_api", | 31 "../api:call_api", |
| 31 "../system_wrappers", | 32 "../system_wrappers", |
| 32 "../voice_engine", | 33 "../voice_engine", |
| 33 ] | 34 ] |
| 34 } | 35 } |
| 35 if (rtc_include_tests) { | 36 if (rtc_include_tests) { |
| 36 rtc_source_set("audio_tests") { | 37 rtc_source_set("audio_tests") { |
| 37 testonly = true | 38 testonly = true |
| 38 sources = [ | 39 sources = [ |
| 39 "audio_receive_stream_unittest.cc", | 40 "audio_receive_stream_unittest.cc", |
| 40 "audio_send_stream_unittest.cc", | 41 "audio_send_stream_unittest.cc", |
| 41 "audio_state_unittest.cc", | 42 "audio_state_unittest.cc", |
| 42 ] | 43 ] |
| 43 deps = [ | 44 deps = [ |
| 44 ":audio", | 45 ":audio", |
| 45 "//testing/gmock", | 46 "//testing/gmock", |
| 46 "//testing/gtest", | 47 "//testing/gtest", |
| 47 ] | 48 ] |
| 48 if (!build_with_chromium && is_clang) { | 49 if (!build_with_chromium && is_clang) { |
| 49 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 50 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 50 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 51 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 51 } | 52 } |
| 52 } | 53 } |
| 53 } | 54 } |
| OLD | NEW |