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

Side by Side Diff: BUILD.gn

Issue 1546903003: Audit //BUILD.gn to enable more targets on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix service_discovery_sniffer Created 4 years, 12 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 | « no previous file | no next file » | 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 # 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
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
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 # TODO(GYP): Figure out which of these should (and can) build
414 # for chromeos/mac/ios.
415 if (!is_android) {
416 deps += [
417 "//chrome/test:load_library_perf_tests",
418 "//chrome/test:sync_performance_tests",
419 "//chrome/test/chromedriver:chromedriver",
420 "//chrome/test/chromedriver:chromedriver_tests",
421 "//courgette:courgette",
422 "//courgette:courgette_fuzz",
423 "//courgette:courgette_minimal_tool",
424 "//courgette:courgette_unittests",
425 "//media/cast:generate_barcode_video",
426 "//media/cast:generate_timecode_audio",
427 "//net:crash_cache",
428 "//net:crl_set_dump",
429 "//net:dns_fuzz_stub",
430 "//net:gdig",
431 "//net:get_server_time",
432 "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_ in_net
433 "//net:run_testserver",
434 "//net:stress_cache",
435 "//net:tld_cleanup",
436 "//ppapi:pepper_hash_for_uma",
437 "//ppapi:ppapi_perftests",
438 "//third_party/angle/src/tests:angle_unittests",
439 "//third_party/leveldatabase:env_chromium_unittests",
440 "//third_party/libaddressinput:libaddressinput_unittests",
441 ]
442 }
443 if (!is_android && !is_linux) {
438 # TODO(dpranke): Re-enable this once 444 # TODO(dpranke): Re-enable this once
439 # https://chromium-review.googlesource.com/#/c/312298/1 is rolled 445 # https://chromium-review.googlesource.com/#/c/312298/1 is rolled
440 # into chromium. 446 # into chromium.
441 deps += [ "//third_party/angle/src/tests:angle_end2end_tests" ] 447 deps += [ "//third_party/angle/src/tests:angle_end2end_tests" ]
442 } 448 }
443 449
444 if (enable_extensions) { 450 if (enable_extensions) {
445 deps += [ "//extensions/shell:app_shell" ] 451 deps += [ "//extensions/shell:app_shell" ]
446 } 452 }
447 453
(...skipping 23 matching lines...) Expand all
471 477
472 if (use_aura) { 478 if (use_aura) {
473 deps += [ 479 deps += [
474 "//ui/aura:aura_unittests", 480 "//ui/aura:aura_unittests",
475 "//ui/aura:bench", 481 "//ui/aura:bench",
476 "//ui/aura:demo", 482 "//ui/aura:demo",
477 ] 483 ]
478 } 484 }
479 } 485 }
480 486
481 if (is_linux && !is_chromeos) { 487 if (is_android || (is_linux && !is_chromeos)) {
482 deps += [ 488 deps += [
483 # TODO(GYP): Figure out which of these should (and can) build 489 # TODO(GYP): Figure out which of these should (and can) build
484 # under which other conditions. 490 # under which other conditions.
485 "//build/sanitizers:copy_llvm_symbolizer", 491 "//breakpad:dump_syms($host_toolchain)",
486 "//chrome/test:chrome_app_unittests", 492 "//breakpad:microdump_stackwalk($host_toolchain)",
493 "//breakpad:minidump_dump($host_toolchain)",
494 "//breakpad:minidump_stackwalk($host_toolchain)",
487 "//cloud_print:cloud_print_unittests", 495 "//cloud_print:cloud_print_unittests",
488 "//components/network_hints/browser", 496 "//components/network_hints/browser",
489 "//content/public/app:browser", 497 "//content/public/app:browser",
490 "//content/public/app:child", 498 "//content/public/app:child",
491 499
492 # TODO(GYP): Remove this when the gles2 tests work 500 # TODO(GYP): Remove this when the gles2 tests work
493 "//gpu/command_buffer/client:gles2_implementation_no_check", 501 "//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. 502 "//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", 503 "//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", 504 "//testing/gmock:gmock_main",
503 505
504 # TODO(use-new-edk): 506 # TODO(use-new-edk):
505 #"//mojo/edk/test:mojo_public_system_perftests", 507 #"//mojo/edk/test:mojo_public_system_perftests",
506 "//third_party/codesighs:nm2tsv", 508 "//third_party/codesighs:nm2tsv",
507 "//third_party/mojo/src/mojo/edk/test:mojo_public_system_perftests", 509 "//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 ] 510 ]
514 511
515 deps += [ 512 if (!is_android) {
516 "//breakpad:dump_syms($host_toolchain)", 513 deps += [
517 "//breakpad:microdump_stackwalk($host_toolchain)", 514 "//build/sanitizers:copy_llvm_symbolizer",
518 "//breakpad:minidump_dump($host_toolchain)", 515 "//chrome/test:chrome_app_unittests",
519 "//breakpad:minidump_stackwalk($host_toolchain)", 516 "//media/cast:cast_benchmarks",
520 ] 517 "//media/cast:tap_proxy",
518 "//skia:filter_fuzz_stub",
519 "//skia:image_operations_bench",
520 "//sync/tools:sync_client",
521 "//sync/tools:sync_listen_notifications",
522 "//third_party/sqlite:sqlite_shell",
523 "//ui/keyboard:keyboard_unittests",
524 "//ui/message_center:message_center_unittests",
525 "//ui/snapshot:snapshot_unittests",
526 "//ui/views/examples:views_examples_with_content_exe",
527 ]
521 528
522 if (!is_debug && !is_component_build) { 529 if (!is_debug && !is_component_build) {
523 deps += [ "//chrome/tools/service_discovery_sniffer" ] 530 deps += [ "//chrome/tools/service_discovery_sniffer" ]
531 }
524 } 532 }
525 533
526 if (toolkit_views) { 534 if (toolkit_views) {
527 deps += [ "//ui/app_list:app_list_demo" ] 535 deps += [ "//ui/app_list:app_list_demo" ]
528 } 536 }
529 537
530 if (use_x11) { 538 if (use_x11) {
531 if (target_cpu != "arm") { 539 if (target_cpu != "arm") {
532 deps += [ "//gpu/tools/compositor_model_bench" ] 540 deps += [ "//gpu/tools/compositor_model_bench" ]
533 } 541 }
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 603
596 group("gn_only") { 604 group("gn_only") {
597 testonly = true 605 testonly = true
598 606
599 deps = [] 607 deps = []
600 608
601 if (!is_ios) { 609 if (!is_ios) {
602 deps += [ "//mojo/common:mojo_common_perftests" ] 610 deps += [ "//mojo/common:mojo_common_perftests" ]
603 } 611 }
604 612
605 if (!is_ios && !is_chromecast) { 613 if (!is_mac && !is_ios && !is_chromecast) {
606 deps += [ "//mandoline:all" ] 614 deps += [ "//mandoline:all" ]
607 } 615 }
608 616
609 if (!is_android && !is_ios && !is_chromeos) { 617 if (!is_android && !is_ios && !is_chromeos) {
610 deps += [ "//components/proximity_auth:proximity_auth_unittests" ] 618 deps += [ "//components/proximity_auth:proximity_auth_unittests" ]
611 } 619 }
612 620
613 if (is_win || is_linux) { 621 if (is_win || is_linux) {
614 deps += [ "//mash:all" ] 622 deps += [ "//mash:all" ]
615 } 623 }
616 624
617 if (is_linux && !is_chromeos && !is_chromecast) { 625 if (is_linux && !is_chromeos && !is_chromecast) {
618 # TODO(GYP): Figure out if any of these should be in gn_all 626 # TODO(GYP): Figure out if any of these should be in gn_all
619 # and figure out how cross-platform they are 627 # and figure out how cross-platform they are
620 deps += [ 628 deps += [
621 ":gn_mojo_targets", 629 ":gn_mojo_targets",
622 "//blimp:blimp_tests",
623 "//chrome/browser/resources:extension_resource_demo", 630 "//chrome/browser/resources:extension_resource_demo",
624 "//chrome/installer/util:strings", 631 "//chrome/installer/util:strings",
625 "//chrome/test:load_library_perf_tests",
626 "//chrome/tools/convert_dict", 632 "//chrome/tools/convert_dict",
627 "//components/constrained_window:unit_tests", 633 "//components/constrained_window:unit_tests",
628 "//components/enhanced_bookmarks:test_support", 634 "//components/enhanced_bookmarks:test_support",
629 "//components/metrics:serialization", 635 "//components/metrics:serialization",
630 "//components/password_manager/content/renderer:browser_tests", 636 "//components/password_manager/content/renderer:browser_tests",
631 "//components/rappor:unit_tests", 637 "//components/rappor:unit_tests",
632 "//components/sessions:unit_tests", 638 "//components/sessions:unit_tests",
633 "//media/blink:media_blink_unittests", 639 "//media/blink:media_blink_unittests",
634 "//media/cast:udp_proxy", 640 "//media/cast:udp_proxy",
635 "//native_client/src/trusted/debug_stub:gdb_rsp_unittest", 641 "//native_client/src/trusted/debug_stub:gdb_rsp_unittest",
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 "//third_party/opus:test_opus_padding", 683 "//third_party/opus:test_opus_padding",
678 "//third_party/pdfium/third_party:fx_freetype", 684 "//third_party/pdfium/third_party:fx_freetype",
679 "//third_party/webrtc/system_wrappers:field_trial_default", 685 "//third_party/webrtc/system_wrappers:field_trial_default",
680 "//third_party/webrtc/system_wrappers:metrics_default", 686 "//third_party/webrtc/system_wrappers:metrics_default",
681 "//ui/display/types", 687 "//ui/display/types",
682 "//ui/shell_dialogs:shell_dialogs_unittests", 688 "//ui/shell_dialogs:shell_dialogs_unittests",
683 "//ui/views/examples:views_examples_exe", 689 "//ui/views/examples:views_examples_exe",
684 ] 690 ]
685 691
686 if (target_cpu == "x86" || target_cpu == "x64") { 692 if (target_cpu == "x86" || target_cpu == "x64") {
693 if (!is_android) {
694 deps += [ "//chrome/test:load_library_perf_tests" ]
695 }
687 deps += [ 696 deps += [
688 "//native_client/src/trusted/platform_qualify:vcpuid", 697 "//native_client/src/trusted/platform_qualify:vcpuid",
689 "//third_party/libjpeg_turbo:simd_asm", 698 "//third_party/libjpeg_turbo:simd_asm",
690 ] 699 ]
691 } 700 }
692 if (enable_nacl) { 701 if (enable_nacl) {
693 deps += [ "//native_client/src/trusted/service_runtime:sel_ldr" ] 702 deps += [ "//native_client/src/trusted/service_runtime:sel_ldr" ]
694 } 703 }
695 if (use_ozone) { 704 if (use_ozone) {
696 deps += [ "//ui/ozone/demo" ] 705 deps += [ "//ui/ozone/demo" ]
697 } 706 }
698 if (is_android) {
699 deps += [ "//build/android/gyp/test:hello_world" ]
700 }
701 707
702 if (is_linux && current_toolchain == host_toolchain) { 708 if (is_linux && current_toolchain == host_toolchain) {
703 deps += [ "//v8:d8" ] 709 deps += [ "//v8:d8" ]
704 } 710 }
705 } 711 }
706 712
707 if (is_android || is_linux || is_chromeos) { 713 if (is_android) {
708 deps += [ "//blimp" ] 714 deps += [
715 "//build/android/gyp/test:hello_world",
716 "//build/android/incremental_install:bootstrap_java",
717 ]
709 } 718 }
710 719
711 if (is_mac) { 720 if (!is_chromecast && (is_android || is_linux || is_chromeos)) {
712 deps -= [ "//mandoline:all" ] # TODO(GYP) 721 deps += [
722 "//blimp",
723 "//blimp:blimp_tests",
724 ]
713 } 725 }
714 726
715 if (use_libfuzzer || use_drfuzz) { 727 if (use_libfuzzer || use_drfuzz) {
716 # these are needed only for gn to discover build files. 728 # these are needed only for gn to discover build files.
717 deps += [ 729 deps += [
718 "//testing/libfuzzer:libfuzzer_main", 730 "//testing/libfuzzer:libfuzzer_main",
719 "//testing/libfuzzer/fuzzers:string_to_int_fuzzer", 731 "//testing/libfuzzer/fuzzers:string_to_int_fuzzer",
720 "//testing/libfuzzer/tests:libfuzzer_tests", 732 "//testing/libfuzzer/tests:libfuzzer_tests",
721 ] 733 ]
722 } 734 }
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
857 ] 869 ]
858 870
859 if (target_cpu == "x86") { 871 if (target_cpu == "x86") {
860 deps += [ "//chrome/tools/crash_service:crash_service_win64" ] 872 deps += [ "//chrome/tools/crash_service:crash_service_win64" ]
861 } 873 }
862 } else { 874 } else {
863 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ] 875 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
864 } 876 }
865 } 877 }
866 } 878 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698