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 if (is_ios) { | |
18 # GN orders flags on a target before flags from configs. In order to be able | |
19 # suppress the -Wthread-safety-analysis warning, it has come from a config | |
20 # and can't be on the target directly. | |
21 cflags = [ "-Wno-thread-safety-analysis" ] | |
kjellander_webrtc
2016/04/06 17:12:35
Zeke: do you think a bug should be filed for this,
tkchin_webrtc
2016/04/06 19:23:17
File a bug. Should be suppressed manually in the i
| |
22 } | |
17 } | 23 } |
18 | 24 |
19 source_set("audio_device") { | 25 source_set("audio_device") { |
20 deps = [ | 26 deps = [ |
21 "../..:webrtc_common", | 27 "../..:webrtc_common", |
22 "../../base:rtc_base_approved", | 28 "../../base:rtc_base_approved", |
23 "../../common_audio", | 29 "../../common_audio", |
24 "../../system_wrappers", | 30 "../../system_wrappers", |
25 "../utility", | 31 "../utility", |
26 ] | 32 ] |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
141 "ios/objc/RTCAudioSession.h", | 147 "ios/objc/RTCAudioSession.h", |
142 "ios/objc/RTCAudioSession.mm", | 148 "ios/objc/RTCAudioSession.mm", |
143 "ios/objc/RTCAudioSessionConfiguration.h", | 149 "ios/objc/RTCAudioSessionConfiguration.h", |
144 "ios/objc/RTCAudioSessionConfiguration.m", | 150 "ios/objc/RTCAudioSessionConfiguration.m", |
145 "ios/objc/RTCAudioSessionDelegateAdapter.h", | 151 "ios/objc/RTCAudioSessionDelegateAdapter.h", |
146 "ios/objc/RTCAudioSessionDelegateAdapter.mm", | 152 "ios/objc/RTCAudioSessionDelegateAdapter.mm", |
147 "ios/voice_processing_audio_unit.h", | 153 "ios/voice_processing_audio_unit.h", |
148 "ios/voice_processing_audio_unit.mm", | 154 "ios/voice_processing_audio_unit.mm", |
149 ] | 155 ] |
150 cflags += [ "-fobjc-arc" ] # CLANG_ENABLE_OBJC_ARC = YES. | 156 cflags += [ "-fobjc-arc" ] # CLANG_ENABLE_OBJC_ARC = YES. |
157 | |
151 libs = [ | 158 libs = [ |
152 "AudioToolbox.framework", | 159 "AudioToolbox.framework", |
153 "AVFoundation.framework", | 160 "AVFoundation.framework", |
154 "Foundation.framework", | 161 "Foundation.framework", |
155 "UIKit.framework", | 162 "UIKit.framework", |
156 ] | 163 ] |
157 } | 164 } |
158 if (is_win) { | 165 if (is_win) { |
159 sources += [ | 166 sources += [ |
160 "win/audio_device_core_win.cc", | 167 "win/audio_device_core_win.cc", |
(...skipping 28 matching lines...) Expand all Loading... | |
189 "../..:common_inherited_config", | 196 "../..:common_inherited_config", |
190 ":audio_device_config", | 197 ":audio_device_config", |
191 ] | 198 ] |
192 | 199 |
193 if (is_clang) { | 200 if (is_clang) { |
194 # Suppress warnings from Chrome's Clang plugins. | 201 # Suppress warnings from Chrome's Clang plugins. |
195 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 202 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
196 configs -= [ "//build/config/clang:find_bad_constructs" ] | 203 configs -= [ "//build/config/clang:find_bad_constructs" ] |
197 } | 204 } |
198 } | 205 } |
OLD | NEW |