Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 # This is the root build file for GN. GN will start processing by loading this | 5 # This is the root build file for GN. GN will start processing by loading this |
| 6 # file, and recursively load all dependencies until all dependencies are either | 6 # file, and recursively load all dependencies until all dependencies are either |
| 7 # resolved or known not to exist (which will cause the build to fail). So if | 7 # resolved or known not to exist (which will cause the build to fail). So if |
| 8 # you add a new build file, there must be some path of dependencies from this | 8 # you add a new build file, there must be some path of dependencies from this |
| 9 # file to your new one or GN won't know about it. | 9 # file to your new one or GN won't know about it. |
| 10 | 10 |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 340 } | 340 } |
| 341 | 341 |
| 342 if (toolkit_views) { | 342 if (toolkit_views) { |
| 343 deps += [ | 343 deps += [ |
| 344 "//ui/views:views_unittests", | 344 "//ui/views:views_unittests", |
| 345 "//ui/views/examples:views_examples_exe", | 345 "//ui/views/examples:views_examples_exe", |
| 346 "//ui/views/examples:views_examples_with_content_exe", | 346 "//ui/views/examples:views_examples_with_content_exe", |
| 347 ] | 347 ] |
| 348 } | 348 } |
| 349 | 349 |
| 350 if (use_ash) { | |
|
James Cook
2016/12/01 18:29:53
use_ash is currently is_chromeos && !is_chromecast
| |
| 351 deps += [ | |
| 352 "//ash:ash_content_unittests", | |
| 353 "//ash:ash_shell_with_content", | |
| 354 "//ash:ash_unittests", | |
| 355 ] | |
| 356 } | |
| 357 | |
| 350 if (use_aura) { | 358 if (use_aura) { |
| 351 deps += [ | 359 deps += [ |
| 352 "//ash:ash_content_unittests", | |
| 353 "//ash:ash_shell_with_content", | |
| 354 "//ash:ash_unittests", | |
| 355 "//ui/app_list:app_list_unittests", | 360 "//ui/app_list:app_list_unittests", |
| 356 "//ui/app_list/presenter:app_list_presenter_unittests", | 361 "//ui/app_list/presenter:app_list_presenter_unittests", |
| 357 "//ui/aura:aura_unittests", | 362 "//ui/aura:aura_unittests", |
| 358 "//ui/aura:demo", | 363 "//ui/aura:demo", |
| 359 "//ui/wm:wm_unittests", | 364 "//ui/wm:wm_unittests", |
| 360 ] | 365 ] |
| 361 } | 366 } |
| 362 | 367 |
| 363 if (is_linux && !is_chromeos && !is_chromecast && !use_ozone) { | 368 if (is_linux && !is_chromeos && !is_chromecast && !use_ozone) { |
| 364 # TODO(thomasanderson): Remove this once we build using | 369 # TODO(thomasanderson): Remove this once we build using |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 469 "//breakpad:breakpad_unittests", | 474 "//breakpad:breakpad_unittests", |
| 470 "//breakpad:core-2-minidump", | 475 "//breakpad:core-2-minidump", |
| 471 "//breakpad:generate_test_dump", | 476 "//breakpad:generate_test_dump", |
| 472 "//breakpad:minidump-2-core", | 477 "//breakpad:minidump-2-core", |
| 473 ] | 478 ] |
| 474 } | 479 } |
| 475 | 480 |
| 476 if (is_chromeos) { | 481 if (is_chromeos) { |
| 477 deps += [ | 482 deps += [ |
| 478 "//chromeos:chromeos_unittests", | 483 "//chromeos:chromeos_unittests", |
| 484 "//components/session_manager/core", | |
|
James Cook
2016/12/01 18:29:53
This is just cleanup.
| |
| 479 "//ui/arc:ui_arc_unittests", | 485 "//ui/arc:ui_arc_unittests", |
| 480 "//ui/chromeos:ui_chromeos_unittests", | 486 "//ui/chromeos:ui_chromeos_unittests", |
| 481 ] | 487 ] |
| 482 } | 488 } |
| 483 | 489 |
| 484 if (is_chromeos || is_mac || is_win) { | 490 if (is_chromeos || is_mac || is_win) { |
| 485 deps += [ | 491 deps += [ |
| 486 "//rlz:rlz_id", | 492 "//rlz:rlz_id", |
| 487 "//rlz:rlz_lib", | 493 "//rlz:rlz_lib", |
| 488 "//rlz:rlz_unittests", | 494 "//rlz:rlz_unittests", |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 501 "//sandbox/linux:sandbox_linux_unittests", | 507 "//sandbox/linux:sandbox_linux_unittests", |
| 502 ] | 508 ] |
| 503 | 509 |
| 504 if (use_dbus) { | 510 if (use_dbus) { |
| 505 deps += [ | 511 deps += [ |
| 506 "//dbus:dbus_test_server", | 512 "//dbus:dbus_test_server", |
| 507 "//dbus:dbus_unittests", | 513 "//dbus:dbus_unittests", |
| 508 ] | 514 ] |
| 509 } | 515 } |
| 510 | 516 |
| 511 if (is_chromeos || use_ash) { | |
| 512 deps += [ "//components/session_manager/core" ] | |
| 513 } | |
| 514 | |
| 515 if (is_chrome_branded && is_official_build) { | 517 if (is_chrome_branded && is_official_build) { |
| 516 # TODO(dpranke): add the linux_dump_symbols flag? | 518 # TODO(dpranke): add the linux_dump_symbols flag? |
| 517 deps += [ "//chrome:linux_symbols" ] | 519 deps += [ "//chrome:linux_symbols" ] |
| 518 } | 520 } |
| 519 } | 521 } |
| 520 | 522 |
| 521 if (is_ios || is_win || (is_linux && !is_chromeos)) { | 523 if (is_ios || is_win || (is_linux && !is_chromeos)) { |
| 522 deps += [ | 524 deps += [ |
| 523 "//base:base_i18n_perftests", | 525 "//base:base_i18n_perftests", |
| 524 "//base:base_perftests", | 526 "//base:base_perftests", |
| (...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1097 assert(target_name != "") # Mark as used. | 1099 assert(target_name != "") # Mark as used. |
| 1098 sources = invoker.actual_sources | 1100 sources = invoker.actual_sources |
| 1099 assert( | 1101 assert( |
| 1100 sources == invoker.actual_sources, | 1102 sources == invoker.actual_sources, |
| 1101 "Do not use a platform name in your output directory (found \"$root_build_ dir\"). http://crbug.com/548283") | 1103 "Do not use a platform name in your output directory (found \"$root_build_ dir\"). http://crbug.com/548283") |
| 1102 } | 1104 } |
| 1103 | 1105 |
| 1104 assert_valid_out_dir("_unused") { | 1106 assert_valid_out_dir("_unused") { |
| 1105 actual_sources = [ "$root_build_dir/foo" ] | 1107 actual_sources = [ "$root_build_dir/foo" ] |
| 1106 } | 1108 } |
| OLD | NEW |