OLD | NEW |
1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 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_android) { | 10 if (is_android) { |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 "//webrtc/sdk/android:libjingle_peerconnection_java", | 143 "//webrtc/sdk/android:libjingle_peerconnection_java", |
144 ] | 144 ] |
145 | 145 |
146 data = [ | 146 data = [ |
147 "//resources/reference_video_640x360_30fps.y4m", | 147 "//resources/reference_video_640x360_30fps.y4m", |
148 ] | 148 ] |
149 } | 149 } |
150 } | 150 } |
151 | 151 |
152 if (is_ios || (is_mac && target_cpu != "x86")) { | 152 if (is_ios || (is_mac && target_cpu != "x86")) { |
153 config("warnings_config") { | |
154 # GN orders flags on a target before flags from configs. The default config | |
155 # adds these flags so to cancel them out they need to come from a config and | |
156 # cannot be on the target directly. | |
157 if (is_ios) { | |
158 # Suppress compiler warnings about deprecated that triggered | |
159 # when moving from ios_deployment_target 7.0 to 9.0. | |
160 # See webrtc:5549 for more details. | |
161 cflags = [ "-Wno-deprecated-declarations" ] | |
162 cflags_objc = [ | |
163 # Enabled for cflags_objc in build/config/compiler/BUILD.gn. | |
164 # See webrtc:6520. | |
165 "-Wno-objc-missing-property-synthesis", | |
166 ] | |
167 } | |
168 } | |
169 | |
170 config("apprtc_common_config") { | 153 config("apprtc_common_config") { |
171 include_dirs = [ "objc/AppRTCMobile/common" ] | 154 include_dirs = [ "objc/AppRTCMobile/common" ] |
172 } | 155 } |
173 | 156 |
174 rtc_static_library("apprtc_common") { | 157 rtc_static_library("apprtc_common") { |
175 testonly = true | 158 testonly = true |
176 sources = [ | 159 sources = [ |
177 "objc/AppRTCMobile/common/ARDUtilities.h", | 160 "objc/AppRTCMobile/common/ARDUtilities.h", |
178 "objc/AppRTCMobile/common/ARDUtilities.m", | 161 "objc/AppRTCMobile/common/ARDUtilities.m", |
179 ] | 162 ] |
180 configs += [ | 163 configs += [ "//build/config/compiler:enable_arc" ] |
181 ":warnings_config", | |
182 "//build/config/compiler:enable_arc", | |
183 ] | |
184 public_configs = [ ":apprtc_common_config" ] | 164 public_configs = [ ":apprtc_common_config" ] |
185 | 165 |
186 deps = [ | 166 deps = [ |
187 "//webrtc/sdk:rtc_sdk_common_objc", | 167 "//webrtc/sdk:rtc_sdk_common_objc", |
188 "//webrtc/system_wrappers:field_trial_default", | 168 "//webrtc/system_wrappers:field_trial_default", |
189 "//webrtc/system_wrappers:metrics_default", | 169 "//webrtc/system_wrappers:metrics_default", |
190 ] | 170 ] |
191 } | 171 } |
192 | 172 |
193 config("apprtc_signaling_config") { | 173 config("apprtc_signaling_config") { |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 "objc/AppRTCMobile/ARDWebSocketChannel.m", | 218 "objc/AppRTCMobile/ARDWebSocketChannel.m", |
239 "objc/AppRTCMobile/RTCIceCandidate+JSON.h", | 219 "objc/AppRTCMobile/RTCIceCandidate+JSON.h", |
240 "objc/AppRTCMobile/RTCIceCandidate+JSON.m", | 220 "objc/AppRTCMobile/RTCIceCandidate+JSON.m", |
241 "objc/AppRTCMobile/RTCIceServer+JSON.h", | 221 "objc/AppRTCMobile/RTCIceServer+JSON.h", |
242 "objc/AppRTCMobile/RTCIceServer+JSON.m", | 222 "objc/AppRTCMobile/RTCIceServer+JSON.m", |
243 "objc/AppRTCMobile/RTCMediaConstraints+JSON.h", | 223 "objc/AppRTCMobile/RTCMediaConstraints+JSON.h", |
244 "objc/AppRTCMobile/RTCMediaConstraints+JSON.m", | 224 "objc/AppRTCMobile/RTCMediaConstraints+JSON.m", |
245 "objc/AppRTCMobile/RTCSessionDescription+JSON.h", | 225 "objc/AppRTCMobile/RTCSessionDescription+JSON.h", |
246 "objc/AppRTCMobile/RTCSessionDescription+JSON.m", | 226 "objc/AppRTCMobile/RTCSessionDescription+JSON.m", |
247 ] | 227 ] |
248 configs += [ | 228 configs += [ "//build/config/compiler:enable_arc" ] |
249 "//build/config/compiler:enable_arc", | |
250 ":warnings_config", | |
251 ] | |
252 public_configs = [ ":apprtc_signaling_config" ] | 229 public_configs = [ ":apprtc_signaling_config" ] |
253 deps = [ | 230 deps = [ |
254 ":apprtc_common", | 231 ":apprtc_common", |
255 ":socketrocket", | 232 ":socketrocket", |
256 ] | 233 ] |
257 public_deps = [ | 234 public_deps = [ |
258 "//webrtc/sdk:rtc_sdk_peerconnection_objc", | 235 "//webrtc/sdk:rtc_sdk_peerconnection_objc", |
259 ] | 236 ] |
260 libs = [ "QuartzCore.framework" ] | 237 libs = [ "QuartzCore.framework" ] |
261 } | 238 } |
(...skipping 12 matching lines...) Expand all Loading... |
274 "objc/AppRTCMobile/ios/ARDStatsView.h", | 251 "objc/AppRTCMobile/ios/ARDStatsView.h", |
275 "objc/AppRTCMobile/ios/ARDStatsView.m", | 252 "objc/AppRTCMobile/ios/ARDStatsView.m", |
276 "objc/AppRTCMobile/ios/ARDVideoCallView.h", | 253 "objc/AppRTCMobile/ios/ARDVideoCallView.h", |
277 "objc/AppRTCMobile/ios/ARDVideoCallView.m", | 254 "objc/AppRTCMobile/ios/ARDVideoCallView.m", |
278 "objc/AppRTCMobile/ios/ARDVideoCallViewController.h", | 255 "objc/AppRTCMobile/ios/ARDVideoCallViewController.h", |
279 "objc/AppRTCMobile/ios/ARDVideoCallViewController.m", | 256 "objc/AppRTCMobile/ios/ARDVideoCallViewController.m", |
280 "objc/AppRTCMobile/ios/AppRTCMobile-Prefix.pch", | 257 "objc/AppRTCMobile/ios/AppRTCMobile-Prefix.pch", |
281 "objc/AppRTCMobile/ios/UIImage+ARDUtilities.h", | 258 "objc/AppRTCMobile/ios/UIImage+ARDUtilities.h", |
282 "objc/AppRTCMobile/ios/UIImage+ARDUtilities.m", | 259 "objc/AppRTCMobile/ios/UIImage+ARDUtilities.m", |
283 ] | 260 ] |
284 configs += [ | 261 configs += [ "//build/config/compiler:enable_arc" ] |
285 "//build/config/compiler:enable_arc", | |
286 ":warnings_config", | |
287 ] | |
288 | 262 |
289 deps = [ | 263 deps = [ |
290 ":apprtc_common", | 264 ":apprtc_common", |
291 ":apprtc_signaling", | 265 ":apprtc_signaling", |
292 "//webrtc/modules/audio_device", | 266 "//webrtc/modules/audio_device", |
293 ] | 267 ] |
294 } | 268 } |
295 | 269 |
296 ios_app_bundle("AppRTCMobile") { | 270 ios_app_bundle("AppRTCMobile") { |
297 testonly = true | 271 testonly = true |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
655 | 629 |
656 deps = [ | 630 deps = [ |
657 "../base:rtc_base", | 631 "../base:rtc_base", |
658 "../base:rtc_base_approved", | 632 "../base:rtc_base_approved", |
659 "../p2p:libstunprober", | 633 "../p2p:libstunprober", |
660 "../p2p:rtc_p2p", | 634 "../p2p:rtc_p2p", |
661 "../system_wrappers:field_trial_default", | 635 "../system_wrappers:field_trial_default", |
662 ] | 636 ] |
663 } | 637 } |
664 } | 638 } |
OLD | NEW |