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("../../webrtc.gni") | 9 import("../../webrtc.gni") |
10 | 10 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 ] | 44 ] |
45 } | 45 } |
46 } | 46 } |
47 | 47 |
48 rtc_static_library("audio_device") { | 48 rtc_static_library("audio_device") { |
49 public_configs = [ ":audio_device_config" ] | 49 public_configs = [ ":audio_device_config" ] |
50 | 50 |
51 deps = [ | 51 deps = [ |
52 "..:module_api", | 52 "..:module_api", |
53 "../..:webrtc_common", | 53 "../..:webrtc_common", |
| 54 "../../base:rtc_base_approved", |
| 55 "../../base:rtc_task_queue", |
54 "../../common_audio", | 56 "../../common_audio", |
55 "../../rtc_base:rtc_base_approved", | |
56 "../../rtc_base:rtc_task_queue", | |
57 "../../system_wrappers", | 57 "../../system_wrappers", |
58 "../utility", | 58 "../utility", |
59 ] | 59 ] |
60 | 60 |
61 sources = [ | 61 sources = [ |
62 "audio_device_buffer.cc", | 62 "audio_device_buffer.cc", |
63 "audio_device_buffer.h", | 63 "audio_device_buffer.h", |
64 "audio_device_config.h", | 64 "audio_device_config.h", |
65 "audio_device_generic.cc", | 65 "audio_device_generic.cc", |
66 "audio_device_generic.h", | 66 "audio_device_generic.h", |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 | 170 |
171 "AudioToolbox.framework", | 171 "AudioToolbox.framework", |
172 "CoreAudio.framework", | 172 "CoreAudio.framework", |
173 | 173 |
174 # Needed for CGEventSourceKeyState in audio_device_mac.cc: | 174 # Needed for CGEventSourceKeyState in audio_device_mac.cc: |
175 "CoreGraphics.framework", | 175 "CoreGraphics.framework", |
176 ] | 176 ] |
177 } | 177 } |
178 if (is_ios) { | 178 if (is_ios) { |
179 public_deps = [ | 179 public_deps = [ |
180 "../../rtc_base:gtest_prod", | 180 "../../base:gtest_prod", |
181 "../../rtc_base:rtc_base", | 181 "../../base:rtc_base", |
182 "../../sdk:objc_audio", | 182 "../../sdk:objc_audio", |
183 "../../sdk:objc_common", | 183 "../../sdk:objc_common", |
184 ] | 184 ] |
185 sources += [ | 185 sources += [ |
186 "ios/audio_device_ios.h", | 186 "ios/audio_device_ios.h", |
187 "ios/audio_device_ios.mm", | 187 "ios/audio_device_ios.mm", |
188 "ios/audio_device_not_implemented_ios.mm", | 188 "ios/audio_device_not_implemented_ios.mm", |
189 "ios/audio_session_observer.h", | 189 "ios/audio_session_observer.h", |
190 "ios/objc/RTCAudioSessionDelegateAdapter.h", | 190 "ios/objc/RTCAudioSessionDelegateAdapter.h", |
191 "ios/objc/RTCAudioSessionDelegateAdapter.mm", | 191 "ios/objc/RTCAudioSessionDelegateAdapter.mm", |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 # cover (which would be confusing to read and hard to maintain). | 274 # cover (which would be confusing to read and hard to maintain). |
275 if (!is_android && !is_ios) { | 275 if (!is_android && !is_ios) { |
276 visibility = [ "//webrtc/modules:modules_unittests" ] | 276 visibility = [ "//webrtc/modules:modules_unittests" ] |
277 } | 277 } |
278 sources = [ | 278 sources = [ |
279 "fine_audio_buffer_unittest.cc", | 279 "fine_audio_buffer_unittest.cc", |
280 ] | 280 ] |
281 deps = [ | 281 deps = [ |
282 ":audio_device", | 282 ":audio_device", |
283 ":mock_audio_device", | 283 ":mock_audio_device", |
284 "../../rtc_base:rtc_base_approved", | 284 "../../base:rtc_base_approved", |
285 "../../system_wrappers:system_wrappers", | 285 "../../system_wrappers:system_wrappers", |
286 "../../test:test_support", | 286 "../../test:test_support", |
287 "../utility:utility", | 287 "../utility:utility", |
288 "//testing/gmock", | 288 "//testing/gmock", |
289 ] | 289 ] |
290 if (is_linux || is_mac || is_win) { | 290 if (is_linux || is_mac || is_win) { |
291 sources += [ "audio_device_unittest.cc" ] | 291 sources += [ "audio_device_unittest.cc" ] |
292 } | 292 } |
293 if (is_android) { | 293 if (is_android) { |
294 # Need to disable error due to the line in | 294 # Need to disable error due to the line in |
(...skipping 29 matching lines...) Expand all Loading... |
324 # https://bugs.chromium.org/p/webrtc/issues/detail?id=4755 | 324 # https://bugs.chromium.org/p/webrtc/issues/detail?id=4755 |
325 rtc_executable("audio_device_tests") { | 325 rtc_executable("audio_device_tests") { |
326 testonly = true | 326 testonly = true |
327 sources = [ | 327 sources = [ |
328 "test/audio_device_test_api.cc", | 328 "test/audio_device_test_api.cc", |
329 "test/audio_device_test_defines.h", | 329 "test/audio_device_test_defines.h", |
330 ] | 330 ] |
331 deps = [ | 331 deps = [ |
332 ":audio_device", | 332 ":audio_device", |
333 "../..:webrtc_common", | 333 "../..:webrtc_common", |
334 "../../rtc_base:rtc_base_approved", | 334 "../../base:rtc_base_approved", |
335 "../../system_wrappers", | 335 "../../system_wrappers", |
336 "../../test:test_main", | 336 "../../test:test_main", |
337 "../../test:test_support", | 337 "../../test:test_support", |
338 "../rtp_rtcp", | 338 "../rtp_rtcp", |
339 "../utility", | 339 "../utility", |
340 "//testing/gtest", | 340 "//testing/gtest", |
341 ] | 341 ] |
342 public_configs = [ ":audio_device_config" ] | 342 public_configs = [ ":audio_device_config" ] |
343 } | 343 } |
344 } | 344 } |
345 } | 345 } |
346 | 346 |
347 if (!build_with_chromium && is_android) { | 347 if (!build_with_chromium && is_android) { |
348 android_library("audio_device_java") { | 348 android_library("audio_device_java") { |
349 java_files = [ | 349 java_files = [ |
350 "android/java/src/org/webrtc/voiceengine/BuildInfo.java", | 350 "android/java/src/org/webrtc/voiceengine/BuildInfo.java", |
351 "android/java/src/org/webrtc/voiceengine/WebRtcAudioEffects.java", | 351 "android/java/src/org/webrtc/voiceengine/WebRtcAudioEffects.java", |
352 "android/java/src/org/webrtc/voiceengine/WebRtcAudioManager.java", | 352 "android/java/src/org/webrtc/voiceengine/WebRtcAudioManager.java", |
353 "android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java", | 353 "android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java", |
354 "android/java/src/org/webrtc/voiceengine/WebRtcAudioTrack.java", | 354 "android/java/src/org/webrtc/voiceengine/WebRtcAudioTrack.java", |
355 "android/java/src/org/webrtc/voiceengine/WebRtcAudioUtils.java", | 355 "android/java/src/org/webrtc/voiceengine/WebRtcAudioUtils.java", |
356 ] | 356 ] |
357 deps = [ | 357 deps = [ |
358 "//webrtc/rtc_base:base_java", | 358 "//webrtc/rtc_base:base_java", |
359 ] | 359 ] |
360 } | 360 } |
361 } | 361 } |
OLD | NEW |