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

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

Issue 1869523002: GN: Fix some build errors for iOS. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Added reference to bug 5748 Created 4 years, 8 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 | « no previous file | webrtc/test/BUILD.gn » ('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
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 # TODO(tkchin): Remove after fixing
22 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5748
23 cflags = [ "-Wno-thread-safety-analysis" ]
24 }
17 } 25 }
18 26
19 source_set("audio_device") { 27 source_set("audio_device") {
20 deps = [ 28 deps = [
21 "../..:webrtc_common", 29 "../..:webrtc_common",
22 "../../base:rtc_base_approved", 30 "../../base:rtc_base_approved",
23 "../../common_audio", 31 "../../common_audio",
24 "../../system_wrappers", 32 "../../system_wrappers",
25 "../utility", 33 "../utility",
26 ] 34 ]
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 "ios/objc/RTCAudioSession.h", 149 "ios/objc/RTCAudioSession.h",
142 "ios/objc/RTCAudioSession.mm", 150 "ios/objc/RTCAudioSession.mm",
143 "ios/objc/RTCAudioSessionConfiguration.h", 151 "ios/objc/RTCAudioSessionConfiguration.h",
144 "ios/objc/RTCAudioSessionConfiguration.m", 152 "ios/objc/RTCAudioSessionConfiguration.m",
145 "ios/objc/RTCAudioSessionDelegateAdapter.h", 153 "ios/objc/RTCAudioSessionDelegateAdapter.h",
146 "ios/objc/RTCAudioSessionDelegateAdapter.mm", 154 "ios/objc/RTCAudioSessionDelegateAdapter.mm",
147 "ios/voice_processing_audio_unit.h", 155 "ios/voice_processing_audio_unit.h",
148 "ios/voice_processing_audio_unit.mm", 156 "ios/voice_processing_audio_unit.mm",
149 ] 157 ]
150 cflags += [ "-fobjc-arc" ] # CLANG_ENABLE_OBJC_ARC = YES. 158 cflags += [ "-fobjc-arc" ] # CLANG_ENABLE_OBJC_ARC = YES.
159
151 libs = [ 160 libs = [
152 "AudioToolbox.framework", 161 "AudioToolbox.framework",
153 "AVFoundation.framework", 162 "AVFoundation.framework",
154 "Foundation.framework", 163 "Foundation.framework",
155 "UIKit.framework", 164 "UIKit.framework",
156 ] 165 ]
157 } 166 }
158 if (is_win) { 167 if (is_win) {
159 sources += [ 168 sources += [
160 "win/audio_device_core_win.cc", 169 "win/audio_device_core_win.cc",
(...skipping 28 matching lines...) Expand all
189 "../..:common_inherited_config", 198 "../..:common_inherited_config",
190 ":audio_device_config", 199 ":audio_device_config",
191 ] 200 ]
192 201
193 if (is_clang) { 202 if (is_clang) {
194 # Suppress warnings from Chrome's Clang plugins. 203 # Suppress warnings from Chrome's Clang plugins.
195 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 204 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
196 configs -= [ "//build/config/clang:find_bad_constructs" ] 205 configs -= [ "//build/config/clang:find_bad_constructs" ]
197 } 206 }
198 } 207 }
OLDNEW
« no previous file with comments | « no previous file | webrtc/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698