Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Side by Side Diff: webrtc/modules/audio_device/BUILD.gn

Issue 2250483002: Add a .gyp option to use dummy audio file devices. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Add gn version Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/build/webrtc.gni ('k') | webrtc/modules/audio_device/audio_device.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 "android/opensles_common.cc", 87 "android/opensles_common.cc",
88 "android/opensles_common.h", 88 "android/opensles_common.h",
89 "android/opensles_player.cc", 89 "android/opensles_player.cc",
90 "android/opensles_player.h", 90 "android/opensles_player.h",
91 ] 91 ]
92 libs = [ 92 libs = [
93 "log", 93 "log",
94 "OpenSLES", 94 "OpenSLES",
95 ] 95 ]
96 } 96 }
97 if (is_linux) { 97 if (rtc_use_dummy_audio_file_devices) {
98 sources += [ 98 defines += [ "WEBRTC_DUMMY_FILE_DEVICES" ]
99 "linux/alsasymboltable_linux.cc", 99 } else {
100 "linux/alsasymboltable_linux.h", 100 if (is_linux) {
101 "linux/audio_device_alsa_linux.cc",
102 "linux/audio_device_alsa_linux.h",
103 "linux/audio_mixer_manager_alsa_linux.cc",
104 "linux/audio_mixer_manager_alsa_linux.h",
105 "linux/latebindingsymboltable_linux.cc",
106 "linux/latebindingsymboltable_linux.h",
107 ]
108 defines += [ "LINUX_ALSA" ]
109 libs = [
110 "dl",
111 "X11",
112 ]
113 if (rtc_include_pulse_audio) {
114 sources += [ 101 sources += [
115 "linux/audio_device_pulse_linux.cc", 102 "linux/alsasymboltable_linux.cc",
116 "linux/audio_device_pulse_linux.h", 103 "linux/alsasymboltable_linux.h",
117 "linux/audio_mixer_manager_pulse_linux.cc", 104 "linux/audio_device_alsa_linux.cc",
118 "linux/audio_mixer_manager_pulse_linux.h", 105 "linux/audio_device_alsa_linux.h",
119 "linux/pulseaudiosymboltable_linux.cc", 106 "linux/audio_mixer_manager_alsa_linux.cc",
120 "linux/pulseaudiosymboltable_linux.h", 107 "linux/audio_mixer_manager_alsa_linux.h",
108 "linux/latebindingsymboltable_linux.cc",
109 "linux/latebindingsymboltable_linux.h",
121 ] 110 ]
122 defines += [ "LINUX_PULSE" ] 111 defines += [ "LINUX_ALSA" ]
112 libs = [
113 "dl",
114 "X11",
115 ]
116 if (rtc_include_pulse_audio) {
117 sources += [
118 "linux/audio_device_pulse_linux.cc",
119 "linux/audio_device_pulse_linux.h",
120 "linux/audio_mixer_manager_pulse_linux.cc",
121 "linux/audio_mixer_manager_pulse_linux.h",
122 "linux/pulseaudiosymboltable_linux.cc",
123 "linux/pulseaudiosymboltable_linux.h",
124 ]
125 defines += [ "LINUX_PULSE" ]
126 }
123 } 127 }
124 } 128 if (is_mac) {
125 if (is_mac) { 129 sources += [
126 sources += [ 130 "mac/audio_device_mac.cc",
127 "mac/audio_device_mac.cc", 131 "mac/audio_device_mac.h",
128 "mac/audio_device_mac.h", 132 "mac/audio_mixer_manager_mac.cc",
129 "mac/audio_mixer_manager_mac.cc", 133 "mac/audio_mixer_manager_mac.h",
130 "mac/audio_mixer_manager_mac.h", 134 "mac/portaudio/pa_memorybarrier.h",
131 "mac/portaudio/pa_memorybarrier.h", 135 "mac/portaudio/pa_ringbuffer.c",
132 "mac/portaudio/pa_ringbuffer.c", 136 "mac/portaudio/pa_ringbuffer.h",
133 "mac/portaudio/pa_ringbuffer.h", 137 ]
134 ] 138 libs = [
135 libs = [ 139 "AudioToolbox.framework",
136 "AudioToolbox.framework", 140 "CoreAudio.framework",
137 "CoreAudio.framework",
138 141
139 # Needed for CGEventSourceKeyState in audio_device_mac.cc: 142 # Needed for CGEventSourceKeyState in audio_device_mac.cc:
140 "CoreGraphics.framework", 143 "CoreGraphics.framework",
141 ] 144 ]
142 } 145 }
143 if (is_ios) { 146 if (is_ios) {
144 public_deps = [ 147 public_deps = [
145 "../../sdk:rtc_sdk_common_objc", 148 "../../sdk:rtc_sdk_common_objc",
146 ] 149 ]
147 sources += [ 150 sources += [
148 "ios/audio_device_ios.h", 151 "ios/audio_device_ios.h",
149 "ios/audio_device_ios.mm", 152 "ios/audio_device_ios.mm",
150 "ios/audio_device_not_implemented_ios.mm", 153 "ios/audio_device_not_implemented_ios.mm",
151 "ios/audio_session_observer.h", 154 "ios/audio_session_observer.h",
152 "ios/objc/RTCAudioSession+Configuration.mm", 155 "ios/objc/RTCAudioSession+Configuration.mm",
153 "ios/objc/RTCAudioSession+Private.h", 156 "ios/objc/RTCAudioSession+Private.h",
154 "ios/objc/RTCAudioSession.h", 157 "ios/objc/RTCAudioSession.h",
155 "ios/objc/RTCAudioSession.mm", 158 "ios/objc/RTCAudioSession.mm",
156 "ios/objc/RTCAudioSessionConfiguration.h", 159 "ios/objc/RTCAudioSessionConfiguration.h",
157 "ios/objc/RTCAudioSessionConfiguration.m", 160 "ios/objc/RTCAudioSessionConfiguration.m",
158 "ios/objc/RTCAudioSessionDelegateAdapter.h", 161 "ios/objc/RTCAudioSessionDelegateAdapter.h",
159 "ios/objc/RTCAudioSessionDelegateAdapter.mm", 162 "ios/objc/RTCAudioSessionDelegateAdapter.mm",
160 "ios/voice_processing_audio_unit.h", 163 "ios/voice_processing_audio_unit.h",
161 "ios/voice_processing_audio_unit.mm", 164 "ios/voice_processing_audio_unit.mm",
162 ] 165 ]
163 configs += [ "//build/config/compiler:enable_arc" ] 166 configs += [ "//build/config/compiler:enable_arc" ]
164 167
165 libs = [ 168 libs = [
166 "AudioToolbox.framework", 169 "AudioToolbox.framework",
167 "AVFoundation.framework", 170 "AVFoundation.framework",
168 "Foundation.framework", 171 "Foundation.framework",
169 "UIKit.framework", 172 "UIKit.framework",
170 ] 173 ]
171 } 174 }
172 if (is_win) { 175 if (is_win) {
173 sources += [ 176 sources += [
174 "win/audio_device_core_win.cc", 177 "win/audio_device_core_win.cc",
175 "win/audio_device_core_win.h", 178 "win/audio_device_core_win.h",
176 "win/audio_device_wave_win.cc", 179 "win/audio_device_wave_win.cc",
177 "win/audio_device_wave_win.h", 180 "win/audio_device_wave_win.h",
178 "win/audio_mixer_manager_win.cc", 181 "win/audio_mixer_manager_win.cc",
179 "win/audio_mixer_manager_win.h", 182 "win/audio_mixer_manager_win.h",
180 ] 183 ]
181 libs = [ 184 libs = [
182 # Required for the built-in WASAPI AEC. 185 # Required for the built-in WASAPI AEC.
183 "dmoguids.lib", 186 "dmoguids.lib",
184 "wmcodecdspuuid.lib", 187 "wmcodecdspuuid.lib",
185 "amstrmid.lib", 188 "amstrmid.lib",
186 "msdmo.lib", 189 "msdmo.lib",
187 ] 190 ]
191 }
188 } 192 }
189 } else { 193 } else {
190 defines = [ "WEBRTC_DUMMY_AUDIO_BUILD" ] 194 defines = [ "WEBRTC_DUMMY_AUDIO_BUILD" ]
191 } 195 }
192 196
193 if (!build_with_chromium) { 197 if (!build_with_chromium) {
194 sources += [ 198 sources += [
195 # Do not link these into Chrome since they contain static data. 199 # Do not link these into Chrome since they contain static data.
196 "dummy/file_audio_device_factory.cc", 200 "dummy/file_audio_device_factory.cc",
197 "dummy/file_audio_device_factory.h", 201 "dummy/file_audio_device_factory.h",
198 ] 202 ]
199 } 203 }
200 204
201 configs += [ "../..:common_config" ] 205 configs += [ "../..:common_config" ]
202 public_configs = [ 206 public_configs = [
203 "../..:common_inherited_config", 207 "../..:common_inherited_config",
204 ":audio_device_config", 208 ":audio_device_config",
205 ] 209 ]
206 210
207 if (is_clang) { 211 if (is_clang) {
208 # Suppress warnings from Chrome's Clang plugins. 212 # Suppress warnings from Chrome's Clang plugins.
209 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 213 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
210 configs -= [ "//build/config/clang:find_bad_constructs" ] 214 configs -= [ "//build/config/clang:find_bad_constructs" ]
211 } 215 }
212 } 216 }
OLDNEW
« no previous file with comments | « webrtc/build/webrtc.gni ('k') | webrtc/modules/audio_device/audio_device.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698