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("../webrtc.gni") | 9 import("../webrtc.gni") |
10 if (is_ios) { | 10 if (is_ios) { |
11 import("//build/config/ios/rules.gni") | 11 import("//build/config/ios/rules.gni") |
12 } | 12 } |
13 | 13 |
14 group("sdk") { | 14 group("sdk") { |
15 if (is_ios) { | 15 if (is_ios) { |
16 public_deps = [ | 16 public_deps = [ |
17 ":rtc_sdk_framework_objc", | 17 ":rtc_sdk_framework_objc", |
18 ] | 18 ] |
19 } | 19 } |
20 } | 20 } |
21 | 21 |
22 if (is_ios || is_mac) { | 22 if (is_ios || is_mac) { |
23 config("rtc_sdk_common_objc_config") { | 23 config("rtc_sdk_common_objc_config") { |
24 include_dirs = [ | 24 include_dirs = [ |
25 "objc/Framework/Classes", | 25 "objc/Framework/Classes", |
26 "objc/Framework/Headers", | 26 "objc/Framework/Headers", |
27 ] | 27 ] |
28 } | 28 } |
29 | 29 |
| 30 rtc_static_library("rtc_sdk_helpers_objc") { |
| 31 sources = [ |
| 32 "objc/Framework/Classes/helpers.h", |
| 33 "objc/Framework/Classes/helpers.mm", |
| 34 ] |
| 35 deps = [ |
| 36 "../base:rtc_base_approved", |
| 37 ] |
| 38 configs += [ "..:common_objc" ] |
| 39 |
| 40 if (is_ios) { |
| 41 libs = [ "AVFoundation.framework" ] |
| 42 } |
| 43 } |
| 44 |
30 rtc_static_library("rtc_sdk_common_objc") { | 45 rtc_static_library("rtc_sdk_common_objc") { |
31 sources = [ | 46 sources = [ |
32 "objc/Framework/Classes/NSString+StdString.h", | 47 "objc/Framework/Classes/NSString+StdString.h", |
33 "objc/Framework/Classes/NSString+StdString.mm", | 48 "objc/Framework/Classes/NSString+StdString.mm", |
34 "objc/Framework/Classes/RTCDispatcher.m", | 49 "objc/Framework/Classes/RTCDispatcher.m", |
35 "objc/Framework/Classes/RTCFieldTrials.mm", | 50 "objc/Framework/Classes/RTCFieldTrials.mm", |
36 "objc/Framework/Classes/RTCLogging.mm", | 51 "objc/Framework/Classes/RTCLogging.mm", |
37 "objc/Framework/Classes/RTCMetrics.mm", | 52 "objc/Framework/Classes/RTCMetrics.mm", |
38 "objc/Framework/Classes/RTCMetricsSampleInfo+Private.h", | 53 "objc/Framework/Classes/RTCMetricsSampleInfo+Private.h", |
39 "objc/Framework/Classes/RTCMetricsSampleInfo.mm", | 54 "objc/Framework/Classes/RTCMetricsSampleInfo.mm", |
40 "objc/Framework/Classes/RTCSSLAdapter.mm", | 55 "objc/Framework/Classes/RTCSSLAdapter.mm", |
41 "objc/Framework/Classes/RTCTracing.mm", | 56 "objc/Framework/Classes/RTCTracing.mm", |
42 "objc/Framework/Classes/helpers.h", | |
43 "objc/Framework/Classes/helpers.mm", | |
44 "objc/Framework/Headers/WebRTC/RTCDispatcher.h", | 57 "objc/Framework/Headers/WebRTC/RTCDispatcher.h", |
45 "objc/Framework/Headers/WebRTC/RTCFieldTrials.h", | 58 "objc/Framework/Headers/WebRTC/RTCFieldTrials.h", |
46 "objc/Framework/Headers/WebRTC/RTCLogging.h", | 59 "objc/Framework/Headers/WebRTC/RTCLogging.h", |
47 "objc/Framework/Headers/WebRTC/RTCMacros.h", | 60 "objc/Framework/Headers/WebRTC/RTCMacros.h", |
48 "objc/Framework/Headers/WebRTC/RTCMetrics.h", | 61 "objc/Framework/Headers/WebRTC/RTCMetrics.h", |
49 "objc/Framework/Headers/WebRTC/RTCMetricsSampleInfo.h", | 62 "objc/Framework/Headers/WebRTC/RTCMetricsSampleInfo.h", |
50 "objc/Framework/Headers/WebRTC/RTCSSLAdapter.h", | 63 "objc/Framework/Headers/WebRTC/RTCSSLAdapter.h", |
51 "objc/Framework/Headers/WebRTC/RTCTracing.h", | 64 "objc/Framework/Headers/WebRTC/RTCTracing.h", |
52 ] | 65 ] |
53 deps = [ | 66 deps = [ |
| 67 ":rtc_sdk_helpers_objc", |
54 "../base:rtc_base", | 68 "../base:rtc_base", |
55 ] | 69 ] |
56 configs += [ "..:common_objc" ] | 70 configs += [ "..:common_objc" ] |
57 | 71 |
58 public_configs = [ ":rtc_sdk_common_objc_config" ] | 72 public_configs = [ ":rtc_sdk_common_objc_config" ] |
59 if (is_ios) { | 73 if (is_ios) { |
60 sources += [ | 74 sources += [ |
61 "objc/Framework/Classes/RTCCameraPreviewView.m", | 75 "objc/Framework/Classes/RTCCameraPreviewView.m", |
62 "objc/Framework/Classes/RTCUIApplication.h", | 76 "objc/Framework/Classes/RTCUIApplication.h", |
63 "objc/Framework/Classes/RTCUIApplication.mm", | 77 "objc/Framework/Classes/RTCUIApplication.mm", |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 deps += [ "$rtc_libyuv_dir" ] | 465 deps += [ "$rtc_libyuv_dir" ] |
452 public_deps = [ | 466 public_deps = [ |
453 "$rtc_libyuv_dir", | 467 "$rtc_libyuv_dir", |
454 ] | 468 ] |
455 } else { | 469 } else { |
456 # Need to add a directory normally exported by libyuv. | 470 # Need to add a directory normally exported by libyuv. |
457 include_dirs = [ "$rtc_libyuv_dir/include" ] | 471 include_dirs = [ "$rtc_libyuv_dir/include" ] |
458 } | 472 } |
459 } | 473 } |
460 } | 474 } |
OLD | NEW |