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

Side by Side Diff: chrome/browser/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 | « chrome/app/resources/BUILD.gn ('k') | chrome/browser/extensions/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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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/chrome_build.gni") 5 import("//build/config/chrome_build.gni")
6 import("//build/config/crypto.gni") 6 import("//build/config/crypto.gni")
7 import("//build/config/features.gni") 7 import("//build/config/features.gni")
8 import("//build/config/ui.gni") 8 import("//build/config/ui.gni")
9 import("//third_party/protobuf/proto_library.gni") 9 import("//third_party/protobuf/proto_library.gni")
10 10
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 ldflags += [ 323 ldflags += [
324 "-weak_framework", 324 "-weak_framework",
325 "CoreImage", 325 "CoreImage",
326 ] 326 ]
327 } 327 }
328 328
329 if (is_win || is_mac) { 329 if (is_win || is_mac) {
330 sources += 330 sources +=
331 rebase_path(gypi_values.chrome_browser_win_mac_sources, ".", "//chrome") 331 rebase_path(gypi_values.chrome_browser_win_mac_sources, ".", "//chrome")
332 } 332 }
333 if (!is_android && !is_ios && !is_chromeos && enable_configuration_policy) { 333 if (!is_android && !is_ios && !is_chromeos_ui && enable_configuration_policy) {
334 sources += [ 334 sources += [
335 "net/disk_cache_dir_policy_handler.cc", 335 "net/disk_cache_dir_policy_handler.cc",
336 "net/disk_cache_dir_policy_handler.h", 336 "net/disk_cache_dir_policy_handler.h",
337 ] 337 ]
338 } 338 }
339 if (!is_android && !is_ios && enable_configuration_policy) { 339 if (!is_android && !is_ios && enable_configuration_policy) {
340 sources += [ 340 sources += [
341 "download/download_dir_policy_handler.cc", 341 "download/download_dir_policy_handler.cc",
342 "download/download_dir_policy_handler.h", 342 "download/download_dir_policy_handler.h",
343 ] 343 ]
(...skipping 19 matching lines...) Expand all
363 "//media/cast:net", 363 "//media/cast:net",
364 ] 364 ]
365 sources += rebase_path(gypi_values.chrome_browser_extensions_sources, 365 sources += rebase_path(gypi_values.chrome_browser_extensions_sources,
366 ".", 366 ".",
367 "//chrome") 367 "//chrome")
368 } 368 }
369 if (enable_background) { 369 if (enable_background) {
370 sources += rebase_path(gypi_values.chrome_browser_background_sources, 370 sources += rebase_path(gypi_values.chrome_browser_background_sources,
371 ".", 371 ".",
372 "//chrome") 372 "//chrome")
373 if (!use_aura || is_win || is_chromeos) { 373 if (!use_aura || is_win || is_chromeos_ui) {
374 sources -= [ "background/background_mode_manager_aura.cc" ] 374 sources -= [ "background/background_mode_manager_aura.cc" ]
375 } 375 }
376 } 376 }
377 if (enable_task_manager) { 377 if (enable_task_manager) {
378 sources += rebase_path(gypi_values.chrome_browser_task_manager_sources, 378 sources += rebase_path(gypi_values.chrome_browser_task_manager_sources,
379 ".", 379 ".",
380 "//chrome") 380 "//chrome")
381 } 381 }
382 if (enable_spellcheck) { 382 if (enable_spellcheck) {
383 sources += rebase_path(gypi_values.chrome_browser_spellchecker_sources, 383 sources += rebase_path(gypi_values.chrome_browser_spellchecker_sources,
(...skipping 16 matching lines...) Expand all
400 "//chrome") 400 "//chrome")
401 deps += [ 401 deps += [
402 "//components/policy", 402 "//components/policy",
403 "//components/policy/proto", 403 "//components/policy/proto",
404 ] 404 ]
405 if (!is_ios) { 405 if (!is_ios) {
406 sources += rebase_path(gypi_values.chrome_browser_policy_non_ios_sources, 406 sources += rebase_path(gypi_values.chrome_browser_policy_non_ios_sources,
407 ".", 407 ".",
408 "//chrome") 408 "//chrome")
409 } 409 }
410 if (!is_chromeos) { 410 if (!is_chromeos_ui) {
411 sources += rebase_path( 411 sources += rebase_path(
412 gypi_values.chrome_browser_policy_shared_with_ios_not_chromeos_sou rces, 412 gypi_values.chrome_browser_policy_shared_with_ios_not_chromeos_sou rces,
413 ".", 413 ".",
414 "//chrome") 414 "//chrome")
415 } 415 }
416 if (is_win || is_mac || is_desktop_linux) { 416 if (is_win || is_mac || is_desktop_linux) {
417 sources += rebase_path(gypi_values.chrome_browser_policy_desktop_sources, 417 sources += rebase_path(gypi_values.chrome_browser_policy_desktop_sources,
418 ".", 418 ".",
419 "//chrome") 419 "//chrome")
420 } 420 }
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 if (enable_hotwording) { 471 if (enable_hotwording) {
472 defines += [ "ENABLE_HOTWORDING" ] 472 defines += [ "ENABLE_HOTWORDING" ]
473 } 473 }
474 474
475 if (is_linux) { 475 if (is_linux) {
476 deps += [ 476 deps += [
477 "//device/media_transfer_protocol", 477 "//device/media_transfer_protocol",
478 "//device/udev_linux", 478 "//device/udev_linux",
479 ] 479 ]
480 } 480 }
481 if (is_linux && !is_chromeos) { 481 if (is_linux && !is_chromeos_ui) {
482 deps += [ "//third_party/speech-dispatcher" ] 482 deps += [ "//third_party/speech-dispatcher" ]
483 } 483 }
484 484
485 if (is_chromeos) { 485 if (is_chromeos_ui) {
486 sources += rebase_path(gypi_values.chrome_browser_chromeos_sources, 486 sources += rebase_path(gypi_values.chrome_browser_chromeos_sources,
487 ".", 487 ".",
488 "//chrome") 488 "//chrome")
489 deps += [ "//chrome/browser/chromeos" ] 489 deps += [ "//chrome/browser/chromeos" ]
490 } else { 490 } else {
491 # Non-ChromeOS. 491 # Non-ChromeOS.
492 sources += rebase_path(gypi_values.chrome_browser_non_chromeos_sources, 492 sources += rebase_path(gypi_values.chrome_browser_non_chromeos_sources,
493 ".", 493 ".",
494 "//chrome") 494 "//chrome")
495 } 495 }
496 496
497 if (is_ios) { 497 if (is_ios) {
498 sources -= [ 498 sources -= [
499 "metrics/signin_status_metrics_provider_base.cc", 499 "metrics/signin_status_metrics_provider_base.cc",
500 "metrics/signin_status_metrics_provider_base.h", 500 "metrics/signin_status_metrics_provider_base.h",
501 ] 501 ]
502 } 502 }
503 503
504 if (is_chromeos || is_ios) { 504 if (is_chromeos_ui || is_ios) {
505 sources -= [ 505 sources -= [
506 "metrics/signin_status_metrics_provider.cc", 506 "metrics/signin_status_metrics_provider.cc",
507 "metrics/signin_status_metrics_provider.h", 507 "metrics/signin_status_metrics_provider.h",
508 ] 508 ]
509 } 509 }
510 510
511 if (use_cups) { 511 if (use_cups) {
512 configs += [ "//printing:cups" ] 512 configs += [ "//printing:cups" ]
513 } 513 }
514 if (is_desktop_linux) { 514 if (is_desktop_linux) {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 "//chrome/app/chrome_crash_reporter_client.h", 553 "//chrome/app/chrome_crash_reporter_client.h",
554 ] 554 ]
555 deps += [ 555 deps += [
556 "//components/crash/app", 556 "//components/crash/app",
557 "//components/crash/browser", 557 "//components/crash/browser",
558 ] 558 ]
559 } 559 }
560 if (use_nss_certs) { 560 if (use_nss_certs) {
561 sources += 561 sources +=
562 rebase_path(gypi_values.chrome_browser_nss_sources, ".", "//chrome") 562 rebase_path(gypi_values.chrome_browser_nss_sources, ".", "//chrome")
563 if (is_chromeos) { 563 if (is_chromeos_ui) {
564 sources -= [ "net/nss_context_linux.cc" ] 564 sources -= [ "net/nss_context_linux.cc" ]
565 } 565 }
566 } 566 }
567 if (enable_notifications) { 567 if (enable_notifications) {
568 sources += rebase_path(gypi_values.chrome_browser_notifications_sources, 568 sources += rebase_path(gypi_values.chrome_browser_notifications_sources,
569 ".", 569 ".",
570 "//chrome") 570 "//chrome")
571 if (!is_android) { 571 if (!is_android) {
572 sources += rebase_path( 572 sources += rebase_path(
573 gypi_values.chrome_browser_notifications_non_android_sources, 573 gypi_values.chrome_browser_notifications_non_android_sources,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 sources += rebase_path(gypi_values.chrome_browser_captive_portal_sources, 612 sources += rebase_path(gypi_values.chrome_browser_captive_portal_sources,
613 ".", 613 ".",
614 "//chrome") 614 "//chrome")
615 } 615 }
616 if (enable_session_service) { 616 if (enable_session_service) {
617 sources += rebase_path(gypi_values.chrome_browser_session_service_sources, 617 sources += rebase_path(gypi_values.chrome_browser_session_service_sources,
618 ".", 618 ".",
619 "//chrome") 619 "//chrome")
620 } 620 }
621 621
622 if (!is_android && !is_ios && !is_chromeos) { 622 if (!is_android && !is_ios && !is_chromeos_ui) {
623 sources += 623 sources +=
624 rebase_path(gypi_values.chrome_browser_desktop_sources, ".", "//chrome") 624 rebase_path(gypi_values.chrome_browser_desktop_sources, ".", "//chrome")
625 } 625 }
626 626
627 if (is_android || is_ios) { 627 if (is_android || is_ios) {
628 # Mobile. 628 # Mobile.
629 sources += 629 sources +=
630 rebase_path(gypi_values.chrome_browser_mobile_sources, ".", "//chrome") 630 rebase_path(gypi_values.chrome_browser_mobile_sources, ".", "//chrome")
631 } else { 631 } else {
632 # Non-mobile. 632 # Non-mobile.
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
1077 } 1077 }
1078 1078
1079 if (enable_extensions) { 1079 if (enable_extensions) {
1080 sources += [ 1080 sources += [
1081 "extensions/extension_action_test_util.cc", 1081 "extensions/extension_action_test_util.cc",
1082 "extensions/extension_action_test_util.h", 1082 "extensions/extension_action_test_util.h",
1083 ] 1083 ]
1084 deps += [ "//extensions:test_support" ] 1084 deps += [ "//extensions:test_support" ]
1085 } 1085 }
1086 1086
1087 if (is_chromeos) { 1087 if (is_chromeos_ui) {
1088 sources += [ 1088 sources += [
1089 "chromeos/app_mode/fake_cws.cc", 1089 "chromeos/app_mode/fake_cws.cc",
1090 "chromeos/app_mode/fake_cws.h", 1090 "chromeos/app_mode/fake_cws.h",
1091 "chromeos/file_manager/fake_disk_mount_manager.cc", 1091 "chromeos/file_manager/fake_disk_mount_manager.cc",
1092 "chromeos/file_manager/fake_disk_mount_manager.h", 1092 "chromeos/file_manager/fake_disk_mount_manager.h",
1093 "chromeos/input_method/mock_candidate_window_controller.cc", 1093 "chromeos/input_method/mock_candidate_window_controller.cc",
1094 "chromeos/input_method/mock_candidate_window_controller.h", 1094 "chromeos/input_method/mock_candidate_window_controller.h",
1095 "chromeos/input_method/mock_input_method_engine.cc", 1095 "chromeos/input_method/mock_input_method_engine.cc",
1096 "chromeos/input_method/mock_input_method_engine.h", 1096 "chromeos/input_method/mock_input_method_engine.h",
1097 "chromeos/input_method/mock_input_method_manager.cc", 1097 "chromeos/input_method/mock_input_method_manager.cc",
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
1218 rebase_path(gypi_values.chrome_browser_rlz_sources, ".", "//chrome") 1218 rebase_path(gypi_values.chrome_browser_rlz_sources, ".", "//chrome")
1219 deps = [ 1219 deps = [
1220 "//components/google/core/browser", 1220 "//components/google/core/browser",
1221 "//components/omnibox/browser", 1221 "//components/omnibox/browser",
1222 "//components/rlz", 1222 "//components/rlz",
1223 "//components/search_engines", 1223 "//components/search_engines",
1224 "//rlz:rlz_lib", 1224 "//rlz:rlz_lib",
1225 ] 1225 ]
1226 } 1226 }
1227 } 1227 }
OLDNEW
« no previous file with comments | « chrome/app/resources/BUILD.gn ('k') | chrome/browser/extensions/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698