blob: b562018d3b4e6fe43072a99c73a9f9e57e8d605b [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 Hanspers8d95e3b2018-05-15 10:22:36 +020097 visibility = [ "*" ]
Paulina Hensman7bd79a02018-03-15 12:44:12 +010098 sources = [
99 "include/audio_device.h",
100 "include/audio_device_defines.h",
101 ]
102 deps = [
103 "../../:typedefs",
104 "../../rtc_base:checks",
105 "../../rtc_base:deprecation",
106 "../../rtc_base:rtc_base_approved",
henrika883d00f2018-03-16 10:09:49 +0100107 "../../rtc_base:stringutils",
Paulina Hensman7bd79a02018-03-15 12:44:12 +0100108 ]
109 if (!build_with_chromium && is_clang) {
110 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
111 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
112 }
113}
114
115rtc_source_set("audio_device_buffer") {
116 sources = [
117 "audio_device_buffer.cc",
118 "audio_device_buffer.h",
119 "audio_device_config.h",
120 "fine_audio_buffer.cc",
121 "fine_audio_buffer.h",
122 ]
123 deps = [
124 ":audio_device_api",
125 "../../:typedefs",
126 "../../api:array_view",
127 "../../common_audio:common_audio_c",
128 "../../rtc_base:checks",
129 "../../rtc_base:rtc_base_approved",
130 "../../rtc_base:rtc_task_queue",
131 "../../system_wrappers",
132 "../../system_wrappers:metrics_api",
133 ]
134 if (!build_with_chromium && is_clang) {
135 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
136 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
137 }
138}
139
140rtc_source_set("audio_device_generic") {
141 sources = [
142 "audio_device_generic.cc",
143 "audio_device_generic.h",
144 ]
145 deps = [
146 ":audio_device_api",
147 ":audio_device_buffer",
148 "../../rtc_base:rtc_base_approved",
149 ]
150 if (!build_with_chromium && is_clang) {
151 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
152 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
153 }
154}
155
156# Contains default implementations of webrtc::AudioDeviceModule for Windows,
157# Linux, Mac, iOS and Android.
158rtc_source_set("audio_device_impl") {
159 visibility = [ "*" ]
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700160 public_configs = [ ":audio_device_config" ]
ehmaldonadod02fe4b2016-08-26 13:31:24 -0700161
Zeke Chinb3fb71c2016-02-18 15:44:07 -0800162 deps = [
Paulina Hensman7bd79a02018-03-15 12:44:12 +0100163 ":audio_device_api",
164 ":audio_device_buffer",
165 ":audio_device_generic",
Zeke Chinb3fb71c2016-02-18 15:44:07 -0800166 "../..:webrtc_common",
Patrik Höglund3e113432017-12-15 14:40:10 +0100167 "../../:typedefs",
kwiberg529662a2017-09-04 05:43:17 -0700168 "../../api:array_view",
Zeke Chinb3fb71c2016-02-18 15:44:07 -0800169 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100170 "../../common_audio:common_audio_c",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100171 "../../rtc_base:checks",
Fredrik Solenberg2a877972017-12-15 16:42:15 +0100172 "../../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700173 "../../rtc_base:rtc_base_approved",
174 "../../rtc_base:rtc_task_queue",
Karl Wiberg6a4d4112018-03-23 10:39:34 +0100175 "../../rtc_base/system:file_wrapper",
Zeke Chinb3fb71c2016-02-18 15:44:07 -0800176 "../../system_wrappers",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100177 "../../system_wrappers:metrics_api",
Zeke Chinb3fb71c2016-02-18 15:44:07 -0800178 "../utility",
179 ]
Paulina Hensman7bd79a02018-03-15 12:44:12 +0100180 if (rtc_include_internal_audio_device && is_ios) {
181 deps += [ ":audio_device_ios_objc" ]
182 }
Zeke Chinb3fb71c2016-02-18 15:44:07 -0800183
kjellander@webrtc.orgc4870bb2014-09-01 04:24:11 +0000184 sources = [
kjellander@webrtc.orgc4870bb2014-09-01 04:24:11 +0000185 "dummy/audio_device_dummy.cc",
186 "dummy/audio_device_dummy.h",
kjellander@webrtc.orgc4870bb2014-09-01 04:24:11 +0000187 "dummy/file_audio_device.cc",
188 "dummy/file_audio_device.h",
Patrik Höglundd4209032018-01-02 15:00:11 +0100189 "include/fake_audio_device.h",
Artem Titovf2afa572018-03-13 13:25:19 +0100190 "include/test_audio_device.cc",
Artem Titov0f039732018-03-07 12:20:51 +0100191 "include/test_audio_device.h",
kjellander@webrtc.orgc4870bb2014-09-01 04:24:11 +0000192 ]
193
Dan Minor9c686132018-01-15 10:20:00 -0500194 if (build_with_mozilla) {
195 sources += [
196 "opensl/single_rw_fifo.cc",
197 "opensl/single_rw_fifo.h",
198 ]
199 }
200
kjellander@webrtc.orgc4870bb2014-09-01 04:24:11 +0000201 include_dirs = []
202 if (is_linux) {
203 include_dirs += [ "linux" ]
204 }
205 if (is_ios) {
206 include_dirs += [ "ios" ]
207 }
208 if (is_mac) {
209 include_dirs += [ "mac" ]
210 }
211 if (is_win) {
212 include_dirs += [ "win" ]
213 }
214 if (is_android) {
215 include_dirs += [ "android" ]
216 }
Henrik Kjellanderb79472a2015-10-14 08:13:58 +0200217 defines = []
kjellander70bed7d2015-11-23 17:23:44 -0800218 cflags = []
henrika7be78832017-06-13 17:34:16 +0200219 if (rtc_audio_device_plays_sinus_tone) {
220 defines += [ "AUDIO_DEVICE_PLAYS_SINUS_TONE" ]
221 }
henrika883d00f2018-03-16 10:09:49 +0100222 if (rtc_enable_android_aaudio) {
223 defines += [ "AUDIO_DEVICE_INCLUDE_ANDROID_AAUDIO" ]
224 }
kjellander@webrtc.org6d08ca62014-09-07 17:36:10 +0000225 if (rtc_include_internal_audio_device) {
Mirko Bonadei7fc02592018-02-06 14:08:01 +0100226 # TODO(bugs.webrtc.org/8850): remove this when the circular dependency will be fixed.
227 check_includes = false
kjellander@webrtc.orgc4870bb2014-09-01 04:24:11 +0000228 sources += [
Lu Liu4b620012017-04-06 10:17:01 -0700229 "audio_device_data_observer.cc",
Tommi931e6582015-05-20 09:44:38 +0200230 "audio_device_impl.cc",
231 "audio_device_impl.h",
Lu Liu4b620012017-04-06 10:17:01 -0700232 "include/audio_device_data_observer.h",
kjellander@webrtc.orgc4870bb2014-09-01 04:24:11 +0000233 ]
kjellandera46a4c92016-01-07 02:54:22 -0800234 if (is_android) {
235 sources += [
Patrik Höglundd4209032018-01-02 15:00:11 +0100236 "android/audio_common.h",
kjellandera46a4c92016-01-07 02:54:22 -0800237 "android/audio_device_template.h",
238 "android/audio_manager.cc",
239 "android/audio_manager.h",
240 "android/audio_record_jni.cc",
241 "android/audio_record_jni.h",
242 "android/audio_track_jni.cc",
243 "android/audio_track_jni.h",
244 "android/build_info.cc",
245 "android/build_info.h",
246 "android/opensles_common.cc",
247 "android/opensles_common.h",
248 "android/opensles_player.cc",
249 "android/opensles_player.h",
henrika918b5542016-09-19 15:44:09 +0200250 "android/opensles_recorder.cc",
251 "android/opensles_recorder.h",
kjellandera46a4c92016-01-07 02:54:22 -0800252 ]
253 libs = [
254 "log",
255 "OpenSLES",
256 ]
henrika883d00f2018-03-16 10:09:49 +0100257 if (rtc_enable_android_aaudio) {
258 sources += [
259 "android/aaudio_player.cc",
260 "android/aaudio_player.h",
261 "android/aaudio_recorder.cc",
262 "android/aaudio_recorder.h",
263 "android/aaudio_wrapper.cc",
264 "android/aaudio_wrapper.h",
265 ]
266 libs += [ "aaudio" ]
267 }
Dan Minor9c686132018-01-15 10:20:00 -0500268
269 if (build_with_mozilla) {
270 include_dirs += [
271 "/config/external/nspr",
272 "/nsprpub/lib/ds",
273 "/nsprpub/pr/include",
274 ]
275 }
kjellandera46a4c92016-01-07 02:54:22 -0800276 }
noahricc594aa612016-08-16 18:21:18 -0700277 if (rtc_use_dummy_audio_file_devices) {
278 defines += [ "WEBRTC_DUMMY_FILE_DEVICES" ]
279 } else {
280 if (is_linux) {
kjellander@webrtc.orgc4870bb2014-09-01 04:24:11 +0000281 sources += [
noahricc594aa612016-08-16 18:21:18 -0700282 "linux/alsasymboltable_linux.cc",
283 "linux/alsasymboltable_linux.h",
284 "linux/audio_device_alsa_linux.cc",
285 "linux/audio_device_alsa_linux.h",
286 "linux/audio_mixer_manager_alsa_linux.cc",
287 "linux/audio_mixer_manager_alsa_linux.h",
288 "linux/latebindingsymboltable_linux.cc",
289 "linux/latebindingsymboltable_linux.h",
kjellander@webrtc.orgc4870bb2014-09-01 04:24:11 +0000290 ]
noahricc594aa612016-08-16 18:21:18 -0700291 defines += [ "LINUX_ALSA" ]
kjellanderc41d0c42017-05-30 12:06:04 -0700292 libs = [ "dl" ]
Joachim Bauch75f18fc2017-12-20 21:25:47 +0100293 if (rtc_use_x11) {
kjellanderc41d0c42017-05-30 12:06:04 -0700294 libs += [ "X11" ]
Joachim Bauch75f18fc2017-12-20 21:25:47 +0100295 defines += [ "WEBRTC_USE_X11" ]
kjellanderc41d0c42017-05-30 12:06:04 -0700296 }
noahricc594aa612016-08-16 18:21:18 -0700297 if (rtc_include_pulse_audio) {
298 sources += [
299 "linux/audio_device_pulse_linux.cc",
300 "linux/audio_device_pulse_linux.h",
301 "linux/audio_mixer_manager_pulse_linux.cc",
302 "linux/audio_mixer_manager_pulse_linux.h",
303 "linux/pulseaudiosymboltable_linux.cc",
304 "linux/pulseaudiosymboltable_linux.h",
305 ]
306 defines += [ "LINUX_PULSE" ]
307 }
kjellander@webrtc.orgc4870bb2014-09-01 04:24:11 +0000308 }
noahricc594aa612016-08-16 18:21:18 -0700309 if (is_mac) {
310 sources += [
311 "mac/audio_device_mac.cc",
312 "mac/audio_device_mac.h",
313 "mac/audio_mixer_manager_mac.cc",
314 "mac/audio_mixer_manager_mac.h",
noahricc594aa612016-08-16 18:21:18 -0700315 ]
kjellander7439f972016-12-05 22:47:46 -0800316 deps += [ ":mac_portaudio" ]
noahricc594aa612016-08-16 18:21:18 -0700317 libs = [
maxmorin2ec45b92016-08-24 06:51:09 -0700318 # Needed for CoreGraphics:
319 "ApplicationServices.framework",
320
noahricc594aa612016-08-16 18:21:18 -0700321 "AudioToolbox.framework",
322 "CoreAudio.framework",
kjellanderbac04122016-06-02 02:18:48 -0700323
noahricc594aa612016-08-16 18:21:18 -0700324 # Needed for CGEventSourceKeyState in audio_device_mac.cc:
325 "CoreGraphics.framework",
326 ]
327 }
noahricc594aa612016-08-16 18:21:18 -0700328 if (is_win) {
329 sources += [
330 "win/audio_device_core_win.cc",
331 "win/audio_device_core_win.h",
noahricc594aa612016-08-16 18:21:18 -0700332 ]
333 libs = [
334 # Required for the built-in WASAPI AEC.
335 "dmoguids.lib",
336 "wmcodecdspuuid.lib",
337 "amstrmid.lib",
338 "msdmo.lib",
339 ]
340 }
ehmaldonadod02fe4b2016-08-26 13:31:24 -0700341 configs += [ ":audio_device_warnings_config" ]
kjellander@webrtc.orgc4870bb2014-09-01 04:24:11 +0000342 }
343 } else {
344 defines = [ "WEBRTC_DUMMY_AUDIO_BUILD" ]
345 }
346
347 if (!build_with_chromium) {
348 sources += [
349 # Do not link these into Chrome since they contain static data.
350 "dummy/file_audio_device_factory.cc",
351 "dummy/file_audio_device_factory.h",
352 ]
353 }
354
kjellandere40a7ee2016-10-16 23:56:12 -0700355 if (!build_with_chromium && is_clang) {
356 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -0700357 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellander@webrtc.orgc4870bb2014-09-01 04:24:11 +0000358 }
kjellander@webrtc.orgc4870bb2014-09-01 04:24:11 +0000359}
maxmorin69105372016-08-16 02:17:44 -0700360
kjellander7439f972016-12-05 22:47:46 -0800361rtc_source_set("mac_portaudio") {
362 visibility = [ ":*" ] # Only targets in this file can depend on this.
363 sources = [
364 "mac/portaudio/pa_memorybarrier.h",
365 "mac/portaudio/pa_ringbuffer.c",
366 "mac/portaudio/pa_ringbuffer.h",
367 ]
368}
369
mbonadei3edccb92017-06-01 04:47:20 -0700370rtc_source_set("mock_audio_device") {
371 testonly = true
372 sources = [
373 "include/mock_audio_device.h",
374 "include/mock_audio_transport.h",
Patrik Höglundd4209032018-01-02 15:00:11 +0100375 "mock_audio_device_buffer.h",
mbonadei3edccb92017-06-01 04:47:20 -0700376 ]
377 deps = [
378 ":audio_device",
Paulina Hensman7bd79a02018-03-15 12:44:12 +0100379 ":audio_device_buffer",
380 ":audio_device_impl",
mbonadei3edccb92017-06-01 04:47:20 -0700381 "../../test:test_support",
382 ]
mbonadei3edccb92017-06-01 04:47:20 -0700383}
384
aleloi5de52fd2016-11-10 01:05:34 -0800385if (rtc_include_tests) {
mbonadeibcc21762017-09-12 04:45:24 -0700386 # TODO(kthelgason): Reenable these tests on simulator.
387 # See bugs.webrtc.org/7812
388 if (is_ios && !use_ios_simulator) {
389 rtc_source_set("audio_device_ios_objc_unittests") {
390 testonly = true
391 visibility = [ ":*" ]
392 sources = [
393 "ios/audio_device_unittest_ios.mm",
394 ]
395 deps = [
396 ":audio_device",
Paulina Hensman7bd79a02018-03-15 12:44:12 +0100397 ":audio_device_buffer",
398 ":audio_device_impl",
399 ":audio_device_ios_objc",
mbonadeibcc21762017-09-12 04:45:24 -0700400 ":mock_audio_device",
401 "../../rtc_base:rtc_base_approved",
402 "../../sdk:audio_objc",
403 "../../system_wrappers",
Patrik Höglund7696bef2018-03-15 15:05:39 +0100404 "../../test:fileutils",
mbonadeibcc21762017-09-12 04:45:24 -0700405 "../../test:test_support",
mbonadeibcc21762017-09-12 04:45:24 -0700406 "//third_party/ocmock",
407 ]
408 if (!build_with_chromium && is_clang) {
409 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
410 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
411 }
412 }
413 }
414
ehmaldonado36268652017-01-19 08:27:11 -0800415 rtc_source_set("audio_device_unittests") {
416 testonly = true
kjellandere0629c02017-04-25 04:04:50 -0700417
ehmaldonado36268652017-01-19 08:27:11 -0800418 sources = [
419 "fine_audio_buffer_unittest.cc",
Artem Titovf2afa572018-03-13 13:25:19 +0100420 "include/test_audio_device_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800421 ]
422 deps = [
423 ":audio_device",
Paulina Hensman7bd79a02018-03-15 12:44:12 +0100424 ":audio_device_buffer",
425 ":audio_device_impl",
ehmaldonado36268652017-01-19 08:27:11 -0800426 ":mock_audio_device",
kwiberg529662a2017-09-04 05:43:17 -0700427 "../../api:array_view",
kwiberg84f6a3f2017-09-05 08:43:13 -0700428 "../../api:optional",
Artem Titov0f039732018-03-07 12:20:51 +0100429 "../../common_audio",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100430 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700431 "../../rtc_base:rtc_base_approved",
mbonadeibcc21762017-09-12 04:45:24 -0700432 "../../system_wrappers",
Patrik Höglund7696bef2018-03-15 15:05:39 +0100433 "../../test:fileutils",
ehmaldonado36268652017-01-19 08:27:11 -0800434 "../../test:test_support",
435 "../utility:utility",
ehmaldonado36268652017-01-19 08:27:11 -0800436 ]
henrika1b35bab2017-03-29 07:50:19 -0700437 if (is_linux || is_mac || is_win) {
henrikaf2f91fa2017-03-17 04:26:22 -0700438 sources += [ "audio_device_unittest.cc" ]
439 }
ehmaldonado36268652017-01-19 08:27:11 -0800440 if (is_android) {
441 # Need to disable error due to the line in
442 # base/android/jni_android.h triggering it:
443 # const BASE_EXPORT jobject GetApplicationContext()
444 # error: type qualifiers ignored on function return type
445 cflags = [ "-Wno-ignored-qualifiers" ]
446 sources += [
447 "android/audio_device_unittest.cc",
448 "android/audio_manager_unittest.cc",
449 "android/ensure_initialized.cc",
450 "android/ensure_initialized.h",
451 ]
452 deps += [
453 "../../../base",
jianjun.zhuc0247402017-07-11 06:20:45 -0700454 "../../sdk/android:libjingle_peerconnection_java",
ehmaldonado36268652017-01-19 08:27:11 -0800455 ]
456 }
ehmaldonado36268652017-01-19 08:27:11 -0800457 if (!build_with_chromium && is_clang) {
458 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
459 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
460 }
Joachim Bauch5d2bb362017-12-20 21:19:49 +0100461 if (!rtc_include_internal_audio_device) {
462 defines = [ "WEBRTC_DUMMY_AUDIO_BUILD" ]
463 }
ehmaldonado36268652017-01-19 08:27:11 -0800464 }
maxmorin69105372016-08-16 02:17:44 -0700465}
mbonadei438062b2017-01-09 02:37:21 -0800466
467if (!build_with_chromium && is_android) {
Mirko Bonadeifbb3b7d2017-11-07 15:36:33 +0000468 rtc_android_library("audio_device_java") {
mbonadeib55bd972017-01-23 01:25:53 -0800469 java_files = [
mbonadei438062b2017-01-09 02:37:21 -0800470 "android/java/src/org/webrtc/voiceengine/BuildInfo.java",
471 "android/java/src/org/webrtc/voiceengine/WebRtcAudioEffects.java",
472 "android/java/src/org/webrtc/voiceengine/WebRtcAudioManager.java",
473 "android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java",
474 "android/java/src/org/webrtc/voiceengine/WebRtcAudioTrack.java",
475 "android/java/src/org/webrtc/voiceengine/WebRtcAudioUtils.java",
476 ]
mbonadeib55bd972017-01-23 01:25:53 -0800477 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700478 "../../rtc_base:base_java",
mbonadeib55bd972017-01-23 01:25:53 -0800479 ]
mbonadei438062b2017-01-09 02:37:21 -0800480 }
481}