kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 1 | # 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 | |
mbonadei | 9aa3f0a | 2017-01-24 06:58:22 -0800 | [diff] [blame] | 9 | import("../../webrtc.gni") |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 10 | |
mbonadei | 438062b | 2017-01-09 02:37:21 -0800 | [diff] [blame] | 11 | if (is_android) { |
| 12 | import("//build/config/android/config.gni") |
| 13 | import("//build/config/android/rules.gni") |
| 14 | } |
| 15 | |
kjellander@webrtc.org | c4870bb | 2014-09-01 04:24:11 +0000 | [diff] [blame] | 16 | config("audio_device_config") { |
| 17 | include_dirs = [ |
Henrik Kjellander | ff761fb | 2015-11-04 08:31:52 +0100 | [diff] [blame] | 18 | "../include", |
kjellander@webrtc.org | c4870bb | 2014-09-01 04:24:11 +0000 | [diff] [blame] | 19 | "include", |
| 20 | "dummy", # Contains dummy audio device implementations. |
| 21 | ] |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 22 | } |
kjellander@webrtc.org | c4870bb | 2014-09-01 04:24:11 +0000 | [diff] [blame] | 23 | |
ehmaldonado | d02fe4b | 2016-08-26 13:31:24 -0700 | [diff] [blame] | 24 | config("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", |
| 34 | "-Wno-missing-braces", |
| 35 | "-Wno-parentheses-equality", |
| 36 | "-Wno-reorder", |
| 37 | "-Wno-shift-overflow", |
| 38 | "-Wno-tautological-compare", |
| 39 | |
| 40 | # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6265 |
| 41 | # for -Wno-thread-safety-analysis |
| 42 | "-Wno-thread-safety-analysis", |
| 43 | "-Wno-unused-private-field", |
| 44 | ] |
| 45 | } |
| 46 | } |
| 47 | |
mbonadei | bcc2176 | 2017-09-12 04:45:24 -0700 | [diff] [blame] | 48 | rtc_source_set("audio_device") { |
| 49 | public_deps = [ |
| 50 | ":audio_device_generic", |
| 51 | ] |
| 52 | if (rtc_include_internal_audio_device && is_ios) { |
| 53 | public_deps += [ ":audio_device_ios_objc" ] |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | if (rtc_include_internal_audio_device && is_ios) { |
| 58 | rtc_source_set("audio_device_ios_objc") { |
| 59 | visibility = [ ":audio_device" ] |
| 60 | sources = [ |
| 61 | "ios/audio_device_ios.h", |
| 62 | "ios/audio_device_ios.mm", |
| 63 | "ios/audio_device_not_implemented_ios.mm", |
| 64 | "ios/audio_session_observer.h", |
| 65 | "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 = [ |
| 77 | ":audio_device_generic", |
| 78 | "../../api:array_view", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 79 | "../../rtc_base:checks", |
mbonadei | bcc2176 | 2017-09-12 04:45:24 -0700 | [diff] [blame] | 80 | "../../rtc_base:gtest_prod", |
| 81 | "../../rtc_base:rtc_base", |
| 82 | "../../sdk:audio_objc", |
| 83 | "../../sdk:common_objc", |
| 84 | "../../system_wrappers:metrics_api", |
| 85 | ] |
| 86 | if (!build_with_chromium && is_clang) { |
| 87 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 88 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 89 | } |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | rtc_source_set("audio_device_generic") { |
| 94 | visibility = [ |
| 95 | ":audio_device", |
| 96 | ":audio_device_ios_objc", |
| 97 | ] |
ehmaldonado | e9cc686 | 2016-09-05 06:10:18 -0700 | [diff] [blame] | 98 | public_configs = [ ":audio_device_config" ] |
ehmaldonado | d02fe4b | 2016-08-26 13:31:24 -0700 | [diff] [blame] | 99 | |
Zeke Chin | b3fb71c | 2016-02-18 15:44:07 -0800 | [diff] [blame] | 100 | deps = [ |
mbonadei | 1140f97 | 2017-04-26 03:38:35 -0700 | [diff] [blame] | 101 | "..:module_api", |
Zeke Chin | b3fb71c | 2016-02-18 15:44:07 -0800 | [diff] [blame] | 102 | "../..:webrtc_common", |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 103 | "../../:typedefs", |
kwiberg | 529662a | 2017-09-04 05:43:17 -0700 | [diff] [blame] | 104 | "../../api:array_view", |
Zeke Chin | b3fb71c | 2016-02-18 15:44:07 -0800 | [diff] [blame] | 105 | "../../common_audio", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 106 | "../../rtc_base:checks", |
Fredrik Solenberg | 2a87797 | 2017-12-15 16:42:15 +0100 | [diff] [blame] | 107 | "../../rtc_base:deprecation", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 108 | "../../rtc_base:rtc_base_approved", |
| 109 | "../../rtc_base:rtc_task_queue", |
Zeke Chin | b3fb71c | 2016-02-18 15:44:07 -0800 | [diff] [blame] | 110 | "../../system_wrappers", |
Mirko Bonadei | a498ae8 | 2017-12-06 09:17:14 +0100 | [diff] [blame] | 111 | "../../system_wrappers:metrics_api", |
Zeke Chin | b3fb71c | 2016-02-18 15:44:07 -0800 | [diff] [blame] | 112 | "../utility", |
| 113 | ] |
| 114 | |
kjellander@webrtc.org | c4870bb | 2014-09-01 04:24:11 +0000 | [diff] [blame] | 115 | sources = [ |
kjellander@webrtc.org | c4870bb | 2014-09-01 04:24:11 +0000 | [diff] [blame] | 116 | "audio_device_buffer.cc", |
| 117 | "audio_device_buffer.h", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 118 | "audio_device_config.h", |
kjellander@webrtc.org | c4870bb | 2014-09-01 04:24:11 +0000 | [diff] [blame] | 119 | "audio_device_generic.cc", |
| 120 | "audio_device_generic.h", |
kjellander@webrtc.org | c4870bb | 2014-09-01 04:24:11 +0000 | [diff] [blame] | 121 | "dummy/audio_device_dummy.cc", |
| 122 | "dummy/audio_device_dummy.h", |
kjellander@webrtc.org | c4870bb | 2014-09-01 04:24:11 +0000 | [diff] [blame] | 123 | "dummy/file_audio_device.cc", |
| 124 | "dummy/file_audio_device.h", |
henrika | 86d907c | 2015-09-07 16:09:50 +0200 | [diff] [blame] | 125 | "fine_audio_buffer.cc", |
| 126 | "fine_audio_buffer.h", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 127 | "include/audio_device.h", |
| 128 | "include/audio_device_defines.h", |
kjellander@webrtc.org | c4870bb | 2014-09-01 04:24:11 +0000 | [diff] [blame] | 129 | ] |
| 130 | |
kjellander@webrtc.org | c4870bb | 2014-09-01 04:24:11 +0000 | [diff] [blame] | 131 | include_dirs = [] |
| 132 | if (is_linux) { |
| 133 | include_dirs += [ "linux" ] |
| 134 | } |
| 135 | if (is_ios) { |
| 136 | include_dirs += [ "ios" ] |
| 137 | } |
| 138 | if (is_mac) { |
| 139 | include_dirs += [ "mac" ] |
| 140 | } |
| 141 | if (is_win) { |
| 142 | include_dirs += [ "win" ] |
| 143 | } |
| 144 | if (is_android) { |
| 145 | include_dirs += [ "android" ] |
| 146 | } |
Henrik Kjellander | b79472a | 2015-10-14 08:13:58 +0200 | [diff] [blame] | 147 | defines = [] |
kjellander | 70bed7d | 2015-11-23 17:23:44 -0800 | [diff] [blame] | 148 | cflags = [] |
henrika | 7be7883 | 2017-06-13 17:34:16 +0200 | [diff] [blame] | 149 | if (rtc_audio_device_plays_sinus_tone) { |
| 150 | defines += [ "AUDIO_DEVICE_PLAYS_SINUS_TONE" ] |
| 151 | } |
kjellander@webrtc.org | 6d08ca6 | 2014-09-07 17:36:10 +0000 | [diff] [blame] | 152 | if (rtc_include_internal_audio_device) { |
kjellander@webrtc.org | c4870bb | 2014-09-01 04:24:11 +0000 | [diff] [blame] | 153 | sources += [ |
Lu Liu | 4b62001 | 2017-04-06 10:17:01 -0700 | [diff] [blame] | 154 | "audio_device_data_observer.cc", |
Tommi | 931e658 | 2015-05-20 09:44:38 +0200 | [diff] [blame] | 155 | "audio_device_impl.cc", |
| 156 | "audio_device_impl.h", |
Lu Liu | 4b62001 | 2017-04-06 10:17:01 -0700 | [diff] [blame] | 157 | "include/audio_device_data_observer.h", |
kjellander@webrtc.org | c4870bb | 2014-09-01 04:24:11 +0000 | [diff] [blame] | 158 | ] |
kjellander | a46a4c9 | 2016-01-07 02:54:22 -0800 | [diff] [blame] | 159 | if (is_android) { |
| 160 | sources += [ |
| 161 | "android/audio_device_template.h", |
| 162 | "android/audio_manager.cc", |
| 163 | "android/audio_manager.h", |
| 164 | "android/audio_record_jni.cc", |
| 165 | "android/audio_record_jni.h", |
| 166 | "android/audio_track_jni.cc", |
| 167 | "android/audio_track_jni.h", |
| 168 | "android/build_info.cc", |
| 169 | "android/build_info.h", |
| 170 | "android/opensles_common.cc", |
| 171 | "android/opensles_common.h", |
| 172 | "android/opensles_player.cc", |
| 173 | "android/opensles_player.h", |
henrika | 918b554 | 2016-09-19 15:44:09 +0200 | [diff] [blame] | 174 | "android/opensles_recorder.cc", |
| 175 | "android/opensles_recorder.h", |
kjellander | a46a4c9 | 2016-01-07 02:54:22 -0800 | [diff] [blame] | 176 | ] |
| 177 | libs = [ |
| 178 | "log", |
| 179 | "OpenSLES", |
| 180 | ] |
| 181 | } |
noahric | c594aa61 | 2016-08-16 18:21:18 -0700 | [diff] [blame] | 182 | if (rtc_use_dummy_audio_file_devices) { |
| 183 | defines += [ "WEBRTC_DUMMY_FILE_DEVICES" ] |
| 184 | } else { |
| 185 | if (is_linux) { |
kjellander@webrtc.org | c4870bb | 2014-09-01 04:24:11 +0000 | [diff] [blame] | 186 | sources += [ |
noahric | c594aa61 | 2016-08-16 18:21:18 -0700 | [diff] [blame] | 187 | "linux/alsasymboltable_linux.cc", |
| 188 | "linux/alsasymboltable_linux.h", |
| 189 | "linux/audio_device_alsa_linux.cc", |
| 190 | "linux/audio_device_alsa_linux.h", |
| 191 | "linux/audio_mixer_manager_alsa_linux.cc", |
| 192 | "linux/audio_mixer_manager_alsa_linux.h", |
| 193 | "linux/latebindingsymboltable_linux.cc", |
| 194 | "linux/latebindingsymboltable_linux.h", |
kjellander@webrtc.org | c4870bb | 2014-09-01 04:24:11 +0000 | [diff] [blame] | 195 | ] |
noahric | c594aa61 | 2016-08-16 18:21:18 -0700 | [diff] [blame] | 196 | defines += [ "LINUX_ALSA" ] |
kjellander | c41d0c4 | 2017-05-30 12:06:04 -0700 | [diff] [blame] | 197 | libs = [ "dl" ] |
| 198 | if (use_x11) { |
| 199 | libs += [ "X11" ] |
| 200 | } |
noahric | c594aa61 | 2016-08-16 18:21:18 -0700 | [diff] [blame] | 201 | if (rtc_include_pulse_audio) { |
| 202 | sources += [ |
| 203 | "linux/audio_device_pulse_linux.cc", |
| 204 | "linux/audio_device_pulse_linux.h", |
| 205 | "linux/audio_mixer_manager_pulse_linux.cc", |
| 206 | "linux/audio_mixer_manager_pulse_linux.h", |
| 207 | "linux/pulseaudiosymboltable_linux.cc", |
| 208 | "linux/pulseaudiosymboltable_linux.h", |
| 209 | ] |
| 210 | defines += [ "LINUX_PULSE" ] |
| 211 | } |
kjellander@webrtc.org | c4870bb | 2014-09-01 04:24:11 +0000 | [diff] [blame] | 212 | } |
noahric | c594aa61 | 2016-08-16 18:21:18 -0700 | [diff] [blame] | 213 | if (is_mac) { |
| 214 | sources += [ |
| 215 | "mac/audio_device_mac.cc", |
| 216 | "mac/audio_device_mac.h", |
| 217 | "mac/audio_mixer_manager_mac.cc", |
| 218 | "mac/audio_mixer_manager_mac.h", |
noahric | c594aa61 | 2016-08-16 18:21:18 -0700 | [diff] [blame] | 219 | ] |
kjellander | 7439f97 | 2016-12-05 22:47:46 -0800 | [diff] [blame] | 220 | deps += [ ":mac_portaudio" ] |
noahric | c594aa61 | 2016-08-16 18:21:18 -0700 | [diff] [blame] | 221 | libs = [ |
maxmorin | 2ec45b9 | 2016-08-24 06:51:09 -0700 | [diff] [blame] | 222 | # Needed for CoreGraphics: |
| 223 | "ApplicationServices.framework", |
| 224 | |
noahric | c594aa61 | 2016-08-16 18:21:18 -0700 | [diff] [blame] | 225 | "AudioToolbox.framework", |
| 226 | "CoreAudio.framework", |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 227 | |
noahric | c594aa61 | 2016-08-16 18:21:18 -0700 | [diff] [blame] | 228 | # Needed for CGEventSourceKeyState in audio_device_mac.cc: |
| 229 | "CoreGraphics.framework", |
| 230 | ] |
| 231 | } |
noahric | c594aa61 | 2016-08-16 18:21:18 -0700 | [diff] [blame] | 232 | if (is_win) { |
| 233 | sources += [ |
| 234 | "win/audio_device_core_win.cc", |
| 235 | "win/audio_device_core_win.h", |
noahric | c594aa61 | 2016-08-16 18:21:18 -0700 | [diff] [blame] | 236 | ] |
| 237 | libs = [ |
| 238 | # Required for the built-in WASAPI AEC. |
| 239 | "dmoguids.lib", |
| 240 | "wmcodecdspuuid.lib", |
| 241 | "amstrmid.lib", |
| 242 | "msdmo.lib", |
| 243 | ] |
| 244 | } |
ehmaldonado | d02fe4b | 2016-08-26 13:31:24 -0700 | [diff] [blame] | 245 | configs += [ ":audio_device_warnings_config" ] |
kjellander@webrtc.org | c4870bb | 2014-09-01 04:24:11 +0000 | [diff] [blame] | 246 | } |
| 247 | } else { |
| 248 | defines = [ "WEBRTC_DUMMY_AUDIO_BUILD" ] |
| 249 | } |
| 250 | |
| 251 | if (!build_with_chromium) { |
| 252 | sources += [ |
| 253 | # Do not link these into Chrome since they contain static data. |
| 254 | "dummy/file_audio_device_factory.cc", |
| 255 | "dummy/file_audio_device_factory.h", |
| 256 | ] |
| 257 | } |
| 258 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 259 | if (!build_with_chromium && is_clang) { |
| 260 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 261 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander@webrtc.org | c4870bb | 2014-09-01 04:24:11 +0000 | [diff] [blame] | 262 | } |
kjellander@webrtc.org | c4870bb | 2014-09-01 04:24:11 +0000 | [diff] [blame] | 263 | } |
maxmorin | 6910537 | 2016-08-16 02:17:44 -0700 | [diff] [blame] | 264 | |
kjellander | 7439f97 | 2016-12-05 22:47:46 -0800 | [diff] [blame] | 265 | rtc_source_set("mac_portaudio") { |
| 266 | visibility = [ ":*" ] # Only targets in this file can depend on this. |
| 267 | sources = [ |
| 268 | "mac/portaudio/pa_memorybarrier.h", |
| 269 | "mac/portaudio/pa_ringbuffer.c", |
| 270 | "mac/portaudio/pa_ringbuffer.h", |
| 271 | ] |
| 272 | } |
| 273 | |
aleloi | 44c7ecf | 2016-11-10 08:16:25 -0800 | [diff] [blame] | 274 | config("mock_audio_device_config") { |
| 275 | if (is_win) { |
| 276 | cflags = [ |
| 277 | # TODO(phoglund): get rid of 4373 supression when |
| 278 | # http://code.google.com/p/webrtc/issues/detail?id=261 is solved. |
| 279 | # legacy warning for ignoring const / volatile in signatures. |
| 280 | "/wd4373", |
| 281 | ] |
| 282 | } |
| 283 | } |
| 284 | |
mbonadei | 3edccb9 | 2017-06-01 04:47:20 -0700 | [diff] [blame] | 285 | rtc_source_set("mock_audio_device") { |
| 286 | testonly = true |
| 287 | sources = [ |
| 288 | "include/mock_audio_device.h", |
| 289 | "include/mock_audio_transport.h", |
| 290 | ] |
| 291 | deps = [ |
| 292 | ":audio_device", |
| 293 | "../../test:test_support", |
| 294 | ] |
| 295 | all_dependent_configs = [ ":mock_audio_device_config" ] |
| 296 | } |
| 297 | |
aleloi | 5de52fd | 2016-11-10 01:05:34 -0800 | [diff] [blame] | 298 | if (rtc_include_tests) { |
mbonadei | bcc2176 | 2017-09-12 04:45:24 -0700 | [diff] [blame] | 299 | # TODO(kthelgason): Reenable these tests on simulator. |
| 300 | # See bugs.webrtc.org/7812 |
| 301 | if (is_ios && !use_ios_simulator) { |
| 302 | rtc_source_set("audio_device_ios_objc_unittests") { |
| 303 | testonly = true |
| 304 | visibility = [ ":*" ] |
| 305 | sources = [ |
| 306 | "ios/audio_device_unittest_ios.mm", |
| 307 | ] |
| 308 | deps = [ |
| 309 | ":audio_device", |
| 310 | ":mock_audio_device", |
| 311 | "../../rtc_base:rtc_base_approved", |
| 312 | "../../sdk:audio_objc", |
| 313 | "../../system_wrappers", |
| 314 | "../../test:test_support", |
| 315 | "//testing/gmock", |
| 316 | "//third_party/ocmock", |
| 317 | ] |
| 318 | if (!build_with_chromium && is_clang) { |
| 319 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 320 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 321 | } |
| 322 | } |
| 323 | } |
| 324 | |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 325 | rtc_source_set("audio_device_unittests") { |
| 326 | testonly = true |
kjellander | e0629c0 | 2017-04-25 04:04:50 -0700 | [diff] [blame] | 327 | |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 328 | sources = [ |
| 329 | "fine_audio_buffer_unittest.cc", |
| 330 | ] |
| 331 | deps = [ |
| 332 | ":audio_device", |
| 333 | ":mock_audio_device", |
kwiberg | 529662a | 2017-09-04 05:43:17 -0700 | [diff] [blame] | 334 | "../../api:array_view", |
kwiberg | 84f6a3f | 2017-09-05 08:43:13 -0700 | [diff] [blame] | 335 | "../../api:optional", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 336 | "../../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 337 | "../../rtc_base:rtc_base_approved", |
mbonadei | bcc2176 | 2017-09-12 04:45:24 -0700 | [diff] [blame] | 338 | "../../system_wrappers", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 339 | "../../test:test_support", |
| 340 | "../utility:utility", |
| 341 | "//testing/gmock", |
| 342 | ] |
henrika | 1b35bab | 2017-03-29 07:50:19 -0700 | [diff] [blame] | 343 | if (is_linux || is_mac || is_win) { |
henrika | f2f91fa | 2017-03-17 04:26:22 -0700 | [diff] [blame] | 344 | sources += [ "audio_device_unittest.cc" ] |
| 345 | } |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 346 | if (is_android) { |
| 347 | # Need to disable error due to the line in |
| 348 | # base/android/jni_android.h triggering it: |
| 349 | # const BASE_EXPORT jobject GetApplicationContext() |
| 350 | # error: type qualifiers ignored on function return type |
| 351 | cflags = [ "-Wno-ignored-qualifiers" ] |
| 352 | sources += [ |
| 353 | "android/audio_device_unittest.cc", |
| 354 | "android/audio_manager_unittest.cc", |
| 355 | "android/ensure_initialized.cc", |
| 356 | "android/ensure_initialized.h", |
| 357 | ] |
| 358 | deps += [ |
| 359 | "../../../base", |
jianjun.zhu | c024740 | 2017-07-11 06:20:45 -0700 | [diff] [blame] | 360 | "../../sdk/android:libjingle_peerconnection_java", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 361 | ] |
| 362 | } |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 363 | if (!build_with_chromium && is_clang) { |
| 364 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 365 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 366 | } |
Joachim Bauch | 5d2bb36 | 2017-12-20 21:19:49 +0100 | [diff] [blame] | 367 | if (!rtc_include_internal_audio_device) { |
| 368 | defines = [ "WEBRTC_DUMMY_AUDIO_BUILD" ] |
| 369 | } |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 370 | } |
maxmorin | 6910537 | 2016-08-16 02:17:44 -0700 | [diff] [blame] | 371 | } |
mbonadei | 438062b | 2017-01-09 02:37:21 -0800 | [diff] [blame] | 372 | |
| 373 | if (!build_with_chromium && is_android) { |
Mirko Bonadei | fbb3b7d | 2017-11-07 15:36:33 +0000 | [diff] [blame] | 374 | rtc_android_library("audio_device_java") { |
mbonadei | b55bd97 | 2017-01-23 01:25:53 -0800 | [diff] [blame] | 375 | java_files = [ |
mbonadei | 438062b | 2017-01-09 02:37:21 -0800 | [diff] [blame] | 376 | "android/java/src/org/webrtc/voiceengine/BuildInfo.java", |
| 377 | "android/java/src/org/webrtc/voiceengine/WebRtcAudioEffects.java", |
| 378 | "android/java/src/org/webrtc/voiceengine/WebRtcAudioManager.java", |
| 379 | "android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java", |
| 380 | "android/java/src/org/webrtc/voiceengine/WebRtcAudioTrack.java", |
| 381 | "android/java/src/org/webrtc/voiceengine/WebRtcAudioUtils.java", |
| 382 | ] |
mbonadei | b55bd97 | 2017-01-23 01:25:53 -0800 | [diff] [blame] | 383 | deps = [ |
jianjun.zhu | c024740 | 2017-07-11 06:20:45 -0700 | [diff] [blame] | 384 | "../../rtc_base:base_java", |
mbonadei | b55bd97 | 2017-01-23 01:25:53 -0800 | [diff] [blame] | 385 | ] |
mbonadei | 438062b | 2017-01-09 02:37:21 -0800 | [diff] [blame] | 386 | } |
| 387 | } |