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

Side by Side Diff: net/BUILD.gn

Issue 1291703008: Rename is_chromeos in chrome/src. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: retry Created 5 years, 4 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
« no previous file with comments | « media/mojo/interfaces/BUILD.gn ('k') | printing/BUILD.gn » ('j') | 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) 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("//build/module_args/v8.gni") 8 import("//build/module_args/v8.gni")
9 import("//url/config.gni") 9 import("//url/config.gni")
10 import("//testing/test.gni") 10 import("//testing/test.gni")
(...skipping 15 matching lines...) Expand all
26 } 26 }
27 27
28 # The list of net files is kept in net.gypi. Read it. 28 # The list of net files is kept in net.gypi. Read it.
29 gypi_values = exec_script("//build/gypi_to_gn.py", 29 gypi_values = exec_script("//build/gypi_to_gn.py",
30 [ rebase_path("net.gypi") ], 30 [ rebase_path("net.gypi") ],
31 "scope", 31 "scope",
32 [ "net.gypi" ]) 32 [ "net.gypi" ])
33 33
34 # Disable Kerberos on ChromeOS, Android and iOS, at least for now. It needs 34 # Disable Kerberos on ChromeOS, Android and iOS, at least for now. It needs
35 # configuration (krb5.conf and so on). 35 # configuration (krb5.conf and so on).
36 use_kerberos = !is_chromeos && !is_android && !is_ios 36 use_kerberos = !use_cros_fe && !is_android && !is_ios
37 37
38 # The way the cache uses mmap() is inefficient on some Android devices. If 38 # The way the cache uses mmap() is inefficient on some Android devices. If
39 # this flag is set, we hackily avoid using mmap() in the disk cache. We are 39 # this flag is set, we hackily avoid using mmap() in the disk cache. We are
40 # pretty confident that mmap-ing the index would not hurt any existing x86 40 # pretty confident that mmap-ing the index would not hurt any existing x86
41 # android devices, but we cannot be so sure about the variety of ARM devices. 41 # android devices, but we cannot be so sure about the variety of ARM devices.
42 # So enable it for x86 only for now. 42 # So enable it for x86 only for now.
43 posix_avoid_mmap = is_android && current_cpu != "x86" 43 posix_avoid_mmap = is_android && current_cpu != "x86"
44 44
45 # WebSockets and socket stream code are used everywhere except iOS. 45 # WebSockets and socket stream code are used everywhere except iOS.
46 enable_websockets = !is_ios 46 enable_websockets = !is_ios
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 } 299 }
300 300
301 # TODO(davidben): Remove these exclusions when use_openssl_certs builds also 301 # TODO(davidben): Remove these exclusions when use_openssl_certs builds also
302 # use the SSLPrivateKey machinery. 302 # use the SSLPrivateKey machinery.
303 sources -= [ 303 sources -= [
304 "ssl/threaded_ssl_private_key.cc", 304 "ssl/threaded_ssl_private_key.cc",
305 "ssl/threaded_ssl_private_key.h", 305 "ssl/threaded_ssl_private_key.h",
306 ] 306 ]
307 } 307 }
308 308
309 if (use_glib && !is_chromeos) { 309 if (use_glib && !use_cros_fe) {
310 configs += [ "//build/config/linux:gconf" ] 310 configs += [ "//build/config/linux:gconf" ]
311 deps += [ "//build/config/linux:gio" ] 311 deps += [ "//build/config/linux:gio" ]
312 } 312 }
313 313
314 if (is_linux) { 314 if (is_linux) {
315 configs += [ "//build/config/linux:libresolv" ] 315 configs += [ "//build/config/linux:libresolv" ]
316 } 316 }
317 317
318 if (!use_nss_certs) { 318 if (!use_nss_certs) {
319 sources -= [ 319 sources -= [
(...skipping 17 matching lines...) Expand all
337 # keep them in that case (even though use_nss_certs is not set). 337 # keep them in that case (even though use_nss_certs is not set).
338 sources -= [ 338 sources -= [
339 "cert/cert_verify_proc_nss.cc", 339 "cert/cert_verify_proc_nss.cc",
340 "cert/cert_verify_proc_nss.h", 340 "cert/cert_verify_proc_nss.h",
341 "cert/test_root_certs_nss.cc", 341 "cert/test_root_certs_nss.cc",
342 "cert/x509_util_nss_certs.cc", 342 "cert/x509_util_nss_certs.cc",
343 "cert_net/nss_ocsp.cc", 343 "cert_net/nss_ocsp.cc",
344 "cert_net/nss_ocsp.h", 344 "cert_net/nss_ocsp.h",
345 ] 345 ]
346 } 346 }
347 if (is_chromeos) { 347 if (use_cros_fe) {
348 # These were already removed on non-ChromeOS. 348 # These were already removed on non-ChromeOS.
349 sources -= [ 349 sources -= [
350 "cert/nss_cert_database_chromeos.cc", 350 "cert/nss_cert_database_chromeos.cc",
351 "cert/nss_cert_database_chromeos.h", 351 "cert/nss_cert_database_chromeos.h",
352 "cert/nss_profile_filter_chromeos.cc", 352 "cert/nss_profile_filter_chromeos.cc",
353 "cert/nss_profile_filter_chromeos.h", 353 "cert/nss_profile_filter_chromeos.h",
354 ] 354 ]
355 } 355 }
356 sources -= [ "ssl/ssl_platform_key_nss.cc" ] 356 sources -= [ "ssl/ssl_platform_key_nss.cc" ]
357 } else if (use_openssl) { 357 } else if (use_openssl) {
(...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after
999 testonly = true 999 testonly = true
1000 sources = [ 1000 sources = [
1001 "tools/net_watcher/net_watcher.cc", 1001 "tools/net_watcher/net_watcher.cc",
1002 ] 1002 ]
1003 deps = [ 1003 deps = [
1004 ":net", 1004 ":net",
1005 ":net_with_v8", 1005 ":net_with_v8",
1006 "//base", 1006 "//base",
1007 ] 1007 ]
1008 1008
1009 if (is_desktop_linux) { 1009 if (is_linux && !use_cros_fe) {
1010 configs += [ 1010 configs += [
1011 "//build/config/linux:gconf", 1011 "//build/config/linux:gconf",
1012 "//build/config/linux:glib", 1012 "//build/config/linux:glib",
1013 ] 1013 ]
1014 deps += [ "//build/config/linux:gio" ] 1014 deps += [ "//build/config/linux:gio" ]
1015 } 1015 }
1016 } 1016 }
1017 } 1017 }
1018 1018
1019 executable("run_testserver") { 1019 executable("run_testserver") {
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
1400 ":epoll_quic_tools", 1400 ":epoll_quic_tools",
1401 ":epoll_server", 1401 ":epoll_server",
1402 ":flip_in_mem_edsm_server_base", 1402 ":flip_in_mem_edsm_server_base",
1403 ] 1403 ]
1404 } 1404 }
1405 1405
1406 if (is_mac || is_ios) { 1406 if (is_mac || is_ios) {
1407 sources += gypi_values.net_base_test_mac_ios_sources 1407 sources += gypi_values.net_base_test_mac_ios_sources
1408 } 1408 }
1409 1409
1410 if (is_chromeos) { 1410 if (use_cros_fe) {
1411 sources -= [ "proxy/proxy_config_service_linux_unittest.cc" ] 1411 sources -= [ "proxy/proxy_config_service_linux_unittest.cc" ]
1412 } 1412 }
1413 1413
1414 if (v8_use_external_startup_data) { 1414 if (v8_use_external_startup_data) {
1415 deps += [ "//gin" ] 1415 deps += [ "//gin" ]
1416 } 1416 }
1417 1417
1418 if (!use_nss_certs) { 1418 if (!use_nss_certs) {
1419 sources -= [ 1419 sources -= [
1420 "cert/nss_cert_database_unittest.cc", 1420 "cert/nss_cert_database_unittest.cc",
1421 "ssl/client_cert_store_nss_unittest.cc", 1421 "ssl/client_cert_store_nss_unittest.cc",
1422 ] 1422 ]
1423 if (is_chromeos) { # Already removed for all non-ChromeOS builds. 1423 if (use_cros_fe) { # Already removed for all non-ChromeOS builds.
1424 sources -= [ 1424 sources -= [
1425 "cert/nss_cert_database_chromeos_unittest.cc", 1425 "cert/nss_cert_database_chromeos_unittest.cc",
1426 "cert/nss_profile_filter_chromeos_unittest.cc", 1426 "cert/nss_profile_filter_chromeos_unittest.cc",
1427 ] 1427 ]
1428 } 1428 }
1429 } 1429 }
1430 1430
1431 if (use_openssl) { 1431 if (use_openssl) {
1432 # When building for OpenSSL, we need to exclude NSS specific tests 1432 # When building for OpenSSL, we need to exclude NSS specific tests
1433 # or functionality not supported by OpenSSL yet. 1433 # or functionality not supported by OpenSSL yet.
(...skipping 19 matching lines...) Expand all
1453 sources -= [ 1453 sources -= [
1454 "http/http_auth_gssapi_posix_unittest.cc", 1454 "http/http_auth_gssapi_posix_unittest.cc",
1455 "http/mock_gssapi_library_posix.cc", 1455 "http/mock_gssapi_library_posix.cc",
1456 "http/mock_gssapi_library_posix.h", 1456 "http/mock_gssapi_library_posix.h",
1457 ] 1457 ]
1458 } 1458 }
1459 if (!use_kerberos) { 1459 if (!use_kerberos) {
1460 sources -= [ "http/http_auth_handler_negotiate_unittest.cc" ] 1460 sources -= [ "http/http_auth_handler_negotiate_unittest.cc" ]
1461 } 1461 }
1462 1462
1463 if (use_openssl || (!is_desktop_linux && !is_chromeos && !is_ios)) { 1463 if (use_openssl || (!is_desktop_linux && !use_cros_fe && !is_ios)) {
1464 # Only include this test when on Posix and using NSS for 1464 # Only include this test when on Posix and using NSS for
1465 # cert verification or on iOS (which also uses NSS for certs). 1465 # cert verification or on iOS (which also uses NSS for certs).
1466 sources -= [ "cert_net/nss_ocsp_unittest.cc" ] 1466 sources -= [ "cert_net/nss_ocsp_unittest.cc" ]
1467 } 1467 }
1468 1468
1469 if (!use_openssl_certs) { 1469 if (!use_openssl_certs) {
1470 sources -= [ "ssl/openssl_client_key_store_unittest.cc" ] 1470 sources -= [ "ssl/openssl_client_key_store_unittest.cc" ]
1471 } 1471 }
1472 1472
1473 if (!enable_websockets) { 1473 if (!enable_websockets) {
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
1686 if (enable_websockets) { 1686 if (enable_websockets) {
1687 sources += [ "websockets/websocket_frame_perftest.cc" ] 1687 sources += [ "websockets/websocket_frame_perftest.cc" ]
1688 } 1688 }
1689 1689
1690 if (use_v8_in_net) { 1690 if (use_v8_in_net) {
1691 deps += [ ":net_with_v8" ] 1691 deps += [ ":net_with_v8" ]
1692 } else { 1692 } else {
1693 sources -= [ "proxy/proxy_resolver_perftest.cc" ] 1693 sources -= [ "proxy/proxy_resolver_perftest.cc" ]
1694 } 1694 }
1695 } 1695 }
OLDNEW
« no previous file with comments | « media/mojo/interfaces/BUILD.gn ('k') | printing/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698