blob: 6f0aeb5e1bc28bd1c5202abc8604eadc563f6d8d [file] [log] [blame]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001# 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
mbonadei9aa3f0a2017-01-24 06:58:22 -08009import("../../webrtc.gni")
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000010
mbonadei438062b2017-01-09 02:37:21 -080011if (is_android) {
12 import("//build/config/android/config.gni")
13 import("//build/config/android/rules.gni")
14}
15
kjellander@webrtc.orgc4870bb2014-09-01 04:24:11 +000016config("audio_device_config") {
17 include_dirs = [
Henrik Kjellanderff761fb2015-11-04 08:31:52 +010018 "../include",
kjellander@webrtc.orgc4870bb2014-09-01 04:24:11 +000019 "include",
20 "dummy", # Contains dummy audio device implementations.
21 ]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000022}
kjellander@webrtc.orgc4870bb2014-09-01 04:24:11 +000023
ehmaldonadod02fe4b2016-08-26 13:31:24 -070024config("audio_device_warnings_config") {
25 if (is_win && is_clang) {
26 cflags = [
27 # Disable warnings failing when compiling with Clang on Windows.
28 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
29 "-Wno-bool-conversion",
30 "-Wno-delete-non-virtual-dtor",
31 "-Wno-logical-op-parentheses",
32 "-Wno-microsoft-extra-qualification",
33 "-Wno-microsoft-goto",
ehmaldonadod02fe4b2016-08-26 13:31:24 -070034 "-Wno-reorder",
35 "-Wno-shift-overflow",
ehmaldonadod02fe4b2016-08-26 13:31:24 -070036 ]
37 }
38}
39
mbonadeibcc21762017-09-12 04:45:24 -070040rtc_source_set("audio_device") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000041 visibility = [ "*" ]
mbonadeibcc21762017-09-12 04:45:24 -070042 public_deps = [
Paulina Hensman7bd79a02018-03-15 12:44:12 +010043 ":audio_device_api",
44
45 # Deprecated.
46 # TODO(webrtc:7452): Remove this public dep. audio_device_impl should
47 # be depended on directly if needed.
48 ":audio_device_impl",
mbonadeibcc21762017-09-12 04:45:24 -070049 ]
mbonadeibcc21762017-09-12 04:45:24 -070050}
51
52if (rtc_include_internal_audio_device && is_ios) {
53 rtc_source_set("audio_device_ios_objc") {
Paulina Hensman7bd79a02018-03-15 12:44:12 +010054 visibility = [
55 ":audio_device_impl",
56 ":audio_device_ios_objc_unittests",
57 ]
mbonadeibcc21762017-09-12 04:45:24 -070058 sources = [
59 "ios/audio_device_ios.h",
60 "ios/audio_device_ios.mm",
61 "ios/audio_device_not_implemented_ios.mm",
62 "ios/audio_session_observer.h",
Patrik Höglund6d3ed712018-01-05 11:51:05 +010063 "ios/objc/RTCAudioSession.h",
64 "ios/objc/RTCAudioSessionConfiguration.h",
mbonadeibcc21762017-09-12 04:45:24 -070065 "ios/objc/RTCAudioSessionDelegateAdapter.h",
66 "ios/objc/RTCAudioSessionDelegateAdapter.mm",
67 "ios/voice_processing_audio_unit.h",
68 "ios/voice_processing_audio_unit.mm",
69 ]
70 libs = [
71 "AudioToolbox.framework",
72 "AVFoundation.framework",
73 "Foundation.framework",
74 "UIKit.framework",
75 ]
76 deps = [
Paulina Hensman7bd79a02018-03-15 12:44:12 +010077 ":audio_device_api",
78 ":audio_device_buffer",
mbonadeibcc21762017-09-12 04:45:24 -070079 ":audio_device_generic",
80 "../../api:array_view",
Patrik Höglunda8005cf2017-12-13 16:05:42 +010081 "../../rtc_base:checks",
mbonadeibcc21762017-09-12 04:45:24 -070082 "../../rtc_base:gtest_prod",
83 "../../rtc_base:rtc_base",
Karl Wiberg80ba3332018-02-05 10:33:35 +010084 "../../rtc_base/system:fallthrough",
mbonadeibcc21762017-09-12 04:45:24 -070085 "../../sdk:audio_objc",
86 "../../sdk:common_objc",
87 "../../system_wrappers:metrics_api",
88 ]
89 if (!build_with_chromium && is_clang) {
90 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
91 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
92 }
93 }
94}
95
Paulina Hensman7bd79a02018-03-15 12:44:12 +010096rtc_source_set("audio_device_api") {
Peter Hanspers43619a42018-05-14 10:41:10 +000097 visibility = [
98 ":audio_device",
99 ":audio_device_buffer",
100 ":audio_device_impl",
101 ":audio_device_ios_objc",
102 ":audio_device_generic",
103 ]
Paulina Hensman7bd79a02018-03-15 12:44:12 +0100104 sources = [
105 "include/audio_device.h",
106 "include/audio_device_defines.h",
107 ]
108 deps = [
109 "../../:typedefs",
110 "../../rtc_base:checks",
111 "../../rtc_base:deprecation",
112 "../../rtc_base:rtc_base_approved",
henrika883d00f2018-03-16 10:09:49 +0100113 "../../rtc_base:stringutils",
Paulina Hensman7bd79a02018-03-15 12:44:12 +0100114 ]
115 if (!build_with_chromium && is_clang) {
116 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
117 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
118 }
119}
120
121rtc_source_set("audio_device_buffer") {
122 sources = [
123 "audio_device_buffer.cc",
124 "audio_device_buffer.h",
125 "audio_device_config.h",
126 "fine_audio_buffer.cc",
127 "fine_audio_buffer.h",
128 ]
129 deps = [
130 ":audio_device_api",
131 "../../:typedefs",
132 "../../api:array_view",
133 "../../common_audio:common_audio_c",
134 "../../rtc_base:checks",
135 "../../rtc_base:rtc_base_approved",
136 "../../rtc_base:rtc_task_queue",
137 "../../system_wrappers",
138 "../../system_wrappers:metrics_api",
139 ]
140 if (!build_with_chromium && is_clang) {
141 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
142 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
143 }
144}
145
146rtc_source_set("audio_device_generic") {
147 sources = [
148 "audio_device_generic.cc",
149 "audio_device_generic.h",
150 ]
151 deps = [
152 ":audio_device_api",
153 ":audio_device_buffer",
154 "../../rtc_base:rtc_base_approved",
155 ]
156 if (!build_with_chromium && is_clang) {
157 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
158 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
159 }
160}
161
162# Contains default implementations of webrtc::AudioDeviceModule for Windows,
163# Linux, Mac, iOS and Android.
164rtc_source_set("audio_device_impl") {
165 visibility = [ "*" ]
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700166 public_configs = [ ":audio_device_config" ]
ehmaldonadod02fe4b2016-08-26 13:31:24 -0700167
Zeke Chinb3fb71c2016-02-18 15:44:07 -0800168 deps = [
Paulina Hensman7bd79a02018-03-15 12:44:12 +0100169 ":audio_device_api",
170 ":audio_device_buffer",
171 ":audio_device_generic",
Zeke Chinb3fb71c2016-02-18 15:44:07 -0800172 "../..:webrtc_common",
Patrik Höglund3e113432017-12-15 14:40:10 +0100173 "../../:typedefs",
kwiberg529662a2017-09-04 05:43:17 -0700174 "../../api:array_view",
Zeke Chinb3fb71c2016-02-18 15:44:07 -0800175 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100176 "../../common_audio:common_audio_c",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100177 "../../rtc_base:checks",
Fredrik Solenberg2a877972017-12-15 16:42:15 +0100178 "../../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700179 "../../rtc_base:rtc_base_approved",
180 "../../rtc_base:rtc_task_queue",
Karl Wiberg6a4d4112018-03-23 10:39:34 +0100181 "../../rtc_base/system:file_wrapper",
Zeke Chinb3fb71c2016-02-18 15:44:07 -0800182 "../../system_wrappers",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100183 "../../system_wrappers:metrics_api",
Zeke Chinb3fb71c2016-02-18 15:44:07 -0800184 "../utility",
185 ]
Paulina Hensman7bd79a02018-03-15 12:44:12 +0100186 if (rtc_include_internal_audio_device && is_ios) {
187 deps += [ ":audio_device_ios_objc" ]
188 }
Zeke Chinb3fb71c2016-02-18 15:44:07 -0800189
kjellander@webrtc.orgc4870bb2014-09-01 04:24:11 +0000190 sources = [
kjellander@webrtc.orgc4870bb2014-09-01 04:24:11 +0000191 "dummy/audio_device_dummy.cc",
192 "dummy/audio_device_dummy.h",
kjellander@webrtc.orgc4870bb2014-09-01 04:24:11 +0000193 "dummy/file_audio_device.cc",
194 "dummy/file_audio_device.h",
Patrik Höglundd4209032018-01-02 15:00:11 +0100195 "include/fake_audio_device.h",
Artem Titovf2afa572018-03-13 13:25:19 +0100196 "include/test_audio_device.cc",
Artem Titov0f039732018-03-07 12:20:51 +0100197 "include/test_audio_device.h",
kjellander@webrtc.orgc4870bb2014-09-01 04:24:11 +0000198 ]
199
Dan Minor9c686132018-01-15 10:20:00 -0500200 if (build_with_mozilla) {
201 sources += [
202 "opensl/single_rw_fifo.cc",
203 "opensl/single_rw_fifo.h",
204 ]
205 }
206
kjellander@webrtc.orgc4870bb2014-09-01 04:24:11 +0000207 include_dirs = []
208 if (is_linux) {
209 include_dirs += [ "linux" ]
210 }
211 if (is_ios) {
212 include_dirs += [ "ios" ]
213 }
214 if (is_mac) {
215 include_dirs += [ "mac" ]
216 }
217 if (is_win) {
218 include_dirs += [ "win" ]
219 }
220 if (is_android) {
221 include_dirs += [ "android" ]
222 }
Henrik Kjellanderb79472a2015-10-14 08:13:58 +0200223 defines = []
kjellander70bed7d2015-11-23 17:23:44 -0800224 cflags = []
henrika7be78832017-06-13 17:34:16 +0200225 if (rtc_audio_device_plays_sinus_tone) {
226 defines += [ "AUDIO_DEVICE_PLAYS_SINUS_TONE" ]
227 }
henrika883d00f2018-03-16 10:09:49 +0100228 if (rtc_enable_android_aaudio) {
229 defines += [ "AUDIO_DEVICE_INCLUDE_ANDROID_AAUDIO" ]
230 }
kjellander@webrtc.org6d08ca62014-09-07 17:36:10 +0000231 if (rtc_include_internal_audio_device) {
Mirko Bonadei7fc02592018-02-06 14:08:01 +0100232 # TODO(bugs.webrtc.org/8850): remove this when the circular dependency will be fixed.
233 check_includes = false
kjellander@webrtc.orgc4870bb2014-09-01 04:24:11 +0000234 sources += [
Lu Liu4b620012017-04-06 10:17:01 -0700235 "audio_device_data_observer.cc",
Tommi931e6582015-05-20 09:44:38 +0200236 "audio_device_impl.cc",
237 "audio_device_impl.h",
Lu Liu4b620012017-04-06 10:17:01 -0700238 "include/audio_device_data_observer.h",
kjellander@webrtc.orgc4870bb2014-09-01 04:24:11 +0000239 ]
kjellandera46a4c92016-01-07 02:54:22 -0800240 if (is_android) {
241 sources += [
Patrik Höglundd4209032018-01-02 15:00:11 +0100242 "android/audio_common.h",
kjellandera46a4c92016-01-07 02:54:22 -0800243 "android/audio_device_template.h",
244 "android/audio_manager.cc",
245 "android/audio_manager.h",
246 "android/audio_record_jni.cc",
247 "android/audio_record_jni.h",
248 "android/audio_track_jni.cc",
249 "android/audio_track_jni.h",
250 "android/build_info.cc",
251 "android/build_info.h",
252 "android/opensles_common.cc",
253 "android/opensles_common.h",
254 "android/opensles_player.cc",
255 "android/opensles_player.h",
henrika918b5542016-09-19 15:44:09 +0200256 "android/opensles_recorder.cc",
257 "android/opensles_recorder.h",
kjellandera46a4c92016-01-07 02:54:22 -0800258 ]
259 libs = [
260 "log",
261 "OpenSLES",
262 ]
henrika883d00f2018-03-16 10:09:49 +0100263 if (rtc_enable_android_aaudio) {
264 sources += [
265 "android/aaudio_player.cc",
266 "android/aaudio_player.h",
267 "android/aaudio_recorder.cc",
268 "android/aaudio_recorder.h",
269 "android/aaudio_wrapper.cc",
270 "android/aaudio_wrapper.h",
271 ]
272 libs += [ "aaudio" ]
273 }
Dan Minor9c686132018-01-15 10:20:00 -0500274
275 if (build_with_mozilla) {
276 include_dirs += [
277 "/config/external/nspr",
278 "/nsprpub/lib/ds",
279 "/nsprpub/pr/include",
280 ]
281 }
kjellandera46a4c92016-01-07 02:54:22 -0800282 }
noahricc594aa612016-08-16 18:21:18 -0700283 if (rtc_use_dummy_audio_file_devices) {
284 defines += [ "WEBRTC_DUMMY_FILE_DEVICES" ]
285 } else {
286 if (is_linux) {
kjellander@webrtc.orgc4870bb2014-09-01 04:24:11 +0000287 sources += [
noahricc594aa612016-08-16 18:21:18 -0700288 "linux/alsasymboltable_linux.cc",
289 "linux/alsasymboltable_linux.h",
290 "linux/audio_device_alsa_linux.cc",
291 "linux/audio_device_alsa_linux.h",
292 "linux/audio_mixer_manager_alsa_linux.cc",
293 "linux/audio_mixer_manager_alsa_linux.h",
294 "linux/latebindingsymboltable_linux.cc",
295 "linux/latebindingsymboltable_linux.h",
kjellander@webrtc.orgc4870bb2014-09-01 04:24:11 +0000296 ]
noahricc594aa612016-08-16 18:21:18 -0700297 defines += [ "LINUX_ALSA" ]
kjellanderc41d0c42017-05-30 12:06:04 -0700298 libs = [ "dl" ]
Joachim Bauch75f18fc2017-12-20 21:25:47 +0100299 if (rtc_use_x11) {
kjellanderc41d0c42017-05-30 12:06:04 -0700300 libs += [ "X11" ]
Joachim Bauch75f18fc2017-12-20 21:25:47 +0100301 defines += [ "WEBRTC_USE_X11" ]
kjellanderc41d0c42017-05-30 12:06:04 -0700302 }
noahricc594aa612016-08-16 18:21:18 -0700303 if (rtc_include_pulse_audio) {
304 sources += [
305 "linux/audio_device_pulse_linux.cc",
306 "linux/audio_device_pulse_linux.h",
307 "linux/audio_mixer_manager_pulse_linux.cc",
308 "linux/audio_mixer_manager_pulse_linux.h",
309 "linux/pulseaudiosymboltable_linux.cc",
310 "linux/pulseaudiosymboltable_linux.h",
311 ]
312 defines += [ "LINUX_PULSE" ]
313 }
kjellander@webrtc.orgc4870bb2014-09-01 04:24:11 +0000314 }
noahricc594aa612016-08-16 18:21:18 -0700315 if (is_mac) {
316 sources += [
317 "mac/audio_device_mac.cc",
318 "mac/audio_device_mac.h",
319 "mac/audio_mixer_manager_mac.cc",
320 "mac/audio_mixer_manager_mac.h",
noahricc594aa612016-08-16 18:21:18 -0700321 ]
kjellander7439f972016-12-05 22:47:46 -0800322 deps += [ ":mac_portaudio" ]
noahricc594aa612016-08-16 18:21:18 -0700323 libs = [
maxmorin2ec45b92016-08-24 06:51:09 -0700324 # Needed for CoreGraphics:
325 "ApplicationServices.framework",
326
noahricc594aa612016-08-16 18:21:18 -0700327 "AudioToolbox.framework",
328 "CoreAudio.framework",
kjellanderbac04122016-06-02 02:18:48 -0700329
noahricc594aa612016-08-16 18:21:18 -0700330 # Needed for CGEventSourceKeyState in audio_device_mac.cc:
331 "CoreGraphics.framework",
332 ]
333 }
noahricc594aa612016-08-16 18:21:18 -0700334 if (is_win) {
335 sources += [
336 "win/audio_device_core_win.cc",
337 "win/audio_device_core_win.h",
noahricc594aa612016-08-16 18:21:18 -0700338 ]
339 libs = [
340 # Required for the built-in WASAPI AEC.
341 "dmoguids.lib",
342 "wmcodecdspuuid.lib",
343 "amstrmid.lib",
344 "msdmo.lib",
345 ]
346 }
ehmaldonadod02fe4b2016-08-26 13:31:24 -0700347 configs += [ ":audio_device_warnings_config" ]
kjellander@webrtc.orgc4870bb2014-09-01 04:24:11 +0000348 }
349 } else {
350 defines = [ "WEBRTC_DUMMY_AUDIO_BUILD" ]
351 }
352
353 if (!build_with_chromium) {
354 sources += [
355 # Do not link these into Chrome since they contain static data.
356 "dummy/file_audio_device_factory.cc",
357 "dummy/file_audio_device_factory.h",
358 ]
359 }
360
kjellandere40a7ee2016-10-16 23:56:12 -0700361 if (!build_with_chromium && is_clang) {
362 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -0700363 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellander@webrtc.orgc4870bb2014-09-01 04:24:11 +0000364 }
kjellander@webrtc.orgc4870bb2014-09-01 04:24:11 +0000365}
maxmorin69105372016-08-16 02:17:44 -0700366
kjellander7439f972016-12-05 22:47:46 -0800367rtc_source_set("mac_portaudio") {
368 visibility = [ ":*" ] # Only targets in this file can depend on this.
369 sources = [
370 "mac/portaudio/pa_memorybarrier.h",
371 "mac/portaudio/pa_ringbuffer.c",
372 "mac/portaudio/pa_ringbuffer.h",
373 ]
374}
375
mbonadei3edccb92017-06-01 04:47:20 -0700376rtc_source_set("mock_audio_device") {
377 testonly = true
378 sources = [
379 "include/mock_audio_device.h",
380 "include/mock_audio_transport.h",
Patrik Höglundd4209032018-01-02 15:00:11 +0100381 "mock_audio_device_buffer.h",
mbonadei3edccb92017-06-01 04:47:20 -0700382 ]
383 deps = [
384 ":audio_device",
Paulina Hensman7bd79a02018-03-15 12:44:12 +0100385 ":audio_device_buffer",
386 ":audio_device_impl",
mbonadei3edccb92017-06-01 04:47:20 -0700387 "../../test:test_support",
388 ]
mbonadei3edccb92017-06-01 04:47:20 -0700389}
390
aleloi5de52fd2016-11-10 01:05:34 -0800391if (rtc_include_tests) {
mbonadeibcc21762017-09-12 04:45:24 -0700392 # TODO(kthelgason): Reenable these tests on simulator.
393 # See bugs.webrtc.org/7812
394 if (is_ios && !use_ios_simulator) {
395 rtc_source_set("audio_device_ios_objc_unittests") {
396 testonly = true
397 visibility = [ ":*" ]
398 sources = [
399 "ios/audio_device_unittest_ios.mm",
400 ]
401 deps = [
402 ":audio_device",
Paulina Hensman7bd79a02018-03-15 12:44:12 +0100403 ":audio_device_buffer",
404 ":audio_device_impl",
405 ":audio_device_ios_objc",
mbonadeibcc21762017-09-12 04:45:24 -0700406 ":mock_audio_device",
407 "../../rtc_base:rtc_base_approved",
408 "../../sdk:audio_objc",
409 "../../system_wrappers",
Patrik Höglund7696bef2018-03-15 15:05:39 +0100410 "../../test:fileutils",
mbonadeibcc21762017-09-12 04:45:24 -0700411 "../../test:test_support",
mbonadeibcc21762017-09-12 04:45:24 -0700412 "//third_party/ocmock",
413 ]
414 if (!build_with_chromium && is_clang) {
415 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
416 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
417 }
418 }
419 }
420
ehmaldonado36268652017-01-19 08:27:11 -0800421 rtc_source_set("audio_device_unittests") {
422 testonly = true
kjellandere0629c02017-04-25 04:04:50 -0700423
ehmaldonado36268652017-01-19 08:27:11 -0800424 sources = [
425 "fine_audio_buffer_unittest.cc",
Artem Titovf2afa572018-03-13 13:25:19 +0100426 "include/test_audio_device_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800427 ]
428 deps = [
429 ":audio_device",
Paulina Hensman7bd79a02018-03-15 12:44:12 +0100430 ":audio_device_buffer",
431 ":audio_device_impl",
ehmaldonado36268652017-01-19 08:27:11 -0800432 ":mock_audio_device",
kwiberg529662a2017-09-04 05:43:17 -0700433 "../../api:array_view",
kwiberg84f6a3f2017-09-05 08:43:13 -0700434 "../../api:optional",
Artem Titov0f039732018-03-07 12:20:51 +0100435 "../../common_audio",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100436 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700437 "../../rtc_base:rtc_base_approved",
mbonadeibcc21762017-09-12 04:45:24 -0700438 "../../system_wrappers",
Patrik Höglund7696bef2018-03-15 15:05:39 +0100439 "../../test:fileutils",
ehmaldonado36268652017-01-19 08:27:11 -0800440 "../../test:test_support",
441 "../utility:utility",
ehmaldonado36268652017-01-19 08:27:11 -0800442 ]
henrika1b35bab2017-03-29 07:50:19 -0700443 if (is_linux || is_mac || is_win) {
henrikaf2f91fa2017-03-17 04:26:22 -0700444 sources += [ "audio_device_unittest.cc" ]
445 }
ehmaldonado36268652017-01-19 08:27:11 -0800446 if (is_android) {
447 # Need to disable error due to the line in
448 # base/android/jni_android.h triggering it:
449 # const BASE_EXPORT jobject GetApplicationContext()
450 # error: type qualifiers ignored on function return type
451 cflags = [ "-Wno-ignored-qualifiers" ]
452 sources += [
453 "android/audio_device_unittest.cc",
454 "android/audio_manager_unittest.cc",
455 "android/ensure_initialized.cc",
456 "android/ensure_initialized.h",
457 ]
458 deps += [
459 "../../../base",
jianjun.zhuc0247402017-07-11 06:20:45 -0700460 "../../sdk/android:libjingle_peerconnection_java",
ehmaldonado36268652017-01-19 08:27:11 -0800461 ]
462 }
ehmaldonado36268652017-01-19 08:27:11 -0800463 if (!build_with_chromium && is_clang) {
464 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
465 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
466 }
Joachim Bauch5d2bb362017-12-20 21:19:49 +0100467 if (!rtc_include_internal_audio_device) {
468 defines = [ "WEBRTC_DUMMY_AUDIO_BUILD" ]
469 }
ehmaldonado36268652017-01-19 08:27:11 -0800470 }
maxmorin69105372016-08-16 02:17:44 -0700471}
mbonadei438062b2017-01-09 02:37:21 -0800472
473if (!build_with_chromium && is_android) {
Mirko Bonadeifbb3b7d2017-11-07 15:36:33 +0000474 rtc_android_library("audio_device_java") {
mbonadeib55bd972017-01-23 01:25:53 -0800475 java_files = [
mbonadei438062b2017-01-09 02:37:21 -0800476 "android/java/src/org/webrtc/voiceengine/BuildInfo.java",
477 "android/java/src/org/webrtc/voiceengine/WebRtcAudioEffects.java",
478 "android/java/src/org/webrtc/voiceengine/WebRtcAudioManager.java",
479 "android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java",
480 "android/java/src/org/webrtc/voiceengine/WebRtcAudioTrack.java",
481 "android/java/src/org/webrtc/voiceengine/WebRtcAudioUtils.java",
482 ]
mbonadeib55bd972017-01-23 01:25:53 -0800483 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700484 "../../rtc_base:base_java",
mbonadeib55bd972017-01-23 01:25:53 -0800485 ]
mbonadei438062b2017-01-09 02:37:21 -0800486 }
487}