| OLD | NEW |
| 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2014 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 import("../../build/webrtc.gni") | 9 import("../../build/webrtc.gni") |
| 10 | 10 |
| 11 config("audio_device_config") { | 11 config("audio_device_config") { |
| 12 include_dirs = [ | 12 include_dirs = [ |
| 13 "../include", | 13 "../include", |
| 14 "include", | 14 "include", |
| 15 "dummy", # Contains dummy audio device implementations. | 15 "dummy", # Contains dummy audio device implementations. |
| 16 ] | 16 ] |
| 17 } | 17 } |
| 18 | 18 |
| 19 source_set("audio_device") { | 19 source_set("audio_device") { |
| 20 deps = [ |
| 21 "../..:webrtc_common", |
| 22 "../../base:rtc_base_approved", |
| 23 "../../common_audio", |
| 24 "../../system_wrappers", |
| 25 "../utility", |
| 26 ] |
| 27 |
| 20 sources = [ | 28 sources = [ |
| 21 "audio_device_buffer.cc", | 29 "audio_device_buffer.cc", |
| 22 "audio_device_buffer.h", | 30 "audio_device_buffer.h", |
| 23 "audio_device_config.h", | 31 "audio_device_config.h", |
| 24 "audio_device_generic.cc", | 32 "audio_device_generic.cc", |
| 25 "audio_device_generic.h", | 33 "audio_device_generic.h", |
| 26 "dummy/audio_device_dummy.cc", | 34 "dummy/audio_device_dummy.cc", |
| 27 "dummy/audio_device_dummy.h", | 35 "dummy/audio_device_dummy.h", |
| 28 "dummy/file_audio_device.cc", | 36 "dummy/file_audio_device.cc", |
| 29 "dummy/file_audio_device.h", | 37 "dummy/file_audio_device.h", |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 "mac/portaudio/pa_memorybarrier.h", | 123 "mac/portaudio/pa_memorybarrier.h", |
| 116 "mac/portaudio/pa_ringbuffer.c", | 124 "mac/portaudio/pa_ringbuffer.c", |
| 117 "mac/portaudio/pa_ringbuffer.h", | 125 "mac/portaudio/pa_ringbuffer.h", |
| 118 ] | 126 ] |
| 119 libs = [ | 127 libs = [ |
| 120 "AudioToolbox.framework", | 128 "AudioToolbox.framework", |
| 121 "CoreAudio.framework", | 129 "CoreAudio.framework", |
| 122 ] | 130 ] |
| 123 } | 131 } |
| 124 if (is_ios) { | 132 if (is_ios) { |
| 133 deps += [ "../../base:rtc_base_objc" ] |
| 125 sources += [ | 134 sources += [ |
| 126 "ios/audio_device_ios.h", | 135 "ios/audio_device_ios.h", |
| 127 "ios/audio_device_ios.mm", | 136 "ios/audio_device_ios.mm", |
| 128 "ios/audio_device_not_implemented_ios.mm", | 137 "ios/audio_device_not_implemented_ios.mm", |
| 138 "ios/objc/RTCAudioSession+Private.h", |
| 139 "ios/objc/RTCAudioSession.h", |
| 140 "ios/objc/RTCAudioSession.mm", |
| 129 ] | 141 ] |
| 130 cflags += [ "-fobjc-arc" ] # CLANG_ENABLE_OBJC_ARC = YES. | 142 cflags += [ "-fobjc-arc" ] # CLANG_ENABLE_OBJC_ARC = YES. |
| 131 libs = [ | 143 libs = [ |
| 132 "AudioToolbox.framework", | 144 "AudioToolbox.framework", |
| 133 "AVFoundation.framework", | 145 "AVFoundation.framework", |
| 134 "Foundation.framework", | 146 "Foundation.framework", |
| 135 "UIKit.framework", | 147 "UIKit.framework", |
| 136 ] | 148 ] |
| 137 } | 149 } |
| 138 if (is_win) { | 150 if (is_win) { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 168 public_configs = [ | 180 public_configs = [ |
| 169 "../..:common_inherited_config", | 181 "../..:common_inherited_config", |
| 170 ":audio_device_config", | 182 ":audio_device_config", |
| 171 ] | 183 ] |
| 172 | 184 |
| 173 if (is_clang) { | 185 if (is_clang) { |
| 174 # Suppress warnings from Chrome's Clang plugins. | 186 # Suppress warnings from Chrome's Clang plugins. |
| 175 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 187 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 176 configs -= [ "//build/config/clang:find_bad_constructs" ] | 188 configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 177 } | 189 } |
| 178 | |
| 179 deps = [ | |
| 180 "../..:webrtc_common", | |
| 181 "../../base:rtc_base_approved", | |
| 182 "../../common_audio", | |
| 183 "../../system_wrappers", | |
| 184 "../utility", | |
| 185 ] | |
| 186 } | 190 } |
| OLD | NEW |