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 |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 ] | 152 ] |
153 defines += [ "LINUX_PULSE" ] | 153 defines += [ "LINUX_PULSE" ] |
154 } | 154 } |
155 } | 155 } |
156 if (is_mac) { | 156 if (is_mac) { |
157 sources += [ | 157 sources += [ |
158 "mac/audio_device_mac.cc", | 158 "mac/audio_device_mac.cc", |
159 "mac/audio_device_mac.h", | 159 "mac/audio_device_mac.h", |
160 "mac/audio_mixer_manager_mac.cc", | 160 "mac/audio_mixer_manager_mac.cc", |
161 "mac/audio_mixer_manager_mac.h", | 161 "mac/audio_mixer_manager_mac.h", |
162 "mac/portaudio/pa_memorybarrier.h", | |
163 "mac/portaudio/pa_ringbuffer.c", | |
164 "mac/portaudio/pa_ringbuffer.h", | |
165 ] | 162 ] |
| 163 deps += [ ":mac_portaudio" ] |
166 libs = [ | 164 libs = [ |
167 # Needed for CoreGraphics: | 165 # Needed for CoreGraphics: |
168 "ApplicationServices.framework", | 166 "ApplicationServices.framework", |
169 | 167 |
170 "AudioToolbox.framework", | 168 "AudioToolbox.framework", |
171 "CoreAudio.framework", | 169 "CoreAudio.framework", |
172 | 170 |
173 # Needed for CGEventSourceKeyState in audio_device_mac.cc: | 171 # Needed for CGEventSourceKeyState in audio_device_mac.cc: |
174 "CoreGraphics.framework", | 172 "CoreGraphics.framework", |
175 ] | 173 ] |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 "dummy/file_audio_device_factory.h", | 234 "dummy/file_audio_device_factory.h", |
237 ] | 235 ] |
238 } | 236 } |
239 | 237 |
240 if (!build_with_chromium && is_clang) { | 238 if (!build_with_chromium && is_clang) { |
241 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 239 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
242 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 240 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
243 } | 241 } |
244 } | 242 } |
245 | 243 |
| 244 rtc_source_set("mac_portaudio") { |
| 245 visibility = [ ":*" ] # Only targets in this file can depend on this. |
| 246 sources = [ |
| 247 "mac/portaudio/pa_memorybarrier.h", |
| 248 "mac/portaudio/pa_ringbuffer.c", |
| 249 "mac/portaudio/pa_ringbuffer.h", |
| 250 ] |
| 251 } |
| 252 |
246 config("mock_audio_device_config") { | 253 config("mock_audio_device_config") { |
247 if (is_win) { | 254 if (is_win) { |
248 cflags = [ | 255 cflags = [ |
249 # TODO(phoglund): get rid of 4373 supression when | 256 # TODO(phoglund): get rid of 4373 supression when |
250 # http://code.google.com/p/webrtc/issues/detail?id=261 is solved. | 257 # http://code.google.com/p/webrtc/issues/detail?id=261 is solved. |
251 # legacy warning for ignoring const / volatile in signatures. | 258 # legacy warning for ignoring const / volatile in signatures. |
252 "/wd4373", | 259 "/wd4373", |
253 ] | 260 ] |
254 } | 261 } |
255 } | 262 } |
(...skipping 28 matching lines...) Expand all Loading... |
284 "../../system_wrappers", | 291 "../../system_wrappers", |
285 "../../test:test_support", | 292 "../../test:test_support", |
286 "../../test:test_support_main", | 293 "../../test:test_support_main", |
287 "../rtp_rtcp", | 294 "../rtp_rtcp", |
288 "../utility", | 295 "../utility", |
289 "//testing/gtest", | 296 "//testing/gtest", |
290 ] | 297 ] |
291 public_configs = [ ":audio_device_config" ] | 298 public_configs = [ ":audio_device_config" ] |
292 } | 299 } |
293 } | 300 } |
OLD | NEW |