Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(207)

Side by Side Diff: net/BUILD.gn

Issue 242173002: Make GN build work on Mac again. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Undo mistakes Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/crypto.gni") 5 import("//build/config/crypto.gni")
6 import("//build/config/features.gni") 6 import("//build/config/features.gni")
7 import("//build/config/ui.gni") 7 import("//build/config/ui.gni")
8 import("//tools/grit/grit_rule.gni") 8 import("//tools/grit/grit_rule.gni")
9 9
10 if (is_android) { 10 if (is_android) {
(...skipping 21 matching lines...) Expand all
32 posix_avoid_mmap = is_android && cpu_arch != "x86" 32 posix_avoid_mmap = is_android && cpu_arch != "x86"
33 33
34 # WebSockets and socket stream code are used everywhere except iOS. 34 # WebSockets and socket stream code are used everywhere except iOS.
35 enable_websockets = !is_ios 35 enable_websockets = !is_ios
36 # TODO(brettw) put back to "!is_ios" when v8 is supported in GN build. 36 # TODO(brettw) put back to "!is_ios" when v8 is supported in GN build.
37 use_v8_in_net = false # TODO(brettw)!is_ios 37 use_v8_in_net = false # TODO(brettw)!is_ios
38 enable_built_in_dns = !is_ios 38 enable_built_in_dns = !is_ios
39 39
40 enable_ftp_support = !is_ios 40 enable_ftp_support = !is_ios
41 41
42 # When OpenSSL is used for SSL and crypto on Unix-like systems, use OpenSSL"s
43 # certificate definition.
44 use_openssl_certs = (is_linux || is_android) && use_openssl
45
46 config("net_config") { 42 config("net_config") {
47 defines = [] 43 defines = []
48 if (posix_avoid_mmap) { 44 if (posix_avoid_mmap) {
49 defines += [ "POSIX_AVOID_MMAP" ] 45 defines += [ "POSIX_AVOID_MMAP" ]
50 } 46 }
51 } 47 }
52 48
53 # Disables Windows warning about size to int truncations. 49 # Disables Windows warning about size to int truncations.
54 # TODO(jschuh): crbug.com/167187 fix this and delete this config. 50 # TODO(jschuh): crbug.com/167187 fix this and delete this config.
55 config("net_win_size_truncation") { 51 config("net_win_size_truncation") {
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 "ocsp/nss_ocsp.h", 270 "ocsp/nss_ocsp.h",
275 "third_party/mozilla_security_manager/nsKeygenHandler.cpp", 271 "third_party/mozilla_security_manager/nsKeygenHandler.cpp",
276 "third_party/mozilla_security_manager/nsKeygenHandler.h", 272 "third_party/mozilla_security_manager/nsKeygenHandler.h",
277 "third_party/mozilla_security_manager/nsNSSCertificateDB.cpp", 273 "third_party/mozilla_security_manager/nsNSSCertificateDB.cpp",
278 "third_party/mozilla_security_manager/nsNSSCertificateDB.h", 274 "third_party/mozilla_security_manager/nsNSSCertificateDB.h",
279 "third_party/mozilla_security_manager/nsPKCS12Blob.cpp", 275 "third_party/mozilla_security_manager/nsPKCS12Blob.cpp",
280 "third_party/mozilla_security_manager/nsPKCS12Blob.h", 276 "third_party/mozilla_security_manager/nsPKCS12Blob.h",
281 ] 277 ]
282 } 278 }
283 279
284 if (use_openssl) { 280 if (!use_nss_certs) {
Ryan Sleevi 2014/04/18 00:25:07 FYI - https://code.google.com/p/chromium/codesearc
285 sources -= [ 281 sources -= [
286 "cert/cert_verify_proc_nss.cc", 282 "cert/cert_verify_proc_nss.cc",
287 "cert/cert_verify_proc_nss.h", 283 "cert/cert_verify_proc_nss.h",
288 "ssl/client_cert_store_nss.cc", 284 "ssl/client_cert_store_nss.cc",
289 "ssl/client_cert_store_nss.h", 285 "ssl/client_cert_store_nss.h",
290 ] 286 ]
291 if (is_chromeos) { 287 if (is_chromeos) {
292 # These were already removed on non-ChromeOS. 288 # These were already removed on non-ChromeOS.
293 sources -= [ 289 sources -= [
294 "ssl/client_cert_store_chromeos.cc", 290 "ssl/client_cert_store_chromeos.cc",
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
904 900
905 if (is_android || is_linux) { 901 if (is_android || is_linux) {
906 executable("disk_cache_memory_test") { 902 executable("disk_cache_memory_test") {
907 sources = [ "tools/disk_cache_memory_test/disk_cache_memory_test.cc" ] 903 sources = [ "tools/disk_cache_memory_test/disk_cache_memory_test.cc" ]
908 deps = [ 904 deps = [
909 ":net", 905 ":net",
910 "//base", 906 "//base",
911 ] 907 ]
912 } 908 }
913 } 909 }
OLDNEW
« build/config/BUILD.gn ('K') | « build/config/crypto.gni ('k') | skia/skia_gn_files.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698