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") |
11 import("../build/webrtc.gni") | 11 import("../build/webrtc.gni") |
12 | 12 |
13 # Enable OpenSSL (BoringSSL) for iOS. This is covered in webrtc/supplement.gypi | |
14 # for the GYP build. | |
15 import("//build_overrides/webrtc.gni") | 13 import("//build_overrides/webrtc.gni") |
16 if (is_ios && !build_with_chromium) { | |
17 use_openssl = true | |
18 } | |
19 | 14 |
20 config("rtc_base_config") { | 15 config("rtc_base_config") { |
21 include_dirs = [ | 16 include_dirs = [ |
22 "//third_party/jsoncpp/overrides/include", | 17 "//third_party/jsoncpp/overrides/include", |
23 "//third_party/jsoncpp/source/include", | 18 "//third_party/jsoncpp/source/include", |
24 ] | 19 ] |
25 | 20 |
26 defines = [ | 21 defines = [ |
27 "FEATURE_ENABLE_SSL", | 22 "FEATURE_ENABLE_SSL", |
28 "LOGGING=1", | 23 "LOGGING=1", |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 config("mac_x86_config") { | 68 config("mac_x86_config") { |
74 libs = [ | 69 libs = [ |
75 #"Carbon.framework", # Already included in //build/config:default_libs. | 70 #"Carbon.framework", # Already included in //build/config:default_libs. |
76 ] | 71 ] |
77 } | 72 } |
78 | 73 |
79 if (is_linux && !build_with_chromium) { | 74 if (is_linux && !build_with_chromium) { |
80 # Provides the same functionality as the //crypto:platform target, which | 75 # Provides the same functionality as the //crypto:platform target, which |
81 # WebRTC cannot use as we don't sync src/crypto from Chromium. | 76 # WebRTC cannot use as we don't sync src/crypto from Chromium. |
82 group("linux_system_ssl") { | 77 group("linux_system_ssl") { |
83 if (use_openssl) { | 78 deps = [ |
84 deps = [ | 79 "//third_party/boringssl", |
85 "//third_party/boringssl", | 80 ] |
86 ] | |
87 } | |
88 } | 81 } |
89 } | 82 } |
90 | 83 |
91 if (rtc_build_ssl == 0) { | 84 if (rtc_build_ssl == 0) { |
92 config("external_ssl_library") { | 85 config("external_ssl_library") { |
93 assert(rtc_ssl_root != "", | 86 assert(rtc_ssl_root != "", |
94 "You must specify rtc_ssl_root when rtc_build_ssl==0.") | 87 "You must specify rtc_ssl_root when rtc_build_ssl==0.") |
95 include_dirs = [ rtc_ssl_root ] | 88 include_dirs = [ rtc_ssl_root ] |
96 } | 89 } |
97 } | 90 } |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 "messagehandler.h", | 262 "messagehandler.h", |
270 "messagequeue.cc", | 263 "messagequeue.cc", |
271 "messagequeue.h", | 264 "messagequeue.h", |
272 "nethelpers.cc", | 265 "nethelpers.cc", |
273 "nethelpers.h", | 266 "nethelpers.h", |
274 "network.cc", | 267 "network.cc", |
275 "network.h", | 268 "network.h", |
276 "networkmonitor.cc", | 269 "networkmonitor.cc", |
277 "networkmonitor.h", | 270 "networkmonitor.h", |
278 "nullsocketserver.h", | 271 "nullsocketserver.h", |
| 272 "openssl.h", |
| 273 "openssladapter.cc", |
| 274 "openssladapter.h", |
| 275 "openssldigest.cc", |
| 276 "openssldigest.h", |
| 277 "opensslidentity.cc", |
| 278 "opensslidentity.h", |
| 279 "opensslstreamadapter.cc", |
| 280 "opensslstreamadapter.h", |
279 "pathutils.cc", | 281 "pathutils.cc", |
280 "pathutils.h", | 282 "pathutils.h", |
281 "physicalsocketserver.cc", | 283 "physicalsocketserver.cc", |
282 "physicalsocketserver.h", | 284 "physicalsocketserver.h", |
283 "proxydetect.cc", | 285 "proxydetect.cc", |
284 "proxydetect.h", | 286 "proxydetect.h", |
285 "proxyinfo.cc", | 287 "proxyinfo.cc", |
286 "proxyinfo.h", | 288 "proxyinfo.h", |
287 "ratelimiter.cc", | 289 "ratelimiter.cc", |
288 "ratelimiter.h", | 290 "ratelimiter.h", |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
457 | 459 |
458 # TODO(henrike): issue 3307, make rtc_base build with the Chromium default | 460 # TODO(henrike): issue 3307, make rtc_base build with the Chromium default |
459 # compiler settings. | 461 # compiler settings. |
460 configs -= [ "//build/config/compiler:chromium_code" ] | 462 configs -= [ "//build/config/compiler:chromium_code" ] |
461 configs += [ "//build/config/compiler:no_chromium_code" ] | 463 configs += [ "//build/config/compiler:no_chromium_code" ] |
462 if (!is_win) { | 464 if (!is_win) { |
463 cflags += [ "-Wno-uninitialized" ] | 465 cflags += [ "-Wno-uninitialized" ] |
464 cflags_cc += [ "-Wno-non-virtual-dtor" ] | 466 cflags_cc += [ "-Wno-non-virtual-dtor" ] |
465 } | 467 } |
466 | 468 |
467 # TODO(kjellander): The use_openssl block should really go away in order for | 469 if (rtc_build_ssl) { |
468 # the GN build to be similar to the GYP build. See http://crbug.com/601042 for | 470 deps += [ "//third_party/boringssl" ] |
469 # more details. | 471 } else { |
470 if (use_openssl) { | 472 configs += [ "external_ssl_library" ] |
471 if (rtc_build_ssl) { | |
472 deps += [ "//third_party/boringssl" ] | |
473 } else { | |
474 configs += [ "external_ssl_library" ] | |
475 } | |
476 sources += [ | |
477 "openssl.h", | |
478 "openssladapter.cc", | |
479 "openssladapter.h", | |
480 "openssldigest.cc", | |
481 "openssldigest.h", | |
482 "opensslidentity.cc", | |
483 "opensslidentity.h", | |
484 "opensslstreamadapter.cc", | |
485 "opensslstreamadapter.h", | |
486 ] | |
487 } | 473 } |
488 | 474 |
489 if (is_android) { | 475 if (is_android) { |
490 sources += [ | 476 sources += [ |
491 "ifaddrs-android.cc", | 477 "ifaddrs-android.cc", |
492 "ifaddrs-android.h", | 478 "ifaddrs-android.h", |
493 ] | 479 ] |
494 | 480 |
495 libs += [ | 481 libs += [ |
496 "log", | 482 "log", |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
644 "objc/RTCUIApplication.mm", | 630 "objc/RTCUIApplication.mm", |
645 ] | 631 ] |
646 } | 632 } |
647 } | 633 } |
648 | 634 |
649 source_set("gtest_prod") { | 635 source_set("gtest_prod") { |
650 sources = [ | 636 sources = [ |
651 "gtest_prod_util.h", | 637 "gtest_prod_util.h", |
652 ] | 638 ] |
653 } | 639 } |
OLD | NEW |