OLD | NEW |
---|---|
1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2014 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/config/crypto.gni") | 9 import("//build/config/crypto.gni") |
10 import("//build/config/ui.gni") | 10 import("//build/config/ui.gni") |
(...skipping 23 matching lines...) Expand all Loading... | |
34 defines = [ "NO_MAIN_THREAD_WRAPPING" ] | 34 defines = [ "NO_MAIN_THREAD_WRAPPING" ] |
35 } | 35 } |
36 | 36 |
37 config("openssl_config") { | 37 config("openssl_config") { |
38 defines = [ | 38 defines = [ |
39 "SSL_USE_OPENSSL", | 39 "SSL_USE_OPENSSL", |
40 "HAVE_OPENSSL_SSL_H", | 40 "HAVE_OPENSSL_SSL_H", |
41 ] | 41 ] |
42 } | 42 } |
43 | 43 |
44 config("ios_config") { | 44 config("rtc_base_all_dependent_config") { |
45 libs = [ | 45 if (is_ios) { |
46 "AVFoundation.framework", | 46 libs = [ |
kjellander_webrtc
2016/04/25 05:37:56
This no longer exists in base.gyp (only for the _o
| |
47 "CFNetwork.framework", | 47 "CFNetwork.framework", |
48 | 48 |
49 #"Foundation.framework", # Already included in //build/config:default_libs. | 49 #"Foundation.framework", # Already in //build/config:default_libs. |
50 "Security.framework", | 50 "Security.framework", |
51 "SystemConfiguration.framework", | 51 "SystemConfiguration.framework", |
52 | 52 "UIKit.framework", # Already in //build/config:default_libs. |
53 #"UIKit.framework", # Already included in //build/config:default_libs. | 53 ] |
kjellander_webrtc
2016/04/25 05:37:56
No longer in //build/config:default_libs
| |
54 ] | 54 } |
55 } | 55 if (is_mac) { |
56 | 56 libs = [ |
57 config("mac_config") { | 57 "Cocoa.framework", |
58 libs = [ | 58 "Foundation.framework", |
59 "Cocoa.framework", | 59 "IOKit.framework", |
60 | 60 "Security.framework", |
61 #"Foundation.framework", # Already included in //build/config:default_libs. | 61 "SystemConfiguration.framework", |
kjellander_webrtc
2016/04/25 05:37:56
Include these again (turns out it was a very good
| |
62 #"IOKit.framework", # Already included in //build/config:default_libs. | 62 ] |
63 #"Security.framework", # Already included in //build/config:default_libs. | 63 if (current_cpu == "x86") { |
64 "SystemConfiguration.framework", | 64 libs = [ "Carbon.framework" ] # Already in //build/config:default_libs. |
65 ] | 65 } |
66 } | 66 } |
67 | |
68 config("mac_x86_config") { | |
69 libs = [ | |
70 #"Carbon.framework", # Already included in //build/config:default_libs. | |
71 ] | |
72 } | 67 } |
73 | 68 |
74 if (is_linux && !build_with_chromium) { | 69 if (is_linux && !build_with_chromium) { |
75 # Provides the same functionality as the //crypto:platform target, which | 70 # Provides the same functionality as the //crypto:platform target, which |
76 # WebRTC cannot use as we don't sync src/crypto from Chromium. | 71 # WebRTC cannot use as we don't sync src/crypto from Chromium. |
77 group("linux_system_ssl") { | 72 group("linux_system_ssl") { |
78 deps = [ | 73 deps = [ |
79 "//third_party/boringssl", | 74 "//third_party/boringssl", |
80 ] | 75 ] |
81 } | 76 } |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
195 ":openssl_config", | 190 ":openssl_config", |
196 ":rtc_base_config", | 191 ":rtc_base_config", |
197 ] | 192 ] |
198 | 193 |
199 public_configs = [ | 194 public_configs = [ |
200 "..:common_inherited_config", | 195 "..:common_inherited_config", |
201 ":openssl_config", | 196 ":openssl_config", |
202 ":rtc_base_config", | 197 ":rtc_base_config", |
203 ] | 198 ] |
204 | 199 |
200 all_dependent_configs = [ ":rtc_base_all_dependent_config" ] | |
201 | |
205 defines = [ "LOGGING=1" ] | 202 defines = [ "LOGGING=1" ] |
206 | 203 |
207 sources = [ | 204 sources = [ |
208 "arraysize.h", | 205 "arraysize.h", |
209 "asyncfile.cc", | 206 "asyncfile.cc", |
210 "asyncfile.h", | 207 "asyncfile.h", |
211 "asyncinvoker-inl.h", | 208 "asyncinvoker-inl.h", |
212 "asyncinvoker.cc", | 209 "asyncinvoker.cc", |
213 "asyncinvoker.h", | 210 "asyncinvoker.h", |
214 "asyncpacketsocket.cc", | 211 "asyncpacketsocket.cc", |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
481 "ifaddrs-android.h", | 478 "ifaddrs-android.h", |
482 ] | 479 ] |
483 | 480 |
484 libs += [ | 481 libs += [ |
485 "log", | 482 "log", |
486 "GLESv2", | 483 "GLESv2", |
487 ] | 484 ] |
488 } | 485 } |
489 | 486 |
490 if (is_ios || is_mac) { | 487 if (is_ios || is_mac) { |
491 if (is_ios) { | |
492 all_dependent_configs = [ ":ios_config" ] | |
493 } | |
494 sources += [ | 488 sources += [ |
495 "maccocoathreadhelper.h", | 489 "maccocoathreadhelper.h", |
496 "maccocoathreadhelper.mm", | 490 "maccocoathreadhelper.mm", |
497 "macconversion.cc", | 491 "macconversion.cc", |
498 "macconversion.h", | 492 "macconversion.h", |
499 "macifaddrs_converter.cc", | 493 "macifaddrs_converter.cc", |
500 "scoped_autorelease_pool.h", | 494 "scoped_autorelease_pool.h", |
501 "scoped_autorelease_pool.mm", | 495 "scoped_autorelease_pool.mm", |
502 ] | 496 ] |
503 } | 497 } |
(...skipping 18 matching lines...) Expand all Loading... | |
522 "dl", | 516 "dl", |
523 "rt", | 517 "rt", |
524 ] | 518 ] |
525 } | 519 } |
526 | 520 |
527 if (is_mac) { | 521 if (is_mac) { |
528 sources += [ | 522 sources += [ |
529 "macutils.cc", | 523 "macutils.cc", |
530 "macutils.h", | 524 "macutils.h", |
531 ] | 525 ] |
532 | |
533 all_dependent_configs = [ ":mac_config" ] | |
534 | |
535 if (current_cpu == "x86") { | |
536 all_dependent_configs += [ ":mac_x86_config" ] | |
537 } | |
538 } | 526 } |
539 | 527 |
540 if (is_win) { | 528 if (is_win) { |
541 sources += [ | 529 sources += [ |
542 "win32.cc", | 530 "win32.cc", |
543 "win32.h", | 531 "win32.h", |
544 "win32filesystem.cc", | 532 "win32filesystem.cc", |
545 "win32filesystem.h", | 533 "win32filesystem.h", |
546 "win32securityerrors.cc", | 534 "win32securityerrors.cc", |
547 "win32window.cc", | 535 "win32window.cc", |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
638 ] | 626 ] |
639 } | 627 } |
640 } | 628 } |
641 } | 629 } |
642 | 630 |
643 source_set("gtest_prod") { | 631 source_set("gtest_prod") { |
644 sources = [ | 632 sources = [ |
645 "gtest_prod_util.h", | 633 "gtest_prod_util.h", |
646 ] | 634 ] |
647 } | 635 } |
OLD | NEW |