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

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: 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 = !is_chromeos_ui && !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 && !is_chromeos_ui) {
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 (is_chromeos_ui) {
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 "ssl/client_cert_store_chromeos.cc", 354 "ssl/client_cert_store_chromeos.cc",
355 "ssl/client_cert_store_chromeos.h", 355 "ssl/client_cert_store_chromeos.h",
356 ] 356 ]
357 } 357 }
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after
1003 testonly = true 1003 testonly = true
1004 sources = [ 1004 sources = [
1005 "tools/net_watcher/net_watcher.cc", 1005 "tools/net_watcher/net_watcher.cc",
1006 ] 1006 ]
1007 deps = [ 1007 deps = [
1008 ":net", 1008 ":net",
1009 ":net_with_v8", 1009 ":net_with_v8",
1010 "//base", 1010 "//base",
1011 ] 1011 ]
1012 1012
1013 if (is_desktop_linux) { 1013 if (is_linux && !is_chromeos_ui) {
1014 configs += [ 1014 configs += [
1015 "//build/config/linux:gconf", 1015 "//build/config/linux:gconf",
1016 "//build/config/linux:glib", 1016 "//build/config/linux:glib",
1017 ] 1017 ]
1018 deps += [ "//build/config/linux:gio" ] 1018 deps += [ "//build/config/linux:gio" ]
1019 } 1019 }
1020 } 1020 }
1021 } 1021 }
1022 1022
1023 executable("run_testserver") { 1023 executable("run_testserver") {
(...skipping 376 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 (is_chromeos_ui) {
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 (is_chromeos_ui) { # 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 "ssl/client_cert_store_chromeos_unittest.cc", 1427 "ssl/client_cert_store_chromeos_unittest.cc",
1428 ] 1428 ]
1429 } 1429 }
1430 } 1430 }
1431 1431
1432 if (use_openssl) { 1432 if (use_openssl) {
1433 # When building for OpenSSL, we need to exclude NSS specific tests 1433 # When building for OpenSSL, we need to exclude NSS specific tests
(...skipping 20 matching lines...) Expand all
1454 sources -= [ 1454 sources -= [
1455 "http/http_auth_gssapi_posix_unittest.cc", 1455 "http/http_auth_gssapi_posix_unittest.cc",
1456 "http/mock_gssapi_library_posix.cc", 1456 "http/mock_gssapi_library_posix.cc",
1457 "http/mock_gssapi_library_posix.h", 1457 "http/mock_gssapi_library_posix.h",
1458 ] 1458 ]
1459 } 1459 }
1460 if (!use_kerberos) { 1460 if (!use_kerberos) {
1461 sources -= [ "http/http_auth_handler_negotiate_unittest.cc" ] 1461 sources -= [ "http/http_auth_handler_negotiate_unittest.cc" ]
1462 } 1462 }
1463 1463
1464 if (use_openssl || (!is_desktop_linux && !is_chromeos && !is_ios)) { 1464 if (use_openssl || (!is_desktop_linux && !is_chromeos_ui && !is_ios)) {
1465 # Only include this test when on Posix and using NSS for 1465 # Only include this test when on Posix and using NSS for
1466 # cert verification or on iOS (which also uses NSS for certs). 1466 # cert verification or on iOS (which also uses NSS for certs).
1467 sources -= [ "cert_net/nss_ocsp_unittest.cc" ] 1467 sources -= [ "cert_net/nss_ocsp_unittest.cc" ]
1468 } 1468 }
1469 1469
1470 if (!use_openssl_certs) { 1470 if (!use_openssl_certs) {
1471 sources -= [ "ssl/openssl_client_key_store_unittest.cc" ] 1471 sources -= [ "ssl/openssl_client_key_store_unittest.cc" ]
1472 } 1472 }
1473 1473
1474 if (!enable_websockets) { 1474 if (!enable_websockets) {
(...skipping 211 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