OLD | NEW |
1 # Copyright 2016 The WebRTC project authors. All Rights Reserved. | 1 # Copyright 2016 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 import("//build/config/mac/mac_sdk.gni") | 10 if (is_mac) { |
| 11 import("//build/config/mac/mac_sdk.gni") |
| 12 import("//build/config/mac/rules.gni") |
| 13 } |
| 14 if (is_ios) { |
| 15 import("//build/config/ios/rules.gni") |
| 16 } |
11 | 17 |
12 if (is_ios || (is_mac && mac_deployment_target == "10.7")) { | 18 if (is_ios || (is_mac && mac_deployment_target == "10.7")) { |
13 config("rtc_sdk_common_objc_config") { | 19 config("rtc_sdk_common_objc_config") { |
14 include_dirs = [ | 20 include_dirs = [ |
15 "objc/Framework/Classes", | 21 "objc/Framework/Classes", |
16 "objc/Framework/Headers", | 22 "objc/Framework/Headers", |
17 ] | 23 ] |
18 } | 24 } |
19 | 25 |
20 rtc_source_set("rtc_sdk_common_objc") { | 26 rtc_source_set("rtc_sdk_common_objc") { |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 "../api:libjingle_peerconnection", | 209 "../api:libjingle_peerconnection", |
204 ] | 210 ] |
205 | 211 |
206 if (rtc_build_libyuv) { | 212 if (rtc_build_libyuv) { |
207 deps += [ "$rtc_libyuv_dir" ] | 213 deps += [ "$rtc_libyuv_dir" ] |
208 public_deps = [ | 214 public_deps = [ |
209 "$rtc_libyuv_dir", | 215 "$rtc_libyuv_dir", |
210 ] | 216 ] |
211 } | 217 } |
212 } | 218 } |
| 219 common_objc_headers = [ |
| 220 "objc/Framework/Headers/WebRTC/RTCAVFoundationVideoSource.h", |
| 221 "objc/Framework/Headers/WebRTC/RTCAudioSource.h", |
| 222 "objc/Framework/Headers/WebRTC/RTCAudioTrack.h", |
| 223 "objc/Framework/Headers/WebRTC/RTCCameraPreviewView.h", |
| 224 "objc/Framework/Headers/WebRTC/RTCConfiguration.h", |
| 225 "objc/Framework/Headers/WebRTC/RTCDataChannel.h", |
| 226 "objc/Framework/Headers/WebRTC/RTCDataChannelConfiguration.h", |
| 227 "objc/Framework/Headers/WebRTC/RTCDispatcher.h", |
| 228 "objc/Framework/Headers/WebRTC/RTCEAGLVideoView.h", |
| 229 "objc/Framework/Headers/WebRTC/RTCFieldTrials.h", |
| 230 "objc/Framework/Headers/WebRTC/RTCIceCandidate.h", |
| 231 "objc/Framework/Headers/WebRTC/RTCIceServer.h", |
| 232 "objc/Framework/Headers/WebRTC/RTCLegacyStatsReport.h", |
| 233 "objc/Framework/Headers/WebRTC/RTCMacros.h", |
| 234 "objc/Framework/Headers/WebRTC/RTCMediaConstraints.h", |
| 235 "objc/Framework/Headers/WebRTC/RTCMediaSource.h", |
| 236 "objc/Framework/Headers/WebRTC/RTCMediaStream.h", |
| 237 "objc/Framework/Headers/WebRTC/RTCMediaStreamTrack.h", |
| 238 "objc/Framework/Headers/WebRTC/RTCMetricsSampleInfo.h", |
| 239 "objc/Framework/Headers/WebRTC/RTCPeerConnection.h", |
| 240 "objc/Framework/Headers/WebRTC/RTCPeerConnectionFactory.h", |
| 241 "objc/Framework/Headers/WebRTC/RTCRtpCodecParameters.h", |
| 242 "objc/Framework/Headers/WebRTC/RTCRtpEncodingParameters.h", |
| 243 "objc/Framework/Headers/WebRTC/RTCRtpParameters.h", |
| 244 "objc/Framework/Headers/WebRTC/RTCRtpReceiver.h", |
| 245 "objc/Framework/Headers/WebRTC/RTCRtpSender.h", |
| 246 "objc/Framework/Headers/WebRTC/RTCSessionDescription.h", |
| 247 "objc/Framework/Headers/WebRTC/RTCVideoFrame.h", |
| 248 "objc/Framework/Headers/WebRTC/RTCVideoRenderer.h", |
| 249 "objc/Framework/Headers/WebRTC/RTCVideoSource.h", |
| 250 "objc/Framework/Headers/WebRTC/RTCVideoTrack.h", |
| 251 "objc/Framework/Headers/WebRTC/UIDevice+RTCDevice.h", |
| 252 "objc/Framework/Headers/WebRTC/WebRTC.h", |
| 253 ] |
| 254 if (is_mac) { |
| 255 mac_framework_bundle("rtc_sdk_framework_objc") { |
| 256 info_plist = "objc/Framework/Info.plist" |
| 257 output_name = "WebRTC" |
213 | 258 |
214 # TODO(tkchin): Add the rtc_sdk_framework_objc target. | 259 sources = common_objc_headers + |
| 260 [ "objc/Framework/Headers/WebRTC/RTCNSGLVideoView.h" ] |
| 261 |
| 262 if (!build_with_chromium) { |
| 263 sources += [ "objc/Framework/Headers/WebRTC/RTCFileLogger.h" ] |
| 264 } |
| 265 |
| 266 deps = [ |
| 267 ":rtc_sdk_peerconnection_objc", |
| 268 "//webrtc/system_wrappers:field_trial_default", |
| 269 "//webrtc/system_wrappers:metrics_default", |
| 270 ] |
| 271 |
| 272 libs = [ |
| 273 "AVFoundation.framework", |
| 274 "AudioToolbox.framework", |
| 275 "CoreGraphics.framework", |
| 276 "CoreMedia.framework", |
| 277 "GLKit.framework", |
| 278 "VideoToolbox.framework", |
| 279 ] |
| 280 |
| 281 configs += [ |
| 282 "..:common_objc", |
| 283 "//build/config/compiler:enable_arc", |
| 284 ] |
| 285 |
| 286 public_configs = [ ":rtc_sdk_common_objc_config" ] |
| 287 |
| 288 if (is_clang) { |
| 289 # Suppress warnings from the Chromium Clang plugins. |
| 290 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 291 configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 292 } |
| 293 } |
| 294 } |
| 295 if (is_ios) { |
| 296 ios_framework_bundle("rtc_sdk_framework_objc") { |
| 297 info_plist = "objc/Framework/Info.plist" |
| 298 output_name = "WebRTC" |
| 299 |
| 300 sources = common_objc_headers |
| 301 public_headers = common_objc_headers |
| 302 |
| 303 if (!build_with_chromium) { |
| 304 sources += [ "objc/Framework/Headers/WebRTC/RTCFileLogger.h" ] |
| 305 public_headers += [ "objc/Framework/Headers/WebRTC/RTCFileLogger.h" ] |
| 306 } |
| 307 |
| 308 deps = [ |
| 309 ":rtc_sdk_peerconnection_objc", |
| 310 "//webrtc/system_wrappers:field_trial_default", |
| 311 "//webrtc/system_wrappers:metrics_default", |
| 312 ] |
| 313 |
| 314 libs = [ |
| 315 "AVFoundation.framework", |
| 316 "AudioToolbox.framework", |
| 317 "CoreGraphics.framework", |
| 318 "CoreMedia.framework", |
| 319 "GLKit.framework", |
| 320 "VideoToolbox.framework", |
| 321 ] |
| 322 |
| 323 configs += [ |
| 324 "..:common_objc", |
| 325 "//build/config/compiler:enable_arc", |
| 326 ] |
| 327 |
| 328 public_configs = [ ":rtc_sdk_common_objc_config" ] |
| 329 |
| 330 if (is_clang) { |
| 331 # Suppress warnings from the Chromium Clang plugins. |
| 332 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 333 configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 334 } |
| 335 } |
| 336 } |
215 } | 337 } |
OLD | NEW |