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 if (is_mac) { | 10 if (is_mac) { |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 output_name = "WebRTC" | 300 output_name = "WebRTC" |
301 | 301 |
302 sources = common_objc_headers | 302 sources = common_objc_headers |
303 public_headers = common_objc_headers | 303 public_headers = common_objc_headers |
304 | 304 |
305 if (!build_with_chromium) { | 305 if (!build_with_chromium) { |
306 sources += [ "objc/Framework/Headers/WebRTC/RTCFileLogger.h" ] | 306 sources += [ "objc/Framework/Headers/WebRTC/RTCFileLogger.h" ] |
307 public_headers += [ "objc/Framework/Headers/WebRTC/RTCFileLogger.h" ] | 307 public_headers += [ "objc/Framework/Headers/WebRTC/RTCFileLogger.h" ] |
308 } | 308 } |
309 | 309 |
| 310 ldflags = [ "-all_load" ] |
| 311 |
310 deps = [ | 312 deps = [ |
311 ":rtc_sdk_peerconnection_objc", | 313 ":rtc_sdk_peerconnection_objc", |
312 "//webrtc/system_wrappers:field_trial_default", | 314 "//webrtc/system_wrappers:field_trial_default", |
313 "//webrtc/system_wrappers:metrics_default", | 315 "//webrtc/system_wrappers:metrics_default", |
314 ] | 316 ] |
315 | 317 |
316 libs = [ | 318 libs = [ |
317 "AVFoundation.framework", | 319 "AVFoundation.framework", |
318 "AudioToolbox.framework", | 320 "AudioToolbox.framework", |
319 "CoreGraphics.framework", | 321 "CoreGraphics.framework", |
320 "CoreMedia.framework", | 322 "CoreMedia.framework", |
321 "GLKit.framework", | 323 "GLKit.framework", |
322 "VideoToolbox.framework", | 324 "VideoToolbox.framework", |
323 ] | 325 ] |
324 | 326 |
325 configs += [ | 327 configs += [ |
326 "..:common_objc", | 328 "..:common_objc", |
327 "//build/config/compiler:enable_arc", | 329 "//build/config/compiler:enable_arc", |
328 ] | 330 ] |
329 | 331 |
330 public_configs = [ ":rtc_sdk_common_objc_config" ] | 332 public_configs = [ ":rtc_sdk_common_objc_config" ] |
331 | 333 |
332 if (is_clang) { | 334 if (is_clang) { |
333 # Suppress warnings from the Chromium Clang plugins. | 335 # Suppress warnings from the Chromium Clang plugins. |
334 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 336 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
335 configs -= [ "//build/config/clang:find_bad_constructs" ] | 337 configs -= [ "//build/config/clang:find_bad_constructs" ] |
336 } | 338 } |
337 } | 339 } |
338 } | 340 } |
| 341 |
| 342 rtc_static_library("rtc_sdk_objc") { |
| 343 complete_static_lib = true |
| 344 deps = [ |
| 345 ":rtc_sdk_peerconnection_objc", |
| 346 "../system_wrappers:field_trial_default", |
| 347 "../system_wrappers:metrics_default", |
| 348 ] |
| 349 } |
339 } | 350 } |
OLD | NEW |