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

Side by Side Diff: net/net.gyp

Issue 3855004: Make USE_OPENSSL and USE_NSS mutually exclusive (Closed)
Patch Set: wtc comments Created 10 years, 1 month 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
« no previous file with comments | « net/http/des.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2010 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 { 5 {
6 'variables': { 6 'variables': {
7 'chromium_code': 1, 7 'chromium_code': 1,
8 }, 8 },
9 'targets': [ 9 'targets': [
10 { 10 {
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 ], 227 ],
228 'message': 'Generating SSL False Start blacklist', 228 'message': 'Generating SSL False Start blacklist',
229 'process_outputs_as_sources': 1, 229 'process_outputs_as_sources': 1,
230 }, 230 },
231 ], 231 ],
232 'conditions': [ 232 'conditions': [
233 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', { 233 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
234 'dependencies': [ 234 'dependencies': [
235 '../build/linux/system.gyp:gconf', 235 '../build/linux/system.gyp:gconf',
236 '../build/linux/system.gyp:gdk', 236 '../build/linux/system.gyp:gdk',
237 '../build/linux/system.gyp:nss',
238 '../build/linux/system.gyp:libresolv', 237 '../build/linux/system.gyp:libresolv',
239 ], 238 ],
239 'conditions': [
240 ['use_openssl==1', {
241 'dependencies': [
242 '../build/linux/system.gyp:openssl',
243 ],
244 }, { # else: not using openssl. Use NSS.
245 'dependencies': [
246 '../build/linux/system.gyp:nss',
247 ],
248 }],
249 ],
240 }, 250 },
241 { # else: OS is not in the above list 251 { # else: OS is not in the above list
242 'sources!': [ 252 'sources!': [
243 'base/cert_database_nss.cc', 253 'base/cert_database_nss.cc',
244 'base/keygen_handler_nss.cc', 254 'base/keygen_handler_nss.cc',
245 'base/x509_certificate_nss.cc', 255 'base/x509_certificate_nss.cc',
246 'third_party/mozilla_security_manager/nsKeygenHandler.cpp', 256 'third_party/mozilla_security_manager/nsKeygenHandler.cpp',
247 'third_party/mozilla_security_manager/nsKeygenHandler.h', 257 'third_party/mozilla_security_manager/nsKeygenHandler.h',
248 'third_party/mozilla_security_manager/nsNSSCertificateDB.cpp', 258 'third_party/mozilla_security_manager/nsNSSCertificateDB.cpp',
249 'third_party/mozilla_security_manager/nsNSSCertificateDB.h', 259 'third_party/mozilla_security_manager/nsNSSCertificateDB.h',
250 'third_party/mozilla_security_manager/nsNSSCertTrust.cpp', 260 'third_party/mozilla_security_manager/nsNSSCertTrust.cpp',
251 'third_party/mozilla_security_manager/nsNSSCertTrust.h', 261 'third_party/mozilla_security_manager/nsNSSCertTrust.h',
252 'third_party/mozilla_security_manager/nsPKCS12Blob.cpp', 262 'third_party/mozilla_security_manager/nsPKCS12Blob.cpp',
253 'third_party/mozilla_security_manager/nsPKCS12Blob.h', 263 'third_party/mozilla_security_manager/nsPKCS12Blob.h',
254 ], 264 ],
255 }, 265 },
256 ], 266 ],
257 [ 'use_openssl == 1 and OS == "linux"', { 267 [ 'use_openssl==1', {
258 # When building for OpenSSL, we need to exclude some NSS files.
259 # TODO(bulach): remove once we fully support OpenSSL.
260 'sources!': [ 268 'sources!': [
261 'base/cert_database_nss.cc', 269 'base/cert_database_nss.cc',
270 'base/dnssec_keyset.cc',
271 'base/dnssec_keyset.h',
262 'base/keygen_handler_nss.cc', 272 'base/keygen_handler_nss.cc',
273 'base/nss_memio.c',
274 'base/nss_memio.h',
263 'base/x509_certificate_nss.cc', 275 'base/x509_certificate_nss.cc',
264 'third_party/mozilla_security_manager/nsKeygenHandler.cpp', 276 'third_party/mozilla_security_manager/nsKeygenHandler.cpp',
265 'third_party/mozilla_security_manager/nsKeygenHandler.h', 277 'third_party/mozilla_security_manager/nsKeygenHandler.h',
266 'third_party/mozilla_security_manager/nsNSSCertificateDB.cpp', 278 'third_party/mozilla_security_manager/nsNSSCertificateDB.cpp',
267 'third_party/mozilla_security_manager/nsNSSCertificateDB.h', 279 'third_party/mozilla_security_manager/nsNSSCertificateDB.h',
268 'third_party/mozilla_security_manager/nsNSSCertTrust.cpp', 280 'third_party/mozilla_security_manager/nsNSSCertTrust.cpp',
269 'third_party/mozilla_security_manager/nsNSSCertTrust.h', 281 'third_party/mozilla_security_manager/nsNSSCertTrust.h',
270 'third_party/mozilla_security_manager/nsPKCS12Blob.cpp', 282 'third_party/mozilla_security_manager/nsPKCS12Blob.cpp',
271 'third_party/mozilla_security_manager/nsPKCS12Blob.h', 283 'third_party/mozilla_security_manager/nsPKCS12Blob.h',
272 ], 284 ],
273 }, 285 },
274 { # else: not using openssl. 286 { # else: not using openssl.
275 'sources!': [ 287 'sources!': [
276 'base/cert_database_openssl.cc', 288 'base/cert_database_openssl.cc',
277 'base/keygen_handler_openssl.cc', 289 'base/keygen_handler_openssl.cc',
278 'base/openssl_util.cc', 290 'base/openssl_util.cc',
279 'base/openssl_util.h', 291 'base/openssl_util.h',
280 'base/x509_certificate_openssl.cc', 292 'base/x509_certificate_openssl.cc',
281 ], 293 ],
282 }, 294 },
283 ], 295 ],
284 [ 'OS == "win"', { 296 [ 'OS == "win"', {
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 'dependencies': [ 707 'dependencies': [
696 '../v8/tools/gyp/v8.gyp:v8', 708 '../v8/tools/gyp/v8.gyp:v8',
697 ], 709 ],
698 }], 710 }],
699 ['chromeos==1', { 711 ['chromeos==1', {
700 'sources!': [ 712 'sources!': [
701 'proxy/proxy_config_service_linux.cc', 713 'proxy/proxy_config_service_linux.cc',
702 'proxy/proxy_config_service_linux.h', 714 'proxy/proxy_config_service_linux.h',
703 ], 715 ],
704 }], 716 }],
705 ['use_openssl==1 and OS == "linux"', { 717 ['use_openssl==1', {
706 'dependencies': [ 718 'dependencies': [
707 '../build/linux/system.gyp:openssl', 719 '../build/linux/system.gyp:openssl',
708 ], 720 ],
709 'sources!': [ 721 'sources!': [
710 'socket/ssl_client_socket_nss.cc', 722 'socket/ssl_client_socket_nss.cc',
711 'socket/ssl_client_socket_nss.h', 723 'socket/ssl_client_socket_nss.h',
712 'socket/ssl_client_socket_nss_factory.cc', 724 'socket/ssl_client_socket_nss_factory.cc',
713 'socket/ssl_client_socket_nss_factory.h', 725 'socket/ssl_client_socket_nss_factory.h',
714 ], 726 ],
715 }, 727 },
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
966 ], 978 ],
967 [ 'OS == "linux"', { 979 [ 'OS == "linux"', {
968 'conditions': [ 980 'conditions': [
969 ['linux_use_tcmalloc==1', { 981 ['linux_use_tcmalloc==1', {
970 'dependencies': [ 982 'dependencies': [
971 '../base/allocator/allocator.gyp:allocator', 983 '../base/allocator/allocator.gyp:allocator',
972 ], 984 ],
973 }], 985 }],
974 ], 986 ],
975 }], 987 }],
976 [ 'use_openssl == 1 and OS == "linux"', { 988 [ 'use_openssl==1', {
977 # When building for OpenSSL, we need to exclude some NSS files. 989 # When building for OpenSSL, we need to exclude NSS specific tests.
978 # TODO(bulach): remove once we fully support OpenSSL. 990 # TODO(bulach): Add equivalent tests when the underlying
991 # functionality is ported to OpenSSL.
979 'sources!': [ 992 'sources!': [
980 'base/cert_database_nss_unittest.cc', 993 'base/cert_database_nss_unittest.cc',
994 'base/dnssec_unittest.cc',
981 ], 995 ],
982 }, 996 },
983 ], 997 ],
984 [ 'OS == "win"', { 998 [ 'OS == "win"', {
985 'sources!': [ 999 'sources!': [
986 'http/http_auth_gssapi_posix_unittest.cc', 1000 'http/http_auth_gssapi_posix_unittest.cc',
987 ], 1001 ],
988 # This is needed to trigger the dll copy step on windows. 1002 # This is needed to trigger the dll copy step on windows.
989 # TODO(mark): Specifying this here shouldn't be necessary. 1003 # TODO(mark): Specifying this here shouldn't be necessary.
990 'dependencies': [ 1004 'dependencies': [
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
1100 'test/test_server.h', 1114 'test/test_server.h',
1101 ], 1115 ],
1102 'conditions': [ 1116 'conditions': [
1103 ['inside_chromium_build==1', { 1117 ['inside_chromium_build==1', {
1104 'dependencies': [ 1118 'dependencies': [
1105 '../chrome/browser/sync/protocol/sync_proto.gyp:sync_proto', 1119 '../chrome/browser/sync/protocol/sync_proto.gyp:sync_proto',
1106 '../third_party/protobuf/protobuf.gyp:py_proto', 1120 '../third_party/protobuf/protobuf.gyp:py_proto',
1107 ], 1121 ],
1108 }], 1122 }],
1109 ['OS == "linux" or OS == "freebsd" or OS == "openbsd"', { 1123 ['OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
1110 'dependencies': [ 1124 'conditions': [
1111 '../build/linux/system.gyp:nss', 1125 ['use_openssl==1', {
1126 'dependencies': [
1127 '../build/linux/system.gyp:openssl',
1128 ]
1129 }, {
1130 'dependencies': [
1131 '../build/linux/system.gyp:nss',
1132 ],
1133 }],
1112 ], 1134 ],
1113 }], 1135 }],
1114 ['OS == "linux"', { 1136 ['OS == "linux"', {
1115 'conditions': [ 1137 'conditions': [
1116 ['linux_use_tcmalloc==1', { 1138 ['linux_use_tcmalloc==1', {
1117 'dependencies': [ 1139 'dependencies': [
1118 '../base/allocator/allocator.gyp:allocator', 1140 '../base/allocator/allocator.gyp:allocator',
1119 ], 1141 ],
1120 }], 1142 }],
1121 ], 1143 ],
1122 }], 1144 }],
1123 ['use_openssl == 1 and OS == "linux"', {
1124 'dependencies': [
1125 '../build/linux/system.gyp:openssl',
1126 ]
1127 }],
1128 ], 1145 ],
1129 }, 1146 },
1130 { 1147 {
1131 'target_name': 'net_resources', 1148 'target_name': 'net_resources',
1132 'type': 'none', 1149 'type': 'none',
1133 'msvs_guid': '8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942', 1150 'msvs_guid': '8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942',
1134 'variables': { 1151 'variables': {
1135 'grit_cmd': ['python', '../tools/grit/grit.py'], 1152 'grit_cmd': ['python', '../tools/grit/grit.py'],
1136 'grit_info_cmd': ['python', '../tools/grit/grit_info.py'], 1153 'grit_info_cmd': ['python', '../tools/grit/grit_info.py'],
1137 'input_paths': [ 1154 'input_paths': [
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
1334 ], 1351 ],
1335 }], 1352 }],
1336 ], 1353 ],
1337 } 1354 }
1338 1355
1339 # Local Variables: 1356 # Local Variables:
1340 # tab-width:2 1357 # tab-width:2
1341 # indent-tabs-mode:nil 1358 # indent-tabs-mode:nil
1342 # End: 1359 # End:
1343 # vim: set expandtab tabstop=2 shiftwidth=2: 1360 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « net/http/des.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698