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

Unified Diff: webrtc/sdk/BUILD.gn

Issue 2849823002: Extract iOS SDK helpers to separate target. (Closed)
Patch Set: Created 3 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
Index: webrtc/sdk/BUILD.gn
diff --git a/webrtc/sdk/BUILD.gn b/webrtc/sdk/BUILD.gn
index 8c8cade1d79c02f7e65dcdb05c06b2af454585ab..3ecac2f35ada5e52cdb0d114274a150d437c53ba 100644
--- a/webrtc/sdk/BUILD.gn
+++ b/webrtc/sdk/BUILD.gn
@@ -27,6 +27,21 @@ if (is_ios || is_mac) {
]
}
+ rtc_static_library("rtc_sdk_helpers_objc") {
+ sources = [
+ "objc/Framework/Classes/helpers.h",
+ "objc/Framework/Classes/helpers.mm",
+ ]
+ deps = [
+ "../base:rtc_base_approved",
+ ]
+ configs += [ "..:common_objc" ]
+
+ if (is_ios) {
+ libs = [ "AVFoundation.framework" ]
+ }
+ }
+
rtc_static_library("rtc_sdk_common_objc") {
sources = [
"objc/Framework/Classes/NSString+StdString.h",
@@ -39,8 +54,6 @@ if (is_ios || is_mac) {
"objc/Framework/Classes/RTCMetricsSampleInfo.mm",
"objc/Framework/Classes/RTCSSLAdapter.mm",
"objc/Framework/Classes/RTCTracing.mm",
- "objc/Framework/Classes/helpers.h",
- "objc/Framework/Classes/helpers.mm",
"objc/Framework/Headers/WebRTC/RTCDispatcher.h",
"objc/Framework/Headers/WebRTC/RTCFieldTrials.h",
"objc/Framework/Headers/WebRTC/RTCLogging.h",
@@ -51,6 +64,7 @@ if (is_ios || is_mac) {
"objc/Framework/Headers/WebRTC/RTCTracing.h",
]
deps = [
+ ":rtc_sdk_helpers_objc",
"../base:rtc_base",
]
configs += [ "..:common_objc" ]
« no previous file with comments | « webrtc/modules/audio_device/BUILD.gn ('k') | webrtc/test/BUILD.gn » ('j') | webrtc/test/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698