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 source_set("audio") { | 11 rtc_source_set("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 configs += [ "..:common_config" ] | 23 configs += [ "..:common_config" ] |
24 public_configs = [ "..:common_inherited_config" ] | 24 public_configs = [ "..:common_inherited_config" ] |
25 | 25 |
26 if (is_clang) { | 26 if (is_clang) { |
27 # Suppress warnings from Chrome's Clang plugins. | 27 # Suppress warnings from Chrome's Clang plugins. |
28 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 28 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
29 configs -= [ "//build/config/clang:find_bad_constructs" ] | 29 configs_suppressions += [ "//build/config/clang:find_bad_constructs" ] |
30 } | 30 } |
31 | 31 |
32 deps = [ | 32 deps = [ |
33 "..:webrtc_common", | 33 "..:webrtc_common", |
34 "../api:call_api", | 34 "../api:call_api", |
35 "../system_wrappers", | 35 "../system_wrappers", |
36 "../voice_engine", | 36 "../voice_engine", |
37 ] | 37 ] |
38 } | 38 } |
39 if (rtc_include_tests) { | 39 if (rtc_include_tests) { |
40 source_set("audio_tests") { | 40 rtc_source_set("audio_tests") { |
41 testonly = true | 41 testonly = true |
42 sources = [ | 42 sources = [ |
43 "audio_receive_stream_unittest.cc", | 43 "audio_receive_stream_unittest.cc", |
44 "audio_send_stream_unittest.cc", | 44 "audio_send_stream_unittest.cc", |
45 "audio_state_unittest.cc", | 45 "audio_state_unittest.cc", |
46 ] | 46 ] |
47 deps = [ | 47 deps = [ |
48 ":audio", | 48 ":audio", |
49 "//testing/gmock", | 49 "//testing/gmock", |
50 "//testing/gtest", | 50 "//testing/gtest", |
51 ] | 51 ] |
52 if (is_clang) { | 52 if (is_clang) { |
53 # Suppress warnings from the Chromium Clang plugin. | 53 # Suppress warnings from the Chromium Clang plugin. |
54 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 54 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
55 configs -= [ "//build/config/clang:find_bad_constructs" ] | 55 configs_suppressions += [ "//build/config/clang:find_bad_constructs" ] |
56 } | 56 } |
57 } | 57 } |
58 } | 58 } |
OLD | NEW |