2014-06-23 19:21:07 +00:00
|
|
|
# Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
#
|
|
|
|
|
# Use of this source code is governed by a BSD-style license
|
|
|
|
|
# that can be found in the LICENSE file in the root of the source
|
|
|
|
|
# tree. An additional intellectual property rights grant can be found
|
|
|
|
|
# in the file PATENTS. All contributing project authors may
|
|
|
|
|
# be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
|
2017-01-24 06:58:22 -08:00
|
|
|
import("../../webrtc.gni")
|
2014-06-23 19:21:07 +00:00
|
|
|
|
2017-01-09 02:37:21 -08:00
|
|
|
if (is_android) {
|
|
|
|
|
import("//build/config/android/config.gni")
|
|
|
|
|
import("//build/config/android/rules.gni")
|
|
|
|
|
}
|
|
|
|
|
|
2014-09-01 04:24:11 +00:00
|
|
|
config("audio_device_config") {
|
|
|
|
|
include_dirs = [
|
2015-11-04 08:31:52 +01:00
|
|
|
"../include",
|
2014-09-01 04:24:11 +00:00
|
|
|
"include",
|
|
|
|
|
"dummy", # Contains dummy audio device implementations.
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2016-08-26 13:31:24 -07:00
|
|
|
config("audio_device_warnings_config") {
|
|
|
|
|
if (is_win && is_clang) {
|
|
|
|
|
cflags = [
|
|
|
|
|
# Disable warnings failing when compiling with Clang on Windows.
|
|
|
|
|
# https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
|
|
|
|
|
"-Wno-bool-conversion",
|
|
|
|
|
"-Wno-delete-non-virtual-dtor",
|
|
|
|
|
"-Wno-logical-op-parentheses",
|
|
|
|
|
"-Wno-microsoft-extra-qualification",
|
|
|
|
|
"-Wno-microsoft-goto",
|
|
|
|
|
"-Wno-missing-braces",
|
|
|
|
|
"-Wno-parentheses-equality",
|
|
|
|
|
"-Wno-reorder",
|
|
|
|
|
"-Wno-shift-overflow",
|
|
|
|
|
"-Wno-tautological-compare",
|
|
|
|
|
|
|
|
|
|
# See https://bugs.chromium.org/p/webrtc/issues/detail?id=6265
|
|
|
|
|
# for -Wno-thread-safety-analysis
|
|
|
|
|
"-Wno-thread-safety-analysis",
|
|
|
|
|
"-Wno-unused-private-field",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-23 00:38:52 -07:00
|
|
|
rtc_static_library("audio_device") {
|
2016-09-05 06:10:18 -07:00
|
|
|
public_configs = [ ":audio_device_config" ]
|
2016-08-26 13:31:24 -07:00
|
|
|
|
2016-02-18 15:44:07 -08:00
|
|
|
deps = [
|
2017-04-26 03:38:35 -07:00
|
|
|
"..:module_api",
|
2016-02-18 15:44:07 -08:00
|
|
|
"../..:webrtc_common",
|
|
|
|
|
"../../base:rtc_base_approved",
|
2016-08-16 02:17:44 -07:00
|
|
|
"../../base:rtc_task_queue",
|
2016-02-18 15:44:07 -08:00
|
|
|
"../../common_audio",
|
|
|
|
|
"../../system_wrappers",
|
|
|
|
|
"../utility",
|
|
|
|
|
]
|
|
|
|
|
|
2014-09-01 04:24:11 +00:00
|
|
|
sources = [
|
|
|
|
|
"audio_device_buffer.cc",
|
|
|
|
|
"audio_device_buffer.h",
|
2015-05-25 12:55:39 +02:00
|
|
|
"audio_device_config.h",
|
2014-09-01 04:24:11 +00:00
|
|
|
"audio_device_generic.cc",
|
|
|
|
|
"audio_device_generic.h",
|
|
|
|
|
"dummy/audio_device_dummy.cc",
|
|
|
|
|
"dummy/audio_device_dummy.h",
|
|
|
|
|
"dummy/file_audio_device.cc",
|
|
|
|
|
"dummy/file_audio_device.h",
|
2015-09-07 16:09:50 +02:00
|
|
|
"fine_audio_buffer.cc",
|
|
|
|
|
"fine_audio_buffer.h",
|
2015-05-25 12:55:39 +02:00
|
|
|
"include/audio_device.h",
|
|
|
|
|
"include/audio_device_defines.h",
|
2014-09-01 04:24:11 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
include_dirs = []
|
|
|
|
|
if (is_linux) {
|
|
|
|
|
include_dirs += [ "linux" ]
|
|
|
|
|
}
|
|
|
|
|
if (is_ios) {
|
|
|
|
|
include_dirs += [ "ios" ]
|
|
|
|
|
}
|
|
|
|
|
if (is_mac) {
|
|
|
|
|
include_dirs += [ "mac" ]
|
|
|
|
|
}
|
|
|
|
|
if (is_win) {
|
|
|
|
|
include_dirs += [ "win" ]
|
|
|
|
|
}
|
|
|
|
|
if (is_android) {
|
|
|
|
|
include_dirs += [ "android" ]
|
|
|
|
|
}
|
2015-10-14 08:13:58 +02:00
|
|
|
defines = []
|
2015-11-23 17:23:44 -08:00
|
|
|
cflags = []
|
2014-09-07 17:36:10 +00:00
|
|
|
if (rtc_include_internal_audio_device) {
|
2014-09-01 04:24:11 +00:00
|
|
|
sources += [
|
2017-04-06 10:17:01 -07:00
|
|
|
"audio_device_data_observer.cc",
|
2015-05-20 09:44:38 +02:00
|
|
|
"audio_device_impl.cc",
|
|
|
|
|
"audio_device_impl.h",
|
2017-04-06 10:17:01 -07:00
|
|
|
"include/audio_device_data_observer.h",
|
2014-09-01 04:24:11 +00:00
|
|
|
]
|
2016-01-07 02:54:22 -08:00
|
|
|
if (is_android) {
|
|
|
|
|
sources += [
|
|
|
|
|
"android/audio_device_template.h",
|
|
|
|
|
"android/audio_manager.cc",
|
|
|
|
|
"android/audio_manager.h",
|
|
|
|
|
"android/audio_record_jni.cc",
|
|
|
|
|
"android/audio_record_jni.h",
|
|
|
|
|
"android/audio_track_jni.cc",
|
|
|
|
|
"android/audio_track_jni.h",
|
|
|
|
|
"android/build_info.cc",
|
|
|
|
|
"android/build_info.h",
|
|
|
|
|
"android/opensles_common.cc",
|
|
|
|
|
"android/opensles_common.h",
|
|
|
|
|
"android/opensles_player.cc",
|
|
|
|
|
"android/opensles_player.h",
|
2016-09-19 15:44:09 +02:00
|
|
|
"android/opensles_recorder.cc",
|
|
|
|
|
"android/opensles_recorder.h",
|
2016-01-07 02:54:22 -08:00
|
|
|
]
|
|
|
|
|
libs = [
|
|
|
|
|
"log",
|
|
|
|
|
"OpenSLES",
|
|
|
|
|
]
|
|
|
|
|
}
|
2016-08-16 18:21:18 -07:00
|
|
|
if (rtc_use_dummy_audio_file_devices) {
|
|
|
|
|
defines += [ "WEBRTC_DUMMY_FILE_DEVICES" ]
|
|
|
|
|
} else {
|
|
|
|
|
if (is_linux) {
|
2014-09-01 04:24:11 +00:00
|
|
|
sources += [
|
2016-08-16 18:21:18 -07:00
|
|
|
"linux/alsasymboltable_linux.cc",
|
|
|
|
|
"linux/alsasymboltable_linux.h",
|
|
|
|
|
"linux/audio_device_alsa_linux.cc",
|
|
|
|
|
"linux/audio_device_alsa_linux.h",
|
|
|
|
|
"linux/audio_mixer_manager_alsa_linux.cc",
|
|
|
|
|
"linux/audio_mixer_manager_alsa_linux.h",
|
|
|
|
|
"linux/latebindingsymboltable_linux.cc",
|
|
|
|
|
"linux/latebindingsymboltable_linux.h",
|
|
|
|
|
]
|
|
|
|
|
defines += [ "LINUX_ALSA" ]
|
|
|
|
|
libs = [
|
|
|
|
|
"dl",
|
|
|
|
|
"X11",
|
2014-09-01 04:24:11 +00:00
|
|
|
]
|
2016-08-16 18:21:18 -07:00
|
|
|
if (rtc_include_pulse_audio) {
|
|
|
|
|
sources += [
|
|
|
|
|
"linux/audio_device_pulse_linux.cc",
|
|
|
|
|
"linux/audio_device_pulse_linux.h",
|
|
|
|
|
"linux/audio_mixer_manager_pulse_linux.cc",
|
|
|
|
|
"linux/audio_mixer_manager_pulse_linux.h",
|
|
|
|
|
"linux/pulseaudiosymboltable_linux.cc",
|
|
|
|
|
"linux/pulseaudiosymboltable_linux.h",
|
|
|
|
|
]
|
|
|
|
|
defines += [ "LINUX_PULSE" ]
|
|
|
|
|
}
|
2014-09-01 04:24:11 +00:00
|
|
|
}
|
2016-08-16 18:21:18 -07:00
|
|
|
if (is_mac) {
|
|
|
|
|
sources += [
|
|
|
|
|
"mac/audio_device_mac.cc",
|
|
|
|
|
"mac/audio_device_mac.h",
|
|
|
|
|
"mac/audio_mixer_manager_mac.cc",
|
|
|
|
|
"mac/audio_mixer_manager_mac.h",
|
|
|
|
|
]
|
2016-12-05 22:47:46 -08:00
|
|
|
deps += [ ":mac_portaudio" ]
|
2016-08-16 18:21:18 -07:00
|
|
|
libs = [
|
2016-08-24 06:51:09 -07:00
|
|
|
# Needed for CoreGraphics:
|
|
|
|
|
"ApplicationServices.framework",
|
|
|
|
|
|
2016-08-16 18:21:18 -07:00
|
|
|
"AudioToolbox.framework",
|
|
|
|
|
"CoreAudio.framework",
|
2016-06-02 02:18:48 -07:00
|
|
|
|
2016-08-16 18:21:18 -07:00
|
|
|
# Needed for CGEventSourceKeyState in audio_device_mac.cc:
|
|
|
|
|
"CoreGraphics.framework",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
if (is_ios) {
|
|
|
|
|
public_deps = [
|
2017-05-09 15:09:37 -07:00
|
|
|
"../../base:gtest_prod",
|
2016-09-15 05:11:55 -07:00
|
|
|
"../../base:rtc_base",
|
Reland of Split iOS sdk in to separate targets (patchset #1 id:1 of https://codereview.webrtc.org/2911053002/ )
Reason for revert:
Take three of relanding this after all internal issues have been resolved.
Original issue's description:
> Revert of Split iOS sdk in to separate targets (patchset #3 id:320001 of https://codereview.webrtc.org/2893843003/ )
>
> Reason for revert:
> Breaks downstream project.
>
> Original issue's description:
> > Reland of Split iOS sdk in to separate targets (patchset #1 id:1 of https://codereview.webrtc.org/2893593002/ )
> >
> > Reason for revert:
> > Take two of fixing downstream issues?
> >
> > Original issue's description:
> > > Revert of Split iOS sdk in to separate targets (patchset #1 id:1 of https://codereview.webrtc.org/2890733003/ )
> > >
> > > Reason for revert:
> > > Still problems with downstream projects
> > >
> > > Original issue's description:
> > > > Reland of Split iOS sdk in to separate targets (patchset #1 id:1 of https://codereview.webrtc.org/2890513002/ )
> > > >
> > > > Reason for revert:
> > > > Fixing downstream breakages
> > > >
> > > > Original issue's description:
> > > > > Revert of Split iOS sdk in to separate targets (patchset #13 id:280001 of https://codereview.webrtc.org/2862543002/ )
> > > > >
> > > > > Reason for revert:
> > > > > Breaking downstream projects.
> > > > >
> > > > > Original issue's description:
> > > > > > Split iOS sdk in to separate targets
> > > > > >
> > > > > > This CL splits the iOS sdk into separate static libraries for video,
> > > > > > audio, ui, common, and peerconnection-related code. This will in the
> > > > > > future make it easier to compile WebRTC without unneeded components.
> > > > > >
> > > > > > BUG=webrtc:4867
> > > > > >
> > > > > > Review-Url: https://codereview.webrtc.org/2862543002
> > > > > > Cr-Commit-Position: refs/heads/master@{#18166}
> > > > > > Committed: https://chromium.googlesource.com/external/webrtc/+/52c83fe7102f566cf35a7533092873d58b38f426
> > > > >
> > > > > TBR=magjed@webrtc.org,denicija@webrtc.org,tkchin@webrtc.org,henrika@webrtc.org,kthelgason@webrtc.org
> > > > > # Skipping CQ checks because original CL landed less than 1 days ago.
> > > > > NOPRESUBMIT=true
> > > > > NOTREECHECKS=true
> > > > > NOTRY=true
> > > > > BUG=webrtc:4867
> > > > >
> > > > > Review-Url: https://codereview.webrtc.org/2890513002
> > > > > Cr-Commit-Position: refs/heads/master@{#18170}
> > > > > Committed: https://chromium.googlesource.com/external/webrtc/+/9756238084707787f735e1294e896e462e459717
> > > >
> > > > TBR=magjed@webrtc.org,denicija@webrtc.org,tkchin@webrtc.org,henrika@webrtc.org,charujain@webrtc.org
> > > > # Skipping CQ checks because original CL landed less than 1 days ago.
> > > > NOPRESUBMIT=true
> > > > NOTREECHECKS=true
> > > > NOTRY=true
> > > > BUG=webrtc:4867
> > > >
> > > > Review-Url: https://codereview.webrtc.org/2890733003
> > > > Cr-Commit-Position: refs/heads/master@{#18174}
> > > > Committed: https://chromium.googlesource.com/external/webrtc/+/d51e042492bedd057bc0cac7828979d5c7369cea
> > >
> > > TBR=magjed@webrtc.org,denicija@webrtc.org,tkchin@webrtc.org,henrika@webrtc.org,charujain@webrtc.org
> > > # Skipping CQ checks because original CL landed less than 1 days ago.
> > > NOPRESUBMIT=true
> > > NOTREECHECKS=true
> > > NOTRY=true
> > > BUG=webrtc:4867
> > >
> > > Review-Url: https://codereview.webrtc.org/2893593002
> > > Cr-Commit-Position: refs/heads/master@{#18182}
> > > Committed: https://chromium.googlesource.com/external/webrtc/+/37144b214e2baf62ecb262ab878dde8c59cdd6a3
> >
> > TBR=magjed@webrtc.org,denicija@webrtc.org,tkchin@webrtc.org,henrika@webrtc.org,charujain@webrtc.org
> > # Skipping CQ checks because original CL landed less than 1 days ago.
> > NOPRESUBMIT=true
> > NOTREECHECKS=true
> > NOTRY=true
> > BUG=webrtc:4867
> >
> > Review-Url: https://codereview.webrtc.org/2893843003
> > Cr-Commit-Position: refs/heads/master@{#18303}
> > Committed: https://chromium.googlesource.com/external/webrtc/+/580c3522d294c877adfe555048c675bd8d166657
>
> TBR=magjed@webrtc.org,denicija@webrtc.org,tkchin@webrtc.org,henrika@webrtc.org,charujain@webrtc.org,kthelgason@webrtc.org
> # Skipping CQ checks because original CL landed less than 1 days ago.
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
> BUG=webrtc:4867
>
> Review-Url: https://codereview.webrtc.org/2911053002
> Cr-Commit-Position: refs/heads/master@{#18309}
> Committed: https://chromium.googlesource.com/external/webrtc/+/af5c05540cc8208f682cafe88c5c16a505479196
TBR=magjed@webrtc.org,denicija@webrtc.org,tkchin@webrtc.org,henrika@webrtc.org,charujain@webrtc.org,mbonadei@webrtc.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=webrtc:4867
Review-Url: https://codereview.webrtc.org/2913753003
Cr-Commit-Position: refs/heads/master@{#18319}
2017-05-30 01:48:47 -07:00
|
|
|
"../../sdk:objc_common",
|
2016-08-16 18:21:18 -07:00
|
|
|
]
|
|
|
|
|
sources += [
|
|
|
|
|
"ios/audio_device_ios.h",
|
|
|
|
|
"ios/audio_device_ios.mm",
|
|
|
|
|
"ios/audio_device_not_implemented_ios.mm",
|
|
|
|
|
"ios/audio_session_observer.h",
|
|
|
|
|
"ios/objc/RTCAudioSession+Configuration.mm",
|
|
|
|
|
"ios/objc/RTCAudioSession+Private.h",
|
|
|
|
|
"ios/objc/RTCAudioSession.h",
|
|
|
|
|
"ios/objc/RTCAudioSession.mm",
|
|
|
|
|
"ios/objc/RTCAudioSessionConfiguration.h",
|
|
|
|
|
"ios/objc/RTCAudioSessionConfiguration.m",
|
|
|
|
|
"ios/objc/RTCAudioSessionDelegateAdapter.h",
|
|
|
|
|
"ios/objc/RTCAudioSessionDelegateAdapter.mm",
|
|
|
|
|
"ios/voice_processing_audio_unit.h",
|
|
|
|
|
"ios/voice_processing_audio_unit.mm",
|
|
|
|
|
]
|
|
|
|
|
libs = [
|
|
|
|
|
"AudioToolbox.framework",
|
|
|
|
|
"AVFoundation.framework",
|
|
|
|
|
"Foundation.framework",
|
|
|
|
|
"UIKit.framework",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
if (is_win) {
|
|
|
|
|
sources += [
|
|
|
|
|
"win/audio_device_core_win.cc",
|
|
|
|
|
"win/audio_device_core_win.h",
|
|
|
|
|
]
|
|
|
|
|
libs = [
|
|
|
|
|
# Required for the built-in WASAPI AEC.
|
|
|
|
|
"dmoguids.lib",
|
|
|
|
|
"wmcodecdspuuid.lib",
|
|
|
|
|
"amstrmid.lib",
|
|
|
|
|
"msdmo.lib",
|
|
|
|
|
]
|
|
|
|
|
}
|
2016-08-26 13:31:24 -07:00
|
|
|
configs += [ ":audio_device_warnings_config" ]
|
2014-09-01 04:24:11 +00:00
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
defines = [ "WEBRTC_DUMMY_AUDIO_BUILD" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!build_with_chromium) {
|
|
|
|
|
sources += [
|
|
|
|
|
# Do not link these into Chrome since they contain static data.
|
|
|
|
|
"dummy/file_audio_device_factory.cc",
|
|
|
|
|
"dummy/file_audio_device_factory.h",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2016-10-16 23:56:12 -07:00
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
2016-09-02 04:10:34 -07:00
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
2014-09-01 04:24:11 +00:00
|
|
|
}
|
2014-06-23 19:21:07 +00:00
|
|
|
}
|
2016-08-16 02:17:44 -07:00
|
|
|
|
2016-12-05 22:47:46 -08:00
|
|
|
rtc_source_set("mac_portaudio") {
|
|
|
|
|
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
|
|
|
|
sources = [
|
|
|
|
|
"mac/portaudio/pa_memorybarrier.h",
|
|
|
|
|
"mac/portaudio/pa_ringbuffer.c",
|
|
|
|
|
"mac/portaudio/pa_ringbuffer.h",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2016-11-10 08:16:25 -08:00
|
|
|
config("mock_audio_device_config") {
|
|
|
|
|
if (is_win) {
|
|
|
|
|
cflags = [
|
|
|
|
|
# TODO(phoglund): get rid of 4373 supression when
|
|
|
|
|
# http://code.google.com/p/webrtc/issues/detail?id=261 is solved.
|
|
|
|
|
# legacy warning for ignoring const / volatile in signatures.
|
|
|
|
|
"/wd4373",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-11-10 01:05:34 -08:00
|
|
|
if (rtc_include_tests) {
|
2017-01-19 08:27:11 -08:00
|
|
|
rtc_source_set("audio_device_unittests") {
|
2016-11-10 01:05:34 -08:00
|
|
|
testonly = true
|
2017-04-25 04:04:50 -07:00
|
|
|
|
|
|
|
|
# Skip restricting visibility on mobile platforms since the tests on those
|
|
|
|
|
# gets additional generated targets which would require many lines here to
|
|
|
|
|
# cover (which would be confusing to read and hard to maintain).
|
|
|
|
|
if (!is_android && !is_ios) {
|
|
|
|
|
visibility = [ "//webrtc/modules:modules_unittests" ]
|
|
|
|
|
}
|
2016-11-10 01:05:34 -08:00
|
|
|
sources = [
|
2017-01-19 08:27:11 -08:00
|
|
|
"fine_audio_buffer_unittest.cc",
|
2016-11-10 01:05:34 -08:00
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":audio_device",
|
2017-01-19 08:27:11 -08:00
|
|
|
":mock_audio_device",
|
|
|
|
|
"../../base:rtc_base_approved",
|
|
|
|
|
"../../system_wrappers:system_wrappers",
|
2016-11-10 01:05:34 -08:00
|
|
|
"../../test:test_support",
|
2017-01-19 08:27:11 -08:00
|
|
|
"../utility:utility",
|
|
|
|
|
"//testing/gmock",
|
2016-11-10 01:05:34 -08:00
|
|
|
]
|
2017-03-29 07:50:19 -07:00
|
|
|
if (is_linux || is_mac || is_win) {
|
2017-03-17 04:26:22 -07:00
|
|
|
sources += [ "audio_device_unittest.cc" ]
|
|
|
|
|
}
|
2017-01-19 08:27:11 -08:00
|
|
|
if (is_android) {
|
|
|
|
|
# Need to disable error due to the line in
|
|
|
|
|
# base/android/jni_android.h triggering it:
|
|
|
|
|
# const BASE_EXPORT jobject GetApplicationContext()
|
|
|
|
|
# error: type qualifiers ignored on function return type
|
|
|
|
|
cflags = [ "-Wno-ignored-qualifiers" ]
|
|
|
|
|
sources += [
|
|
|
|
|
"android/audio_device_unittest.cc",
|
|
|
|
|
"android/audio_manager_unittest.cc",
|
|
|
|
|
"android/ensure_initialized.cc",
|
|
|
|
|
"android/ensure_initialized.h",
|
|
|
|
|
]
|
|
|
|
|
deps += [
|
|
|
|
|
"../../../base",
|
|
|
|
|
"//webrtc/sdk/android:libjingle_peerconnection_java",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
if (is_ios) {
|
|
|
|
|
sources += [ "ios/objc/RTCAudioSessionTest.mm" ]
|
|
|
|
|
if (target_cpu != "x64") {
|
2017-05-09 15:09:37 -07:00
|
|
|
sources += [ "ios/audio_device_unittest_ios.mm" ]
|
2017-01-19 08:27:11 -08:00
|
|
|
}
|
2017-04-21 13:56:39 -07:00
|
|
|
deps += [ "//third_party/ocmock" ]
|
2017-01-19 08:27:11 -08:00
|
|
|
}
|
|
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
|
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
|
|
|
|
}
|
2016-11-10 01:05:34 -08:00
|
|
|
}
|
|
|
|
|
|
2017-01-19 08:27:11 -08:00
|
|
|
rtc_source_set("mock_audio_device") {
|
2016-08-16 02:17:44 -07:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
2017-01-19 08:27:11 -08:00
|
|
|
"include/mock_audio_device.h",
|
|
|
|
|
"include/mock_audio_transport.h",
|
2016-08-16 02:17:44 -07:00
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":audio_device",
|
|
|
|
|
"../../test:test_support",
|
|
|
|
|
]
|
2017-01-19 08:27:11 -08:00
|
|
|
all_dependent_configs = [ ":mock_audio_device_config" ]
|
|
|
|
|
}
|
2017-02-26 07:12:50 -08:00
|
|
|
|
|
|
|
|
if (!is_ios) {
|
|
|
|
|
# These tests do not work on ios, see
|
|
|
|
|
# https://bugs.chromium.org/p/webrtc/issues/detail?id=4755
|
|
|
|
|
rtc_executable("audio_device_tests") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"test/audio_device_test_api.cc",
|
|
|
|
|
"test/audio_device_test_defines.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":audio_device",
|
|
|
|
|
"../..:webrtc_common",
|
2017-03-03 03:20:24 -08:00
|
|
|
"../../base:rtc_base_approved",
|
2017-02-26 07:12:50 -08:00
|
|
|
"../../system_wrappers",
|
|
|
|
|
"../../test:test_main",
|
|
|
|
|
"../../test:test_support",
|
|
|
|
|
"../rtp_rtcp",
|
|
|
|
|
"../utility",
|
|
|
|
|
"//testing/gtest",
|
|
|
|
|
]
|
|
|
|
|
public_configs = [ ":audio_device_config" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-08-16 02:17:44 -07:00
|
|
|
}
|
2017-01-09 02:37:21 -08:00
|
|
|
|
|
|
|
|
if (!build_with_chromium && is_android) {
|
2017-01-23 01:25:53 -08:00
|
|
|
android_library("audio_device_java") {
|
|
|
|
|
java_files = [
|
2017-01-09 02:37:21 -08:00
|
|
|
"android/java/src/org/webrtc/voiceengine/BuildInfo.java",
|
|
|
|
|
"android/java/src/org/webrtc/voiceengine/WebRtcAudioEffects.java",
|
|
|
|
|
"android/java/src/org/webrtc/voiceengine/WebRtcAudioManager.java",
|
|
|
|
|
"android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java",
|
|
|
|
|
"android/java/src/org/webrtc/voiceengine/WebRtcAudioTrack.java",
|
|
|
|
|
"android/java/src/org/webrtc/voiceengine/WebRtcAudioUtils.java",
|
|
|
|
|
]
|
2017-01-23 01:25:53 -08:00
|
|
|
deps = [
|
|
|
|
|
"//webrtc/base:base_java",
|
|
|
|
|
]
|
2017-01-09 02:37:21 -08:00
|
|
|
}
|
|
|
|
|
}
|