OLD | NEW |
---|---|
1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2014 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 import("//testing/test.gni") | 10 import("//testing/test.gni") |
11 | 11 |
12 source_set("audio_coder") { | |
13 sources = [ | |
14 "coder.cc", | |
15 "coder.h", | |
16 ] | |
17 configs += [ "..:common_config" ] | |
18 public_configs = [ "..:common_inherited_config" ] | |
19 deps = [ | |
20 "../modules/audio_coding:audio_coding", | |
21 "../modules/audio_coding:builtin_audio_decoder_factory", | |
22 "../modules/audio_coding:rent_a_codec", | |
23 "..:webrtc_common", | |
24 ] | |
25 | |
26 if (is_clang) { | |
27 # Suppress warnings from Chrome's Clang plugins. | |
28 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | |
29 configs -= [ "//build/config/clang:find_bad_constructs" ] | |
30 } | |
31 } | |
32 | |
33 source_set("file_player") { | |
34 sources = [ | |
35 "file_player.h", | |
36 "file_player_impl.cc", | |
37 "file_player_impl.h", | |
38 ] | |
39 configs += [ "..:common_config" ] | |
40 public_configs = [ "..:common_inherited_config" ] | |
41 deps = [ | |
42 "../common_audio:common_audio", | |
43 "../modules/media_file:media_file", | |
44 "../system_wrappers:system_wrappers", | |
45 "..:webrtc_common", | |
46 ":audio_coder", | |
47 ] | |
48 | |
49 if (is_clang) { | |
50 # Suppress warnings from Chrome's Clang plugins. | |
51 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | |
52 configs -= [ "//build/config/clang:find_bad_constructs" ] | |
kjellander_webrtc
2016/08/15 11:22:27
It would be great if these warnings could be fixed
kwiberg-webrtc
2016/08/15 11:26:32
This is CL ~#3 of a series of ~7 that cleans these
| |
53 } | |
54 } | |
55 | |
56 source_set("file_recorder") { | |
57 sources = [ | |
58 "file_recorder.h", | |
59 "file_recorder_impl.cc", | |
60 "file_recorder_impl.h", | |
61 ] | |
62 configs += [ "..:common_config" ] | |
63 public_configs = [ "..:common_inherited_config" ] | |
64 deps = [ | |
65 "../base:rtc_base_approved", | |
66 "../common_audio:common_audio", | |
67 "../modules/media_file:media_file", | |
68 "../system_wrappers:system_wrappers", | |
69 "..:webrtc_common", | |
70 ":audio_coder", | |
71 ] | |
72 | |
73 if (is_clang) { | |
74 # Suppress warnings from Chrome's Clang plugins. | |
75 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | |
76 configs -= [ "//build/config/clang:find_bad_constructs" ] | |
77 } | |
78 } | |
79 | |
12 source_set("voice_engine") { | 80 source_set("voice_engine") { |
13 sources = [ | 81 sources = [ |
14 "channel.cc", | 82 "channel.cc", |
15 "channel.h", | 83 "channel.h", |
16 "channel_manager.cc", | 84 "channel_manager.cc", |
17 "channel_manager.h", | 85 "channel_manager.h", |
18 "channel_proxy.cc", | 86 "channel_proxy.cc", |
19 "channel_proxy.h", | 87 "channel_proxy.h", |
20 "include/voe_audio_processing.h", | 88 "include/voe_audio_processing.h", |
21 "include/voe_base.h", | 89 "include/voe_base.h", |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
82 configs += [ "..:common_config" ] | 150 configs += [ "..:common_config" ] |
83 public_configs = [ "..:common_inherited_config" ] | 151 public_configs = [ "..:common_inherited_config" ] |
84 | 152 |
85 if (is_clang) { | 153 if (is_clang) { |
86 # Suppress warnings from Chrome's Clang plugins. | 154 # Suppress warnings from Chrome's Clang plugins. |
87 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 155 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
88 configs -= [ "//build/config/clang:find_bad_constructs" ] | 156 configs -= [ "//build/config/clang:find_bad_constructs" ] |
89 } | 157 } |
90 | 158 |
91 deps = [ | 159 deps = [ |
160 ":file_player", | |
161 ":file_recorder", | |
92 ":level_indicator", | 162 ":level_indicator", |
93 "..:rtc_event_log", | 163 "..:rtc_event_log", |
94 "..:webrtc_common", | 164 "..:webrtc_common", |
95 "../base:rtc_base_approved", | 165 "../base:rtc_base_approved", |
96 "../common_audio", | 166 "../common_audio", |
97 "../modules/audio_coding", | 167 "../modules/audio_coding", |
98 "../modules/audio_conference_mixer", | 168 "../modules/audio_conference_mixer", |
99 "../modules/audio_device", | 169 "../modules/audio_device", |
100 "../modules/audio_processing", | 170 "../modules/audio_processing", |
101 "../modules/bitrate_controller", | 171 "../modules/bitrate_controller", |
(...skipping 20 matching lines...) Expand all Loading... | |
122 "../common_audio", | 192 "../common_audio", |
123 ] | 193 ] |
124 } | 194 } |
125 | 195 |
126 if (rtc_include_tests) { | 196 if (rtc_include_tests) { |
127 test("voice_engine_unittests") { | 197 test("voice_engine_unittests") { |
128 deps = [ | 198 deps = [ |
129 ":voice_engine", | 199 ":voice_engine", |
130 "//testing/gmock", | 200 "//testing/gmock", |
131 "//testing/gtest", | 201 "//testing/gtest", |
202 "//third_party/gflags", | |
132 "//webrtc/common_audio", | 203 "//webrtc/common_audio", |
133 "//webrtc/modules/audio_coding", | 204 "//webrtc/modules/audio_coding", |
134 "//webrtc/modules/audio_conference_mixer", | 205 "//webrtc/modules/audio_conference_mixer", |
135 "//webrtc/modules/audio_device", | 206 "//webrtc/modules/audio_device", |
136 "//webrtc/modules/audio_processing", | 207 "//webrtc/modules/audio_processing", |
137 "//webrtc/modules/media_file", | 208 "//webrtc/modules/media_file", |
138 "//webrtc/modules/rtp_rtcp", | 209 "//webrtc/modules/rtp_rtcp", |
139 "//webrtc/modules/utility", | 210 "//webrtc/modules/utility", |
140 "//webrtc/system_wrappers", | 211 "//webrtc/system_wrappers", |
141 "//webrtc/test:test_support_main", | 212 "//webrtc/test:test_support_main", |
142 ] | 213 ] |
143 | 214 |
144 if (is_android) { | 215 if (is_android) { |
145 deps += [ "//testing/android/native_test:native_test_native_code" ] | 216 deps += [ "//testing/android/native_test:native_test_native_code" ] |
217 data = [ | |
218 "//resources/utility/encapsulated_pcm16b_8khz.wav", | |
219 "//resources/utility/encapsulated_pcmu_8khz.wav", | |
220 ] | |
146 } | 221 } |
147 | 222 |
148 sources = [ | 223 sources = [ |
149 "channel_unittest.cc", | 224 "channel_unittest.cc", |
225 "file_player_unittests.cc", | |
150 "network_predictor_unittest.cc", | 226 "network_predictor_unittest.cc", |
151 "transmit_mixer_unittest.cc", | 227 "transmit_mixer_unittest.cc", |
152 "utility_unittest.cc", | 228 "utility_unittest.cc", |
153 "voe_audio_processing_unittest.cc", | 229 "voe_audio_processing_unittest.cc", |
154 "voe_base_unittest.cc", | 230 "voe_base_unittest.cc", |
155 "voe_codec_unittest.cc", | 231 "voe_codec_unittest.cc", |
156 "voe_network_unittest.cc", | 232 "voe_network_unittest.cc", |
157 "voice_engine_fixture.cc", | 233 "voice_engine_fixture.cc", |
158 "voice_engine_fixture.h", | 234 "voice_engine_fixture.h", |
159 ] | 235 ] |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
261 } | 337 } |
262 | 338 |
263 if (is_clang) { | 339 if (is_clang) { |
264 # Suppress warnings from Chrome's Clang plugins. | 340 # Suppress warnings from Chrome's Clang plugins. |
265 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 341 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
266 configs -= [ "//build/config/clang:find_bad_constructs" ] | 342 configs -= [ "//build/config/clang:find_bad_constructs" ] |
267 } | 343 } |
268 } | 344 } |
269 } | 345 } |
270 } | 346 } |
OLD | NEW |