OLD | NEW |
1 # Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2015 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 { | 9 { |
10 'includes': [ '../build/common.gypi', ], | 10 'includes': [ '../build/common.gypi', ], |
11 'conditions': [ | 11 'conditions': [ |
12 ['OS=="ios"', { | 12 ['OS=="ios" or OS=="mac"', { |
13 'targets': [ | 13 'targets': [ |
14 { | 14 { |
15 'target_name': 'rtc_api_objc', | 15 'target_name': 'rtc_api_objc', |
16 'type': 'static_library', | 16 'type': 'static_library', |
| 17 'includes': [ '../build/objc_common.gypi' ], |
17 'dependencies': [ | 18 'dependencies': [ |
18 '<(webrtc_root)/base/base.gyp:rtc_base_objc', | 19 '<(webrtc_root)/base/base.gyp:rtc_base_objc', |
19 '../../talk/libjingle.gyp:libjingle_peerconnection', | 20 '../../talk/libjingle.gyp:libjingle_peerconnection', |
20 ], | 21 ], |
21 'sources': [ | 22 'sources': [ |
22 'objc/RTCAVFoundationVideoSource+Private.h', | |
23 'objc/RTCAVFoundationVideoSource.h', | |
24 'objc/RTCAVFoundationVideoSource.mm', | |
25 'objc/RTCAudioTrack+Private.h', | 23 'objc/RTCAudioTrack+Private.h', |
26 'objc/RTCAudioTrack.h', | 24 'objc/RTCAudioTrack.h', |
27 'objc/RTCAudioTrack.mm', | 25 'objc/RTCAudioTrack.mm', |
28 'objc/RTCConfiguration+Private.h', | 26 'objc/RTCConfiguration+Private.h', |
29 'objc/RTCConfiguration.h', | 27 'objc/RTCConfiguration.h', |
30 'objc/RTCConfiguration.mm', | 28 'objc/RTCConfiguration.mm', |
31 'objc/RTCDataChannel+Private.h', | 29 'objc/RTCDataChannel+Private.h', |
32 'objc/RTCDataChannel.h', | 30 'objc/RTCDataChannel.h', |
33 'objc/RTCDataChannel.mm', | 31 'objc/RTCDataChannel.mm', |
34 'objc/RTCDataChannelConfiguration+Private.h', | 32 'objc/RTCDataChannelConfiguration+Private.h', |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 'objc/RTCVideoRenderer.h', | 64 'objc/RTCVideoRenderer.h', |
67 'objc/RTCVideoRendererAdapter+Private.h', | 65 'objc/RTCVideoRendererAdapter+Private.h', |
68 'objc/RTCVideoRendererAdapter.h', | 66 'objc/RTCVideoRendererAdapter.h', |
69 'objc/RTCVideoRendererAdapter.mm', | 67 'objc/RTCVideoRendererAdapter.mm', |
70 'objc/RTCVideoSource+Private.h', | 68 'objc/RTCVideoSource+Private.h', |
71 'objc/RTCVideoSource.h', | 69 'objc/RTCVideoSource.h', |
72 'objc/RTCVideoSource.mm', | 70 'objc/RTCVideoSource.mm', |
73 'objc/RTCVideoTrack+Private.h', | 71 'objc/RTCVideoTrack+Private.h', |
74 'objc/RTCVideoTrack.h', | 72 'objc/RTCVideoTrack.h', |
75 'objc/RTCVideoTrack.mm', | 73 'objc/RTCVideoTrack.mm', |
76 'objc/avfoundationvideocapturer.h', | |
77 'objc/avfoundationvideocapturer.mm', | |
78 ], | 74 ], |
79 'conditions': [ | 75 'conditions': [ |
80 ['OS=="ios"', { | 76 ['OS=="ios"', { |
81 'sources': [ | 77 'sources': [ |
| 78 'objc/RTCAVFoundationVideoSource+Private.h', |
| 79 'objc/RTCAVFoundationVideoSource.h', |
| 80 'objc/RTCAVFoundationVideoSource.mm', |
82 'objc/RTCEAGLVideoView.h', | 81 'objc/RTCEAGLVideoView.h', |
83 'objc/RTCEAGLVideoView.m', | 82 'objc/RTCEAGLVideoView.m', |
| 83 'objc/avfoundationvideocapturer.h', |
| 84 'objc/avfoundationvideocapturer.mm', |
84 ], | 85 ], |
85 'all_dependent_settings': { | 86 'all_dependent_settings': { |
86 'xcode_settings': { | 87 'xcode_settings': { |
87 'OTHER_LDFLAGS': [ | 88 'OTHER_LDFLAGS': [ |
88 '-framework CoreGraphics', | 89 '-framework CoreGraphics', |
89 '-framework GLKit', | 90 '-framework GLKit', |
90 '-framework OpenGLES', | 91 '-framework OpenGLES', |
91 '-framework QuartzCore', | 92 '-framework QuartzCore', |
92 ] | 93 ] |
93 } | 94 } |
94 } | 95 } |
95 }], | 96 }], |
96 ['OS=="mac"', { | 97 ['OS=="mac"', { |
97 'sources': [ | 98 'sources': [ |
98 'objc/RTCNSGLVideoView.h', | 99 'objc/RTCNSGLVideoView.h', |
99 'objc/RTCNSGLVideoView.m', | 100 'objc/RTCNSGLVideoView.m', |
100 ], | 101 ], |
101 }], | 102 }], |
102 ], | 103 ], |
103 'xcode_settings': { | |
104 'CLANG_ENABLE_OBJC_ARC': 'YES', | |
105 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'YES', | |
106 'GCC_PREFIX_HEADER': 'objc/WebRTC-Prefix.pch', | |
107 }, | |
108 } | 104 } |
109 ], | 105 ], |
110 }], # OS=="ios" | 106 }], # OS=="ios" |
111 ], | 107 ], |
112 } | 108 } |
OLD | NEW |