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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 config("apprtc_signaling_config") { | 189 config("apprtc_signaling_config") { |
190 include_dirs = [ "objc/AppRTCMobile" ] | 190 include_dirs = [ "objc/AppRTCMobile" ] |
191 | 191 |
192 # GN orders flags on a target before flags from configs. The default config | 192 # GN orders flags on a target before flags from configs. The default config |
193 # adds these flags so to cancel them out they need to come from a config and | 193 # adds these flags so to cancel them out they need to come from a config and |
194 # cannot be on the target directly. | 194 # cannot be on the target directly. |
195 cflags = [ | 195 cflags = [ |
196 "-Wno-sign-compare", | 196 "-Wno-sign-compare", |
197 "-Wno-unused-variable", | 197 "-Wno-unused-variable", |
198 ] | 198 ] |
199 if (is_mac) { | |
200 cflags += [ "-Wno-partial-availability" ] | |
201 } | |
202 } | 199 } |
203 | 200 |
204 rtc_static_library("apprtc_signaling") { | 201 rtc_static_library("apprtc_signaling") { |
205 sources = [ | 202 sources = [ |
206 "objc/AppRTCMobile/ARDAppClient+Internal.h", | 203 "objc/AppRTCMobile/ARDAppClient+Internal.h", |
207 "objc/AppRTCMobile/ARDAppClient.h", | 204 "objc/AppRTCMobile/ARDAppClient.h", |
208 "objc/AppRTCMobile/ARDAppClient.m", | 205 "objc/AppRTCMobile/ARDAppClient.m", |
209 "objc/AppRTCMobile/ARDAppEngineClient.h", | 206 "objc/AppRTCMobile/ARDAppEngineClient.h", |
210 "objc/AppRTCMobile/ARDAppEngineClient.m", | 207 "objc/AppRTCMobile/ARDAppEngineClient.m", |
211 "objc/AppRTCMobile/ARDBitrateTracker.h", | 208 "objc/AppRTCMobile/ARDBitrateTracker.h", |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 ] | 358 ] |
362 deps = [ | 359 deps = [ |
363 ":apprtc_common", | 360 ":apprtc_common", |
364 ":apprtc_signaling", | 361 ":apprtc_signaling", |
365 ] | 362 ] |
366 } | 363 } |
367 | 364 |
368 mac_app_bundle("AppRTCMobile") { | 365 mac_app_bundle("AppRTCMobile") { |
369 output_name = "AppRTCMobile" | 366 output_name = "AppRTCMobile" |
370 | 367 |
371 extra_substitutions = [ "MACOSX_DEPLOYMENT_TARGET=10.8" ] | |
372 | |
373 sources = [ | 368 sources = [ |
374 "objc/AppRTCMobile/mac/main.m", | 369 "objc/AppRTCMobile/mac/main.m", |
375 ] | 370 ] |
376 | 371 |
377 public_configs = [ "..:common_inherited_config" ] | 372 public_configs = [ "..:common_inherited_config" ] |
378 | 373 |
379 info_plist = "objc/AppRTCMobile/mac/Info.plist" | 374 info_plist = "objc/AppRTCMobile/mac/Info.plist" |
380 | 375 |
381 libs = [ "AppKit.framework" ] | 376 libs = [ "AppKit.framework" ] |
382 | 377 |
(...skipping 19 matching lines...) Expand all Loading... |
402 ] | 397 ] |
403 | 398 |
404 cflags_objc = [ | 399 cflags_objc = [ |
405 # Enabled for cflags_objc in build/config/compiler/BUILD.gn. | 400 # Enabled for cflags_objc in build/config/compiler/BUILD.gn. |
406 "-Wno-objc-missing-property-synthesis", | 401 "-Wno-objc-missing-property-synthesis", |
407 | 402 |
408 # Hide the warning for SecRandomCopyBytes(), until we update to upstream. | 403 # Hide the warning for SecRandomCopyBytes(), until we update to upstream. |
409 # https://bugs.chromium.org/p/webrtc/issues/detail?id=6396 | 404 # https://bugs.chromium.org/p/webrtc/issues/detail?id=6396 |
410 "-Wno-unused-result", | 405 "-Wno-unused-result", |
411 ] | 406 ] |
412 | |
413 if (is_mac) { | |
414 cflags += [ "-Wno-partial-availability" ] | |
415 } | |
416 } | 407 } |
417 | 408 |
418 rtc_static_library("socketrocket") { | 409 rtc_static_library("socketrocket") { |
419 sources = [ | 410 sources = [ |
420 "objc/AppRTCMobile/third_party/SocketRocket/SRWebSocket.h", | 411 "objc/AppRTCMobile/third_party/SocketRocket/SRWebSocket.h", |
421 "objc/AppRTCMobile/third_party/SocketRocket/SRWebSocket.m", | 412 "objc/AppRTCMobile/third_party/SocketRocket/SRWebSocket.m", |
422 ] | 413 ] |
423 configs += [ | 414 configs += [ |
424 "//build/config/compiler:enable_arc", | 415 "//build/config/compiler:enable_arc", |
425 ":socketrocket_warning_config", | 416 ":socketrocket_warning_config", |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
629 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 620 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
630 } | 621 } |
631 | 622 |
632 deps = [ | 623 deps = [ |
633 "../p2p:libstunprober", | 624 "../p2p:libstunprober", |
634 "../p2p:rtc_p2p", | 625 "../p2p:rtc_p2p", |
635 "../system_wrappers:field_trial_default", | 626 "../system_wrappers:field_trial_default", |
636 ] | 627 ] |
637 } | 628 } |
638 } | 629 } |
OLD | NEW |