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

Unified 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: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/test/BUILD.gn » ('j') | webrtc/test/BUILD.gn » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_device/BUILD.gn
diff --git a/webrtc/modules/audio_device/BUILD.gn b/webrtc/modules/audio_device/BUILD.gn
index f41501e7f8446a9445155c1ddb714583fcd892fe..324ab54a4bbdb2ef6f8f4c8a7d6398cb70c1fa4f 100644
--- a/webrtc/modules/audio_device/BUILD.gn
+++ b/webrtc/modules/audio_device/BUILD.gn
@@ -14,6 +14,12 @@ config("audio_device_config") {
"include",
"dummy", # Contains dummy audio device implementations.
]
+ if (is_ios) {
+ # GN orders flags on a target before flags from configs. In order to be able
+ # suppress the -Wthread-safety-analysis warning, it has come from a config
+ # and can't be on the target directly.
+ 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
+ }
}
source_set("audio_device") {
@@ -148,6 +154,7 @@ source_set("audio_device") {
"ios/voice_processing_audio_unit.mm",
]
cflags += [ "-fobjc-arc" ] # CLANG_ENABLE_OBJC_ARC = YES.
+
libs = [
"AudioToolbox.framework",
"AVFoundation.framework",
« no previous file with comments | « no previous file | webrtc/test/BUILD.gn » ('j') | webrtc/test/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698