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

Unified Diff: webrtc/sdk/BUILD.gn

Issue 2340633003: [GN] Add rtc_sdk_framework_objc target to GN (Closed)
Patch Set: Extract common headers Created 4 years, 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/sdk/BUILD.gn
diff --git a/webrtc/sdk/BUILD.gn b/webrtc/sdk/BUILD.gn
index 87ba3cb6d306aa32d1a351373abc31211567de33..771d554d77aa5a35775305f0da64af13d8bcc4b2 100644
--- a/webrtc/sdk/BUILD.gn
+++ b/webrtc/sdk/BUILD.gn
@@ -7,7 +7,13 @@
# be found in the AUTHORS file in the root of the source tree.
import("../build/webrtc.gni")
-import("//build/config/mac/mac_sdk.gni")
+if (is_mac) {
+ import("//build/config/mac/mac_sdk.gni")
+ import("//build/config/mac/rules.gni")
+}
+if (is_ios) {
+ import("//build/config/ios/rules.gni")
+}
if (is_ios || (is_mac && mac_deployment_target == "10.7")) {
config("rtc_sdk_common_objc_config") {
@@ -210,6 +216,121 @@ if (is_ios || (is_mac && mac_deployment_target == "10.7")) {
]
}
}
+ common_objc_headers = [
+ "objc/Framework/Headers/WebRTC/RTCAVFoundationVideoSource.h",
+ "objc/Framework/Headers/WebRTC/RTCAudioSource.h",
+ "objc/Framework/Headers/WebRTC/RTCAudioTrack.h",
+ "objc/Framework/Headers/WebRTC/RTCCameraPreviewView.h",
+ "objc/Framework/Headers/WebRTC/RTCConfiguration.h",
+ "objc/Framework/Headers/WebRTC/RTCDataChannel.h",
+ "objc/Framework/Headers/WebRTC/RTCDataChannelConfiguration.h",
+ "objc/Framework/Headers/WebRTC/RTCDispatcher.h",
+ "objc/Framework/Headers/WebRTC/RTCEAGLVideoView.h",
+ "objc/Framework/Headers/WebRTC/RTCFieldTrials.h",
+ "objc/Framework/Headers/WebRTC/RTCIceCandidate.h",
+ "objc/Framework/Headers/WebRTC/RTCIceServer.h",
+ "objc/Framework/Headers/WebRTC/RTCLegacyStatsReport.h",
+ "objc/Framework/Headers/WebRTC/RTCMacros.h",
+ "objc/Framework/Headers/WebRTC/RTCMediaConstraints.h",
+ "objc/Framework/Headers/WebRTC/RTCMediaSource.h",
+ "objc/Framework/Headers/WebRTC/RTCMediaStream.h",
+ "objc/Framework/Headers/WebRTC/RTCMediaStreamTrack.h",
+ "objc/Framework/Headers/WebRTC/RTCMetricsSampleInfo.h",
+ "objc/Framework/Headers/WebRTC/RTCPeerConnection.h",
+ "objc/Framework/Headers/WebRTC/RTCPeerConnectionFactory.h",
+ "objc/Framework/Headers/WebRTC/RTCRtpCodecParameters.h",
+ "objc/Framework/Headers/WebRTC/RTCRtpEncodingParameters.h",
+ "objc/Framework/Headers/WebRTC/RTCRtpParameters.h",
+ "objc/Framework/Headers/WebRTC/RTCRtpReceiver.h",
+ "objc/Framework/Headers/WebRTC/RTCRtpSender.h",
+ "objc/Framework/Headers/WebRTC/RTCSessionDescription.h",
+ "objc/Framework/Headers/WebRTC/RTCVideoFrame.h",
+ "objc/Framework/Headers/WebRTC/RTCVideoRenderer.h",
+ "objc/Framework/Headers/WebRTC/RTCVideoSource.h",
+ "objc/Framework/Headers/WebRTC/RTCVideoTrack.h",
+ "objc/Framework/Headers/WebRTC/UIDevice+RTCDevice.h",
+ "objc/Framework/Headers/WebRTC/WebRTC.h",
+ ]
+ if (is_mac) {
+ mac_framework_bundle("rtc_sdk_framework_objc") {
+ info_plist = "objc/Framework/Info.plist"
+ output_name = "WebRTC"
+
+ sources = common_objc_headers
kjellander_webrtc 2016/09/14 13:24:10 This one should have + "objc/Framework/Headers/We
- # TODO(tkchin): Add the rtc_sdk_framework_objc target.
+ if (!build_with_chromium) {
+ sources += [ "objc/Framework/Headers/WebRTC/RTCFileLogger.h" ]
+ }
+
+ deps = [
+ ":rtc_sdk_peerconnection_objc",
+ "//webrtc/system_wrappers:field_trial_default",
+ "//webrtc/system_wrappers:metrics_default",
+ ]
+
+ libs = [
+ "AVFoundation.framework",
+ "AudioToolbox.framework",
+ "CoreGraphics.framework",
+ "CoreMedia.framework",
+ "GLKit.framework",
+ "VideoToolbox.framework",
+ ]
+
+ configs += [
+ "..:common_objc",
+ "//build/config/compiler:enable_arc",
+ ]
+
+ public_configs = [ ":rtc_sdk_common_objc_config" ]
+
+ if (is_clang) {
+ # Suppress warnings from the Chromium Clang plugins.
+ # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
+ configs -= [ "//build/config/clang:find_bad_constructs" ]
+ }
+ }
+ }
+ if (is_ios) {
+ ios_framework_bundle("rtc_sdk_framework_objc") {
+ info_plist = "objc/Framework/Info.plist"
+ output_name = "WebRTC"
+
+ sources = common_objc_headers
+ public_headers = common_objc_headers
+
+ if (!build_with_chromium) {
+ sources += [ "objc/Framework/Headers/WebRTC/RTCFileLogger.h" ]
+ public_headers += [ "objc/Framework/Headers/WebRTC/RTCFileLogger.h" ]
+ }
+
+ deps = [
+ ":rtc_sdk_peerconnection_objc",
+ "//webrtc/system_wrappers:field_trial_default",
+ "//webrtc/system_wrappers:metrics_default",
+ ]
+
+ libs = [
+ "AVFoundation.framework",
+ "AudioToolbox.framework",
+ "CoreGraphics.framework",
+ "CoreMedia.framework",
+ "GLKit.framework",
+ "VideoToolbox.framework",
+ ]
+
+ configs += [
+ "..:common_objc",
+ "//build/config/compiler:enable_arc",
+ ]
+
+ public_configs = [ ":rtc_sdk_common_objc_config" ]
+
+ if (is_clang) {
+ # Suppress warnings from the Chromium Clang plugins.
+ # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
+ configs -= [ "//build/config/clang:find_bad_constructs" ]
+ }
+ }
+ }
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698