2012-03-15 18:34:13 +00:00
|
|
|
# Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
2011-07-07 08:21:25 +00:00
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
'targets': [
|
|
|
|
|
{
|
|
|
|
|
'target_name': 'audio_device',
|
|
|
|
|
'type': '<(library)',
|
|
|
|
|
'dependencies': [
|
2011-09-12 12:24:39 +00:00
|
|
|
'<(webrtc_root)/common_audio/common_audio.gyp:resampler',
|
2011-11-17 08:35:47 +00:00
|
|
|
'<(webrtc_root)/common_audio/common_audio.gyp:signal_processing',
|
2011-09-12 12:24:39 +00:00
|
|
|
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
|
2011-07-07 08:21:25 +00:00
|
|
|
],
|
|
|
|
|
'include_dirs': [
|
|
|
|
|
'.',
|
|
|
|
|
'../../../interface',
|
|
|
|
|
'../interface',
|
2011-08-11 12:41:56 +00:00
|
|
|
'dummy', # dummy audio device
|
2011-07-07 08:21:25 +00:00
|
|
|
],
|
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
|
'include_dirs': [
|
|
|
|
|
'../../../../',
|
|
|
|
|
'../../../interface',
|
|
|
|
|
'../interface',
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
# TODO(xians): Rename files to e.g. *_linux.{ext}, remove sources in conditions section
|
|
|
|
|
'sources': [
|
|
|
|
|
'../interface/audio_device.h',
|
|
|
|
|
'../interface/audio_device_defines.h',
|
|
|
|
|
'audio_device_buffer.cc',
|
|
|
|
|
'audio_device_buffer.h',
|
|
|
|
|
'audio_device_generic.cc',
|
|
|
|
|
'audio_device_generic.h',
|
|
|
|
|
'audio_device_utility.cc',
|
|
|
|
|
'audio_device_utility.h',
|
|
|
|
|
'audio_device_impl.cc',
|
|
|
|
|
'audio_device_impl.h',
|
|
|
|
|
'audio_device_config.h',
|
2011-08-11 12:41:56 +00:00
|
|
|
'dummy/audio_device_dummy.h',
|
|
|
|
|
'dummy/audio_device_utility_dummy.h',
|
2011-07-07 08:21:25 +00:00
|
|
|
],
|
|
|
|
|
'conditions': [
|
|
|
|
|
['OS=="linux"', {
|
|
|
|
|
'include_dirs': [
|
2011-08-11 12:41:56 +00:00
|
|
|
'linux',
|
2011-07-07 08:21:25 +00:00
|
|
|
],
|
2011-08-16 07:44:19 +00:00
|
|
|
}], # OS==linux
|
|
|
|
|
['OS=="mac"', {
|
|
|
|
|
'include_dirs': [
|
|
|
|
|
'mac',
|
2011-07-07 08:21:25 +00:00
|
|
|
],
|
2011-08-16 07:44:19 +00:00
|
|
|
}], # OS==mac
|
|
|
|
|
['OS=="win"', {
|
|
|
|
|
'include_dirs': [
|
|
|
|
|
'win',
|
|
|
|
|
'../../../../../..',
|
|
|
|
|
],
|
|
|
|
|
}],
|
2012-02-22 16:04:59 +00:00
|
|
|
['OS=="android"', {
|
|
|
|
|
'include_dirs': [
|
|
|
|
|
'android',
|
|
|
|
|
],
|
|
|
|
|
}], # OS==android
|
2011-08-16 07:44:19 +00:00
|
|
|
['include_internal_audio_device==0', {
|
|
|
|
|
'defines': [
|
|
|
|
|
'WEBRTC_DUMMY_AUDIO_BUILD',
|
|
|
|
|
],
|
|
|
|
|
}],
|
|
|
|
|
['include_internal_audio_device==1', {
|
|
|
|
|
'sources': [
|
|
|
|
|
'linux/alsasymboltable_linux.cc',
|
|
|
|
|
'linux/alsasymboltable_linux.h',
|
|
|
|
|
'linux/audio_device_alsa_linux.cc',
|
|
|
|
|
'linux/audio_device_alsa_linux.h',
|
|
|
|
|
'linux/audio_device_utility_linux.cc',
|
|
|
|
|
'linux/audio_device_utility_linux.h',
|
|
|
|
|
'linux/audio_mixer_manager_alsa_linux.cc',
|
|
|
|
|
'linux/audio_mixer_manager_alsa_linux.h',
|
|
|
|
|
'linux/latebindingsymboltable_linux.cc',
|
|
|
|
|
'linux/latebindingsymboltable_linux.h',
|
|
|
|
|
'mac/audio_device_mac.cc',
|
|
|
|
|
'mac/audio_device_mac.h',
|
|
|
|
|
'mac/audio_device_utility_mac.cc',
|
|
|
|
|
'mac/audio_device_utility_mac.h',
|
|
|
|
|
'mac/audio_mixer_manager_mac.cc',
|
|
|
|
|
'mac/audio_mixer_manager_mac.h',
|
|
|
|
|
'mac/portaudio/pa_memorybarrier.h',
|
|
|
|
|
'mac/portaudio/pa_ringbuffer.c',
|
|
|
|
|
'mac/portaudio/pa_ringbuffer.h',
|
|
|
|
|
'win/audio_device_core_win.cc',
|
|
|
|
|
'win/audio_device_core_win.h',
|
|
|
|
|
'win/audio_device_wave_win.cc',
|
|
|
|
|
'win/audio_device_wave_win.h',
|
|
|
|
|
'win/audio_device_utility_win.cc',
|
|
|
|
|
'win/audio_device_utility_win.h',
|
|
|
|
|
'win/audio_mixer_manager_win.cc',
|
|
|
|
|
'win/audio_mixer_manager_win.h',
|
2012-02-22 16:04:59 +00:00
|
|
|
'android/audio_device_android_opensles.cc',
|
|
|
|
|
'android/audio_device_android_opensles.h',
|
|
|
|
|
'android/audio_device_utility_android.cc',
|
|
|
|
|
'android/audio_device_utility_android.h',
|
2011-08-16 07:44:19 +00:00
|
|
|
],
|
2011-07-21 20:45:31 +00:00
|
|
|
'conditions': [
|
2012-03-02 17:12:14 +00:00
|
|
|
['OS=="android"', {
|
|
|
|
|
'link_settings': {
|
|
|
|
|
'libraries': [
|
|
|
|
|
'-llog',
|
|
|
|
|
'-lOpenSLES',
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
}],
|
2011-08-16 07:44:19 +00:00
|
|
|
['OS=="linux"', {
|
2011-07-21 20:45:31 +00:00
|
|
|
'defines': [
|
2011-08-16 07:44:19 +00:00
|
|
|
'LINUX_ALSA',
|
2011-07-21 20:45:31 +00:00
|
|
|
],
|
2011-08-16 07:44:19 +00:00
|
|
|
'link_settings': {
|
|
|
|
|
'libraries': [
|
|
|
|
|
'-ldl',
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
'conditions': [
|
|
|
|
|
['include_pulse_audio==1', {
|
|
|
|
|
'defines': [
|
|
|
|
|
'LINUX_PULSE',
|
|
|
|
|
],
|
|
|
|
|
'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',
|
|
|
|
|
],
|
|
|
|
|
}],
|
2011-07-21 20:45:31 +00:00
|
|
|
],
|
2011-08-16 07:44:19 +00:00
|
|
|
}],
|
|
|
|
|
['OS=="mac"', {
|
2011-07-21 20:45:31 +00:00
|
|
|
'link_settings': {
|
|
|
|
|
'libraries': [
|
2011-08-16 07:44:19 +00:00
|
|
|
'$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework',
|
|
|
|
|
'$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework',
|
2011-07-21 20:45:31 +00:00
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
}],
|
2011-09-13 17:17:49 +00:00
|
|
|
['OS=="win"', {
|
|
|
|
|
'link_settings': {
|
|
|
|
|
'libraries': [
|
|
|
|
|
# Required for the built-in WASAPI AEC.
|
|
|
|
|
'-ldmoguids.lib',
|
|
|
|
|
'-lwmcodecdspuuid.lib',
|
|
|
|
|
'-lamstrmid.lib',
|
|
|
|
|
'-lmsdmo.lib',
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
}],
|
2011-08-16 07:44:19 +00:00
|
|
|
], # conditions
|
|
|
|
|
}], # include_internal_audio_device==1
|
|
|
|
|
], # conditions
|
2011-07-07 08:21:25 +00:00
|
|
|
},
|
2011-08-05 12:04:30 +00:00
|
|
|
],
|
2012-03-09 08:11:04 +00:00
|
|
|
'conditions': [
|
2012-05-24 13:23:35 +00:00
|
|
|
['include_tests==1', {
|
2011-08-05 12:04:30 +00:00
|
|
|
'targets': [
|
|
|
|
|
{
|
|
|
|
|
'target_name': 'audio_device_test_api',
|
|
|
|
|
'type': 'executable',
|
|
|
|
|
'dependencies': [
|
2011-08-05 08:32:13 +00:00
|
|
|
'audio_device',
|
2011-09-12 12:24:39 +00:00
|
|
|
'webrtc_utility',
|
2012-06-27 01:41:54 +00:00
|
|
|
'<(webrtc_root)/test/test.gyp:test_support_main',
|
|
|
|
|
'<(DEPTH)/testing/gtest.gyp:gtest',
|
2011-09-12 12:24:39 +00:00
|
|
|
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
|
2011-08-05 08:32:13 +00:00
|
|
|
],
|
|
|
|
|
'sources': [
|
|
|
|
|
'../test/audio_device_test_api.cc',
|
|
|
|
|
'../test/audio_device_test_defines.h',
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'target_name': 'audio_device_test_func',
|
|
|
|
|
'type': 'executable',
|
|
|
|
|
'dependencies': [
|
|
|
|
|
'audio_device',
|
2011-09-12 12:24:39 +00:00
|
|
|
'webrtc_utility',
|
|
|
|
|
'<(webrtc_root)/common_audio/common_audio.gyp:resampler',
|
|
|
|
|
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
|
2012-06-27 01:41:54 +00:00
|
|
|
'<(webrtc_root)/test/test.gyp:test_support',
|
|
|
|
|
'<(DEPTH)/testing/gtest.gyp:gtest',
|
2011-08-05 08:32:13 +00:00
|
|
|
],
|
|
|
|
|
'sources': [
|
|
|
|
|
'../test/audio_device_test_func.cc',
|
|
|
|
|
'../test/audio_device_test_defines.h',
|
|
|
|
|
'../test/func_test_manager.cc',
|
|
|
|
|
'../test/func_test_manager.h',
|
|
|
|
|
],
|
2011-08-05 12:04:30 +00:00
|
|
|
},
|
2011-07-07 08:21:25 +00:00
|
|
|
],
|
2011-08-05 12:04:30 +00:00
|
|
|
}],
|
2011-07-07 08:21:25 +00:00
|
|
|
],
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Local Variables:
|
|
|
|
|
# tab-width:2
|
|
|
|
|
# indent-tabs-mode:nil
|
|
|
|
|
# End:
|
|
|
|
|
# vim: set expandtab tabstop=2 shiftwidth=2:
|