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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 307 ] | 307 ] |
| 308 } | 308 } |
| 309 | 309 |
| 310 if (!is_chromecast) { | 310 if (!is_chromecast) { |
| 311 deps += [ | 311 deps += [ |
| 312 "//android_webview", | 312 "//android_webview", |
| 313 "//chrome/android:chrome_junit_tests", | 313 "//chrome/android:chrome_junit_tests", |
| 314 "//chrome/android:chrome_public_apk", | 314 "//chrome/android:chrome_public_apk", |
| 315 "//chrome/android:chrome_public_test_apk", | 315 "//chrome/android:chrome_public_test_apk", |
| 316 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shel l_apk", | 316 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shel l_apk", |
| 317 "//content/shell/android:content_shell_test_apk", | |
| 317 "//third_party/custom_tabs_client:custom_tabs_client_example_apk", | 318 "//third_party/custom_tabs_client:custom_tabs_client_example_apk", |
| 318 ] | 319 ] |
| 319 } | 320 } |
| 320 | 321 |
| 321 if (target_cpu != "x64") { | 322 if (target_cpu != "x64") { |
| 322 deps += [ "//third_party/android_platform:android_relocation_packer_unitte sts($host_toolchain)" ] | 323 deps += [ "//third_party/android_platform:android_relocation_packer_unitte sts($host_toolchain)" ] |
| 323 } | 324 } |
| 324 | 325 |
| 325 if (has_chrome_android_internal) { | 326 if (has_chrome_android_internal) { |
| 326 deps += [ "//clank" ] # TODO(GYP) ?? | 327 deps += [ "//clank" ] # TODO(GYP) ?? |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 378 } | 379 } |
| 379 | 380 |
| 380 if (is_ios || is_win || (is_linux && !is_chromeos)) { | 381 if (is_ios || is_win || (is_linux && !is_chromeos)) { |
| 381 deps += [ | 382 deps += [ |
| 382 "//base:base_i18n_perftests", | 383 "//base:base_i18n_perftests", |
| 383 "//base:base_perftests", | 384 "//base:base_perftests", |
| 384 "//google_apis:google_apis_unittests", | 385 "//google_apis:google_apis_unittests", |
| 385 ] | 386 ] |
| 386 } | 387 } |
| 387 | 388 |
| 388 if (is_win || (is_linux && !is_chromeos)) { | 389 if (is_android || is_win || (is_linux && !is_chromeos)) { |
| 389 # TODO(GYP): Figure out which of these should (and can) build | |
| 390 # for android/chromeos/mac/ios. | |
| 391 deps += [ | 390 deps += [ |
| 392 "//base:build_utf8_validator_tables", | 391 "//base:build_utf8_validator_tables", |
| 393 "//base:check_example", | 392 "//base:check_example", |
| 394 "//cc:cc_perftests", | 393 "//cc:cc_perftests", |
| 395 "//cc/blink:cc_blink_unittests", | 394 "//cc/blink:cc_blink_unittests", |
| 396 "//chrome/test:load_library_perf_tests", | |
| 397 "//chrome/test:performance_browser_tests", | |
| 398 "//chrome/test:sync_performance_tests", | |
| 399 "//chrome/test/chromedriver:chromedriver", | |
| 400 "//chrome/test/chromedriver:chromedriver_tests", | |
| 401 "//components:components_perftests", | 395 "//components:components_perftests", |
| 402 "//content/test:content_gl_benchmark", | 396 "//content/test:content_gl_benchmark", |
| 403 "//content/test:content_gl_tests", | 397 "//content/test:content_gl_tests", |
| 404 "//courgette:courgette", | |
| 405 "//courgette:courgette_fuzz", | |
| 406 "//courgette:courgette_minimal_tool", | |
| 407 "//courgette:courgette_unittests", | |
| 408 "//device:device_unittests", | 398 "//device:device_unittests", |
| 409 "//gin:gin_shell", | 399 "//gin:gin_shell", |
| 410 "//gin:gin_unittests", | 400 "//gin:gin_unittests", |
| 411 "//google_apis/gcm:mcs_probe", | 401 "//google_apis/gcm:mcs_probe", |
| 412 "//gpu:gl_tests", | 402 "//gpu:gl_tests", |
| 413 "//gpu:gpu_perftests", | 403 "//gpu:gpu_perftests", |
| 414 "//ipc:ipc_perftests", | 404 "//ipc:ipc_perftests", |
| 415 "//media:media_perftests", | 405 "//media:media_perftests", |
| 416 "//net:crash_cache", | |
| 417 "//net:crl_set_dump", | |
| 418 "//net:dns_fuzz_stub", | |
| 419 "//net:dump_cache", | 406 "//net:dump_cache", |
| 420 "//net:gdig", | |
| 421 "//net:get_server_time", | |
| 422 "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_in _net | |
| 423 "//net:run_testserver", | |
| 424 "//net:stress_cache", | |
| 425 "//net:tld_cleanup", | |
| 426 "//ppapi:pepper_hash_for_uma", | |
| 427 "//ppapi:ppapi_perftests", | |
| 428 "//sync:run_sync_testserver", | 407 "//sync:run_sync_testserver", |
| 429 "//third_party/angle/src/tests:angle_unittests", | |
| 430 "//third_party/codesighs:maptsvdifftool", | 408 "//third_party/codesighs:maptsvdifftool", |
| 431 "//third_party/leveldatabase:env_chromium_unittests", | |
| 432 "//third_party/libaddressinput:libaddressinput_unittests", | |
| 433 "//third_party/libphonenumber:libphonenumber_unittests", | 409 "//third_party/libphonenumber:libphonenumber_unittests", |
| 434 "//ui/compositor:compositor_unittests", | 410 "//ui/compositor:compositor_unittests", |
| 435 ] | 411 ] |
| 436 | 412 |
| 437 if (!is_linux) { | 413 if (!is_android) { |
| 414 deps += [ | |
| 415 "//chrome/test:load_library_perf_tests", | |
| 416 "//chrome/test:sync_performance_tests", | |
| 417 "//chrome/test/chromedriver:chromedriver", | |
| 418 "//chrome/test/chromedriver:chromedriver_tests", | |
| 419 "//courgette:courgette", | |
| 420 "//courgette:courgette_fuzz", | |
| 421 "//courgette:courgette_minimal_tool", | |
| 422 "//courgette:courgette_unittests", | |
| 423 "//media/cast:generate_barcode_video", | |
| 424 "//media/cast:generate_timecode_audio", | |
| 425 "//net:crash_cache", | |
| 426 "//net:crl_set_dump", | |
| 427 "//net:dns_fuzz_stub", | |
| 428 "//net:gdig", | |
| 429 "//net:get_server_time", | |
| 430 "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_ in_net | |
| 431 "//net:run_testserver", | |
| 432 "//net:stress_cache", | |
| 433 "//net:tld_cleanup", | |
| 434 "//ppapi:pepper_hash_for_uma", | |
| 435 "//ppapi:ppapi_perftests", | |
| 436 "//third_party/angle/src/tests:angle_unittests", | |
| 437 "//third_party/leveldatabase:env_chromium_unittests", | |
| 438 "//third_party/libaddressinput:libaddressinput_unittests", | |
|
Dirk Pranke
2015/12/23 21:26:33
Can you add the TODO back in here to note that we
agrieve
2015/12/28 16:11:40
Done.
| |
| 439 ] | |
| 440 } | |
| 441 if (!is_android && !is_linux) { | |
| 438 # TODO(dpranke): Re-enable this once | 442 # TODO(dpranke): Re-enable this once |
| 439 # https://chromium-review.googlesource.com/#/c/312298/1 is rolled | 443 # https://chromium-review.googlesource.com/#/c/312298/1 is rolled |
| 440 # into chromium. | 444 # into chromium. |
| 441 deps += [ "//third_party/angle/src/tests:angle_end2end_tests" ] | 445 deps += [ "//third_party/angle/src/tests:angle_end2end_tests" ] |
| 442 } | 446 } |
| 443 | 447 |
| 444 if (enable_extensions) { | 448 if (enable_extensions) { |
| 445 deps += [ "//extensions/shell:app_shell" ] | 449 deps += [ "//extensions/shell:app_shell" ] |
| 446 } | 450 } |
| 447 | 451 |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 471 | 475 |
| 472 if (use_aura) { | 476 if (use_aura) { |
| 473 deps += [ | 477 deps += [ |
| 474 "//ui/aura:aura_unittests", | 478 "//ui/aura:aura_unittests", |
| 475 "//ui/aura:bench", | 479 "//ui/aura:bench", |
| 476 "//ui/aura:demo", | 480 "//ui/aura:demo", |
| 477 ] | 481 ] |
| 478 } | 482 } |
| 479 } | 483 } |
| 480 | 484 |
| 481 if (is_linux && !is_chromeos) { | 485 if (is_android || (is_linux && !is_chromeos)) { |
| 482 deps += [ | 486 deps += [ |
| 483 # TODO(GYP): Figure out which of these should (and can) build | 487 # TODO(GYP): Figure out which of these should (and can) build |
| 484 # under which other conditions. | 488 # under which other conditions. |
| 485 "//build/sanitizers:copy_llvm_symbolizer", | 489 "//breakpad:dump_syms($host_toolchain)", |
| 486 "//chrome/test:chrome_app_unittests", | 490 "//breakpad:microdump_stackwalk($host_toolchain)", |
| 491 "//breakpad:minidump_dump($host_toolchain)", | |
| 492 "//breakpad:minidump_stackwalk($host_toolchain)", | |
| 487 "//cloud_print:cloud_print_unittests", | 493 "//cloud_print:cloud_print_unittests", |
| 488 "//components/network_hints/browser", | 494 "//components/network_hints/browser", |
| 489 "//content/public/app:browser", | 495 "//content/public/app:browser", |
| 490 "//content/public/app:child", | 496 "//content/public/app:child", |
| 491 | 497 |
| 492 # TODO(GYP): Remove this when the gles2 tests work | 498 # TODO(GYP): Remove this when the gles2 tests work |
| 493 "//gpu/command_buffer/client:gles2_implementation_no_check", | 499 "//gpu/command_buffer/client:gles2_implementation_no_check", |
| 494 "//gpu/khronos_glcts_support:khronos_glcts_test", # TODO(GYP) crbug.com/4 71903 to make this complete. | 500 "//gpu/khronos_glcts_support:khronos_glcts_test", # TODO(GYP) crbug.com/4 71903 to make this complete. |
| 495 "//media/cast:tap_proxy", | |
| 496 "//media/cast:testing_tools", | |
| 497 "//mojo/application/public/cpp", | 501 "//mojo/application/public/cpp", |
| 498 "//skia:filter_fuzz_stub", | |
| 499 "//skia:image_operations_bench", | |
| 500 "//sync/tools:sync_client", | |
| 501 "//sync/tools:sync_listen_notifications", | |
| 502 "//testing/gmock:gmock_main", | 502 "//testing/gmock:gmock_main", |
| 503 | 503 |
| 504 # TODO(use-new-edk): | 504 # TODO(use-new-edk): |
| 505 #"//mojo/edk/test:mojo_public_system_perftests", | 505 #"//mojo/edk/test:mojo_public_system_perftests", |
| 506 "//third_party/codesighs:nm2tsv", | 506 "//third_party/codesighs:nm2tsv", |
| 507 "//third_party/mojo/src/mojo/edk/test:mojo_public_system_perftests", | 507 "//third_party/mojo/src/mojo/edk/test:mojo_public_system_perftests", |
| 508 "//third_party/sqlite:sqlite_shell", | |
| 509 "//ui/keyboard:keyboard_unittests", | |
| 510 "//ui/message_center:message_center_unittests", | |
| 511 "//ui/snapshot:snapshot_unittests", | |
| 512 "//ui/views/examples:views_examples_with_content_exe", | |
| 513 ] | 508 ] |
| 514 | 509 |
| 515 deps += [ | 510 if (!is_android) { |
| 516 "//breakpad:dump_syms($host_toolchain)", | 511 deps += [ |
| 517 "//breakpad:microdump_stackwalk($host_toolchain)", | 512 "//build/sanitizers:copy_llvm_symbolizer", |
| 518 "//breakpad:minidump_dump($host_toolchain)", | 513 "//chrome/test:chrome_app_unittests", |
| 519 "//breakpad:minidump_stackwalk($host_toolchain)", | 514 "//media/cast:cast_benchmarks", |
| 520 ] | 515 "//media/cast:tap_proxy", |
| 516 "//skia:filter_fuzz_stub", | |
| 517 "//skia:image_operations_bench", | |
| 518 "//sync/tools:sync_client", | |
| 519 "//sync/tools:sync_listen_notifications", | |
| 520 "//third_party/sqlite:sqlite_shell", | |
| 521 "//ui/keyboard:keyboard_unittests", | |
| 522 "//ui/message_center:message_center_unittests", | |
| 523 "//ui/snapshot:snapshot_unittests", | |
| 524 "//ui/views/examples:views_examples_with_content_exe", | |
| 525 ] | |
| 526 } | |
| 521 | 527 |
| 522 if (!is_debug && !is_component_build) { | 528 if (!is_debug && !is_component_build) { |
| 523 deps += [ "//chrome/tools/service_discovery_sniffer" ] | 529 deps += [ "//chrome/tools/service_discovery_sniffer" ] |
| 524 } | 530 } |
| 525 | 531 |
| 526 if (toolkit_views) { | 532 if (toolkit_views) { |
| 527 deps += [ "//ui/app_list:app_list_demo" ] | 533 deps += [ "//ui/app_list:app_list_demo" ] |
| 528 } | 534 } |
| 529 | 535 |
| 530 if (use_x11) { | 536 if (use_x11) { |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 595 | 601 |
| 596 group("gn_only") { | 602 group("gn_only") { |
| 597 testonly = true | 603 testonly = true |
| 598 | 604 |
| 599 deps = [] | 605 deps = [] |
| 600 | 606 |
| 601 if (!is_ios) { | 607 if (!is_ios) { |
| 602 deps += [ "//mojo/common:mojo_common_perftests" ] | 608 deps += [ "//mojo/common:mojo_common_perftests" ] |
| 603 } | 609 } |
| 604 | 610 |
| 605 if (!is_ios && !is_chromecast) { | 611 if (!is_mac && !is_ios && !is_chromecast) { |
| 606 deps += [ "//mandoline:all" ] | 612 deps += [ "//mandoline:all" ] |
| 607 } | 613 } |
| 608 | 614 |
| 609 if (!is_android && !is_ios && !is_chromeos) { | 615 if (!is_android && !is_ios && !is_chromeos) { |
| 610 deps += [ "//components/proximity_auth:proximity_auth_unittests" ] | 616 deps += [ "//components/proximity_auth:proximity_auth_unittests" ] |
| 611 } | 617 } |
| 612 | 618 |
| 613 if (is_win || is_linux) { | 619 if (is_win || is_linux) { |
| 614 deps += [ "//mash:all" ] | 620 deps += [ "//mash:all" ] |
| 615 } | 621 } |
| 616 | 622 |
| 617 if (is_linux && !is_chromeos && !is_chromecast) { | 623 if (is_linux && !is_chromeos && !is_chromecast) { |
| 618 # TODO(GYP): Figure out if any of these should be in gn_all | 624 # TODO(GYP): Figure out if any of these should be in gn_all |
| 619 # and figure out how cross-platform they are | 625 # and figure out how cross-platform they are |
| 620 deps += [ | 626 deps += [ |
| 621 ":gn_mojo_targets", | 627 ":gn_mojo_targets", |
| 622 "//blimp:blimp_tests", | |
| 623 "//chrome/browser/resources:extension_resource_demo", | 628 "//chrome/browser/resources:extension_resource_demo", |
| 624 "//chrome/installer/util:strings", | 629 "//chrome/installer/util:strings", |
| 625 "//chrome/test:load_library_perf_tests", | |
| 626 "//chrome/tools/convert_dict", | 630 "//chrome/tools/convert_dict", |
| 627 "//components/constrained_window:unit_tests", | 631 "//components/constrained_window:unit_tests", |
| 628 "//components/enhanced_bookmarks:test_support", | 632 "//components/enhanced_bookmarks:test_support", |
| 629 "//components/metrics:serialization", | 633 "//components/metrics:serialization", |
| 630 "//components/password_manager/content/renderer:browser_tests", | 634 "//components/password_manager/content/renderer:browser_tests", |
| 631 "//components/rappor:unit_tests", | 635 "//components/rappor:unit_tests", |
| 632 "//components/sessions:unit_tests", | 636 "//components/sessions:unit_tests", |
| 633 "//media/blink:media_blink_unittests", | 637 "//media/blink:media_blink_unittests", |
| 634 "//media/cast:udp_proxy", | 638 "//media/cast:udp_proxy", |
| 635 "//native_client/src/trusted/debug_stub:gdb_rsp_unittest", | 639 "//native_client/src/trusted/debug_stub:gdb_rsp_unittest", |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 677 "//third_party/opus:test_opus_padding", | 681 "//third_party/opus:test_opus_padding", |
| 678 "//third_party/pdfium/third_party:fx_freetype", | 682 "//third_party/pdfium/third_party:fx_freetype", |
| 679 "//third_party/webrtc/system_wrappers:field_trial_default", | 683 "//third_party/webrtc/system_wrappers:field_trial_default", |
| 680 "//third_party/webrtc/system_wrappers:metrics_default", | 684 "//third_party/webrtc/system_wrappers:metrics_default", |
| 681 "//ui/display/types", | 685 "//ui/display/types", |
| 682 "//ui/shell_dialogs:shell_dialogs_unittests", | 686 "//ui/shell_dialogs:shell_dialogs_unittests", |
| 683 "//ui/views/examples:views_examples_exe", | 687 "//ui/views/examples:views_examples_exe", |
| 684 ] | 688 ] |
| 685 | 689 |
| 686 if (target_cpu == "x86" || target_cpu == "x64") { | 690 if (target_cpu == "x86" || target_cpu == "x64") { |
| 691 if (!is_android) { | |
| 692 deps += [ "//chrome/test:load_library_perf_tests" ] | |
| 693 } | |
| 687 deps += [ | 694 deps += [ |
| 688 "//native_client/src/trusted/platform_qualify:vcpuid", | 695 "//native_client/src/trusted/platform_qualify:vcpuid", |
| 689 "//third_party/libjpeg_turbo:simd_asm", | 696 "//third_party/libjpeg_turbo:simd_asm", |
| 690 ] | 697 ] |
| 691 } | 698 } |
| 692 if (enable_nacl) { | 699 if (enable_nacl) { |
| 693 deps += [ "//native_client/src/trusted/service_runtime:sel_ldr" ] | 700 deps += [ "//native_client/src/trusted/service_runtime:sel_ldr" ] |
| 694 } | 701 } |
| 695 if (use_ozone) { | 702 if (use_ozone) { |
| 696 deps += [ "//ui/ozone/demo" ] | 703 deps += [ "//ui/ozone/demo" ] |
| 697 } | 704 } |
| 698 if (is_android) { | |
| 699 deps += [ "//build/android/gyp/test:hello_world" ] | |
| 700 } | |
|
Dirk Pranke
2015/12/23 21:26:33
we don't need this any more?
agrieve
2015/12/28 16:11:40
Put it back.
| |
| 701 | 705 |
| 702 if (is_linux && current_toolchain == host_toolchain) { | 706 if (is_linux && current_toolchain == host_toolchain) { |
| 703 deps += [ "//v8:d8" ] | 707 deps += [ "//v8:d8" ] |
| 704 } | 708 } |
| 705 } | 709 } |
| 706 | 710 |
| 707 if (is_android || is_linux || is_chromeos) { | 711 if (is_android) { |
| 708 deps += [ "//blimp" ] | 712 deps += [ "//build/android/incremental_install:bootstrap_java" ] |
| 709 } | 713 } |
| 710 | 714 |
| 711 if (is_mac) { | 715 if (is_android || is_linux || is_chromeos) { |
| 712 deps -= [ "//mandoline:all" ] # TODO(GYP) | 716 deps += [ |
| 717 "//blimp", | |
| 718 "//blimp:blimp_tests", | |
|
Dirk Pranke
2015/12/23 21:26:33
I think this'll cause you to add blimp_tests if is
agrieve
2015/12/28 16:11:40
hmm, good observation. My thinking here was that /
| |
| 719 ] | |
| 713 } | 720 } |
| 714 | 721 |
| 715 if (use_libfuzzer || use_drfuzz) { | 722 if (use_libfuzzer || use_drfuzz) { |
| 716 # these are needed only for gn to discover build files. | 723 # these are needed only for gn to discover build files. |
| 717 deps += [ | 724 deps += [ |
| 718 "//testing/libfuzzer:libfuzzer_main", | 725 "//testing/libfuzzer:libfuzzer_main", |
| 719 "//testing/libfuzzer/fuzzers:string_to_int_fuzzer", | 726 "//testing/libfuzzer/fuzzers:string_to_int_fuzzer", |
| 720 "//testing/libfuzzer/tests:libfuzzer_tests", | 727 "//testing/libfuzzer/tests:libfuzzer_tests", |
| 721 ] | 728 ] |
| 722 } | 729 } |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 857 ] | 864 ] |
| 858 | 865 |
| 859 if (target_cpu == "x86") { | 866 if (target_cpu == "x86") { |
| 860 deps += [ "//chrome/tools/crash_service:crash_service_win64" ] | 867 deps += [ "//chrome/tools/crash_service:crash_service_win64" ] |
| 861 } | 868 } |
| 862 } else { | 869 } else { |
| 863 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ] | 870 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ] |
| 864 } | 871 } |
| 865 } | 872 } |
| 866 } | 873 } |
| OLD | NEW |