| OLD | NEW |
| 1 # Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license | 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 | 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 | 5 # tree. An additional intellectual property rights grant can be found |
| 6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
| 7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
| 8 | 8 |
| 9 { | 9 { |
| 10 'targets': [ | 10 'targets': [ |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 }], | 86 }], |
| 87 ['include_internal_audio_device==1', { | 87 ['include_internal_audio_device==1', { |
| 88 'sources': [ | 88 'sources': [ |
| 89 'audio_device_impl.cc', | 89 'audio_device_impl.cc', |
| 90 'audio_device_impl.h', | 90 'audio_device_impl.h', |
| 91 ], | 91 ], |
| 92 'dependencies': [ | 92 'dependencies': [ |
| 93 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:metrics_default'
, | 93 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:metrics_default'
, |
| 94 ], | 94 ], |
| 95 'conditions': [ | 95 'conditions': [ |
| 96 ['OS=="android"', { | 96 ['use_dummy_audio_file_devices==1', { |
| 97 'sources': [ | 97 'defines': [ |
| 98 'android/audio_device_template.h', | 98 'WEBRTC_DUMMY_FILE_DEVICES', |
| 99 'android/audio_manager.cc', | |
| 100 'android/audio_manager.h', | |
| 101 'android/audio_record_jni.cc', | |
| 102 'android/audio_record_jni.h', | |
| 103 'android/audio_track_jni.cc', | |
| 104 'android/audio_track_jni.h', | |
| 105 'android/build_info.cc', | |
| 106 'android/build_info.h', | |
| 107 'android/opensles_common.cc', | |
| 108 'android/opensles_common.h', | |
| 109 'android/opensles_player.cc', | |
| 110 'android/opensles_player.h', | |
| 111 ], | 99 ], |
| 112 'link_settings': { | 100 }, { # use_dummy_audio_file_devices==0, so use a platform device. |
| 113 'libraries': [ | |
| 114 '-llog', | |
| 115 '-lOpenSLES', | |
| 116 ], | |
| 117 }, | |
| 118 }], | |
| 119 ['OS=="linux"', { | |
| 120 'sources': [ | |
| 121 'linux/alsasymboltable_linux.cc', | |
| 122 'linux/alsasymboltable_linux.h', | |
| 123 'linux/audio_device_alsa_linux.cc', | |
| 124 'linux/audio_device_alsa_linux.h', | |
| 125 'linux/audio_mixer_manager_alsa_linux.cc', | |
| 126 'linux/audio_mixer_manager_alsa_linux.h', | |
| 127 'linux/latebindingsymboltable_linux.cc', | |
| 128 'linux/latebindingsymboltable_linux.h', | |
| 129 ], | |
| 130 'defines': [ | |
| 131 'LINUX_ALSA', | |
| 132 ], | |
| 133 'link_settings': { | |
| 134 'libraries': [ | |
| 135 '-ldl','-lX11', | |
| 136 ], | |
| 137 }, | |
| 138 'conditions': [ | 101 'conditions': [ |
| 139 ['include_pulse_audio==1', { | 102 ['OS=="android"', { |
| 103 'sources': [ |
| 104 'android/audio_device_template.h', |
| 105 'android/audio_manager.cc', |
| 106 'android/audio_manager.h', |
| 107 'android/audio_record_jni.cc', |
| 108 'android/audio_record_jni.h', |
| 109 'android/audio_track_jni.cc', |
| 110 'android/audio_track_jni.h', |
| 111 'android/build_info.cc', |
| 112 'android/build_info.h', |
| 113 'android/opensles_common.cc', |
| 114 'android/opensles_common.h', |
| 115 'android/opensles_player.cc', |
| 116 'android/opensles_player.h', |
| 117 ], |
| 118 'link_settings': { |
| 119 'libraries': [ |
| 120 '-llog', |
| 121 '-lOpenSLES', |
| 122 ], |
| 123 }, |
| 124 }], |
| 125 ['OS=="linux"', { |
| 126 'sources': [ |
| 127 'linux/alsasymboltable_linux.cc', |
| 128 'linux/alsasymboltable_linux.h', |
| 129 'linux/audio_device_alsa_linux.cc', |
| 130 'linux/audio_device_alsa_linux.h', |
| 131 'linux/audio_mixer_manager_alsa_linux.cc', |
| 132 'linux/audio_mixer_manager_alsa_linux.h', |
| 133 'linux/latebindingsymboltable_linux.cc', |
| 134 'linux/latebindingsymboltable_linux.h', |
| 135 ], |
| 140 'defines': [ | 136 'defines': [ |
| 141 'LINUX_PULSE', | 137 'LINUX_ALSA', |
| 138 ], |
| 139 'link_settings': { |
| 140 'libraries': [ |
| 141 '-ldl','-lX11', |
| 142 ], |
| 143 }, |
| 144 'conditions': [ |
| 145 ['include_pulse_audio==1', { |
| 146 'defines': [ |
| 147 'LINUX_PULSE', |
| 148 ], |
| 149 'sources': [ |
| 150 'linux/audio_device_pulse_linux.cc', |
| 151 'linux/audio_device_pulse_linux.h', |
| 152 'linux/audio_mixer_manager_pulse_linux.cc', |
| 153 'linux/audio_mixer_manager_pulse_linux.h', |
| 154 'linux/pulseaudiosymboltable_linux.cc', |
| 155 'linux/pulseaudiosymboltable_linux.h', |
| 156 ], |
| 157 }], |
| 158 ], |
| 159 }], |
| 160 ['OS=="mac"', { |
| 161 'sources': [ |
| 162 'mac/audio_device_mac.cc', |
| 163 'mac/audio_device_mac.h', |
| 164 'mac/audio_mixer_manager_mac.cc', |
| 165 'mac/audio_mixer_manager_mac.h', |
| 166 'mac/portaudio/pa_memorybarrier.h', |
| 167 'mac/portaudio/pa_ringbuffer.c', |
| 168 'mac/portaudio/pa_ringbuffer.h', |
| 169 ], |
| 170 'link_settings': { |
| 171 'libraries': [ |
| 172 '$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framewo
rk', |
| 173 '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework'
, |
| 174 ], |
| 175 }, |
| 176 }], |
| 177 ['OS=="ios"', { |
| 178 'dependencies': [ |
| 179 '<(webrtc_root)/sdk/sdk.gyp:rtc_sdk_common_objc', |
| 180 ], |
| 181 'export_dependent_settings': [ |
| 182 '<(webrtc_root)/sdk/sdk.gyp:rtc_sdk_common_objc', |
| 142 ], | 183 ], |
| 143 'sources': [ | 184 'sources': [ |
| 144 'linux/audio_device_pulse_linux.cc', | 185 'ios/audio_device_ios.h', |
| 145 'linux/audio_device_pulse_linux.h', | 186 'ios/audio_device_ios.mm', |
| 146 'linux/audio_mixer_manager_pulse_linux.cc', | 187 'ios/audio_device_not_implemented_ios.mm', |
| 147 'linux/audio_mixer_manager_pulse_linux.h', | 188 'ios/audio_session_observer.h', |
| 148 'linux/pulseaudiosymboltable_linux.cc', | 189 'ios/objc/RTCAudioSession+Configuration.mm', |
| 149 'linux/pulseaudiosymboltable_linux.h', | 190 'ios/objc/RTCAudioSession+Private.h', |
| 191 'ios/objc/RTCAudioSession.h', |
| 192 'ios/objc/RTCAudioSession.mm', |
| 193 'ios/objc/RTCAudioSessionConfiguration.h', |
| 194 'ios/objc/RTCAudioSessionConfiguration.m', |
| 195 'ios/objc/RTCAudioSessionDelegateAdapter.h', |
| 196 'ios/objc/RTCAudioSessionDelegateAdapter.mm', |
| 197 'ios/voice_processing_audio_unit.h', |
| 198 'ios/voice_processing_audio_unit.mm', |
| 150 ], | 199 ], |
| 200 'xcode_settings': { |
| 201 'CLANG_ENABLE_OBJC_ARC': 'YES', |
| 202 }, |
| 203 'link_settings': { |
| 204 'xcode_settings': { |
| 205 'OTHER_LDFLAGS': [ |
| 206 '-framework AudioToolbox', |
| 207 '-framework AVFoundation', |
| 208 '-framework Foundation', |
| 209 '-framework UIKit', |
| 210 ], |
| 211 }, |
| 212 }, |
| 151 }], | 213 }], |
| 152 ], | 214 ['OS=="win"', { |
| 153 }], | 215 'sources': [ |
| 154 ['OS=="mac"', { | 216 'win/audio_device_core_win.cc', |
| 155 'sources': [ | 217 'win/audio_device_core_win.h', |
| 156 'mac/audio_device_mac.cc', | 218 'win/audio_device_wave_win.cc', |
| 157 'mac/audio_device_mac.h', | 219 'win/audio_device_wave_win.h', |
| 158 'mac/audio_mixer_manager_mac.cc', | 220 'win/audio_mixer_manager_win.cc', |
| 159 'mac/audio_mixer_manager_mac.h', | 221 'win/audio_mixer_manager_win.h', |
| 160 'mac/portaudio/pa_memorybarrier.h', | |
| 161 'mac/portaudio/pa_ringbuffer.c', | |
| 162 'mac/portaudio/pa_ringbuffer.h', | |
| 163 ], | |
| 164 'link_settings': { | |
| 165 'libraries': [ | |
| 166 '$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework', | |
| 167 '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework', | |
| 168 ], | |
| 169 }, | |
| 170 }], | |
| 171 ['OS=="ios"', { | |
| 172 'dependencies': [ | |
| 173 '<(webrtc_root)/sdk/sdk.gyp:rtc_sdk_common_objc', | |
| 174 ], | |
| 175 'export_dependent_settings': [ | |
| 176 '<(webrtc_root)/sdk/sdk.gyp:rtc_sdk_common_objc', | |
| 177 ], | |
| 178 'sources': [ | |
| 179 'ios/audio_device_ios.h', | |
| 180 'ios/audio_device_ios.mm', | |
| 181 'ios/audio_device_not_implemented_ios.mm', | |
| 182 'ios/audio_session_observer.h', | |
| 183 'ios/objc/RTCAudioSession+Configuration.mm', | |
| 184 'ios/objc/RTCAudioSession+Private.h', | |
| 185 'ios/objc/RTCAudioSession.h', | |
| 186 'ios/objc/RTCAudioSession.mm', | |
| 187 'ios/objc/RTCAudioSessionConfiguration.h', | |
| 188 'ios/objc/RTCAudioSessionConfiguration.m', | |
| 189 'ios/objc/RTCAudioSessionDelegateAdapter.h', | |
| 190 'ios/objc/RTCAudioSessionDelegateAdapter.mm', | |
| 191 'ios/voice_processing_audio_unit.h', | |
| 192 'ios/voice_processing_audio_unit.mm', | |
| 193 ], | |
| 194 'xcode_settings': { | |
| 195 'CLANG_ENABLE_OBJC_ARC': 'YES', | |
| 196 }, | |
| 197 'link_settings': { | |
| 198 'xcode_settings': { | |
| 199 'OTHER_LDFLAGS': [ | |
| 200 '-framework AudioToolbox', | |
| 201 '-framework AVFoundation', | |
| 202 '-framework Foundation', | |
| 203 '-framework UIKit', | |
| 204 ], | 222 ], |
| 205 }, | 223 'link_settings': { |
| 206 }, | 224 'libraries': [ |
| 207 }], | 225 # Required for the built-in WASAPI AEC. |
| 208 ['OS=="win"', { | 226 '-ldmoguids.lib', |
| 209 'sources': [ | 227 '-lwmcodecdspuuid.lib', |
| 210 'win/audio_device_core_win.cc', | 228 '-lamstrmid.lib', |
| 211 'win/audio_device_core_win.h', | 229 '-lmsdmo.lib', |
| 212 'win/audio_device_wave_win.cc', | 230 ], |
| 213 'win/audio_device_wave_win.h', | 231 }, |
| 214 'win/audio_mixer_manager_win.cc', | 232 }], |
| 215 'win/audio_mixer_manager_win.h', | 233 ['OS=="win" and clang==1', { |
| 216 ], | 234 'msvs_settings': { |
| 217 'link_settings': { | 235 'VCCLCompilerTool': { |
| 218 'libraries': [ | 236 'AdditionalOptions': [ |
| 219 # Required for the built-in WASAPI AEC. | 237 # Disable warnings failing when compiling with Clang on
Windows. |
| 220 '-ldmoguids.lib', | 238 # https://bugs.chromium.org/p/webrtc/issues/detail?id=53
66 |
| 221 '-lwmcodecdspuuid.lib', | 239 '-Wno-bool-conversion', |
| 222 '-lamstrmid.lib', | 240 '-Wno-delete-non-virtual-dtor', |
| 223 '-lmsdmo.lib', | 241 '-Wno-logical-op-parentheses', |
| 224 ], | 242 '-Wno-microsoft-extra-qualification', |
| 225 }, | 243 '-Wno-microsoft-goto', |
| 226 }], | 244 '-Wno-missing-braces', |
| 227 ['OS=="win" and clang==1', { | 245 '-Wno-parentheses-equality', |
| 228 'msvs_settings': { | 246 '-Wno-reorder', |
| 229 'VCCLCompilerTool': { | 247 '-Wno-shift-overflow', |
| 230 'AdditionalOptions': [ | 248 '-Wno-tautological-compare', |
| 231 # Disable warnings failing when compiling with Clang on Wind
ows. | 249 '-Wno-unused-private-field', |
| 232 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 | 250 ], |
| 233 '-Wno-bool-conversion', | 251 }, |
| 234 '-Wno-delete-non-virtual-dtor', | 252 }, |
| 235 '-Wno-logical-op-parentheses', | 253 }], |
| 236 '-Wno-microsoft-extra-qualification', | 254 ], # conditions (for non-dummy devices) |
| 237 '-Wno-microsoft-goto', | 255 }], # use_dummy_audio_file_devices check |
| 238 '-Wno-missing-braces', | |
| 239 '-Wno-parentheses-equality', | |
| 240 '-Wno-reorder', | |
| 241 '-Wno-shift-overflow', | |
| 242 '-Wno-tautological-compare', | |
| 243 '-Wno-unused-private-field', | |
| 244 ], | |
| 245 }, | |
| 246 }, | |
| 247 }], | |
| 248 ], # conditions | 256 ], # conditions |
| 249 }], # include_internal_audio_device==1 | 257 }], # include_internal_audio_device==1 |
| 250 ], # conditions | 258 ], # conditions |
| 251 }, | 259 }, |
| 252 ], | 260 ], |
| 253 'conditions': [ | 261 'conditions': [ |
| 254 # Does not compile on iOS: webrtc:4755. | 262 # Does not compile on iOS: webrtc:4755. |
| 255 ['include_tests==1 and OS!="ios"', { | 263 ['include_tests==1 and OS!="ios"', { |
| 256 'targets': [ | 264 'targets': [ |
| 257 { | 265 { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 285 'test/audio_device_test_defines.h', | 293 'test/audio_device_test_defines.h', |
| 286 'test/func_test_manager.cc', | 294 'test/func_test_manager.cc', |
| 287 'test/func_test_manager.h', | 295 'test/func_test_manager.h', |
| 288 ], | 296 ], |
| 289 }, | 297 }, |
| 290 ], # targets | 298 ], # targets |
| 291 }], # include_tests==1 and OS!=ios | 299 }], # include_tests==1 and OS!=ios |
| 292 ], | 300 ], |
| 293 } | 301 } |
| 294 | 302 |
| OLD | NEW |