| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 72 |
| 73 group("gn_all") { | 73 group("gn_all") { |
| 74 testonly = true | 74 testonly = true |
| 75 | 75 |
| 76 deps = [ | 76 deps = [ |
| 77 ":both_gn_and_gyp", | 77 ":both_gn_and_gyp", |
| 78 ":gn_only", | 78 ":gn_only", |
| 79 ":gn_visibility", | 79 ":gn_visibility", |
| 80 ] | 80 ] |
| 81 | 81 |
| 82 if (!is_ios) { | 82 if (!is_ios && !is_fuchsia) { |
| 83 deps += [ "//v8:gn_all" ] | 83 deps += [ "//v8:gn_all" ] |
| 84 } | 84 } |
| 85 } | 85 } |
| 86 | 86 |
| 87 # TODO(GYP_GONE): This target exists for compatibility with GYP, specifically | 87 # TODO(GYP_GONE): This target exists for compatibility with GYP, specifically |
| 88 # for the iOS bots and the official builders. | 88 # for the iOS bots and the official builders. |
| 89 group("All") { | 89 group("All") { |
| 90 testonly = true | 90 testonly = true |
| 91 | 91 |
| 92 deps = [ | 92 deps = [ |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 } | 196 } |
| 197 | 197 |
| 198 # The "both_gn_and_gyp" target should reflect every target that is built | 198 # The "both_gn_and_gyp" target should reflect every target that is built |
| 199 # in both the GN and GYP builds, and ideally it should match the | 199 # in both the GN and GYP builds, and ideally it should match the |
| 200 # "both_gn_and_gyp" target in build/gn_migration.gypi line-for-line. | 200 # "both_gn_and_gyp" target in build/gn_migration.gypi line-for-line. |
| 201 group("both_gn_and_gyp") { | 201 group("both_gn_and_gyp") { |
| 202 testonly = true | 202 testonly = true |
| 203 deps = [ | 203 deps = [ |
| 204 "//base:base_unittests", | 204 "//base:base_unittests", |
| 205 "//chrome/installer", | 205 "//chrome/installer", |
| 206 "//components:components_unittests", | |
| 207 "//net:net_unittests", | 206 "//net:net_unittests", |
| 208 "//skia:skia_unittests", | |
| 209 "//sql:sql_unittests", | 207 "//sql:sql_unittests", |
| 210 "//tools/ipc_fuzzer:ipc_fuzzer_all", | 208 "//tools/ipc_fuzzer:ipc_fuzzer_all", |
| 211 "//ui/base:ui_base_unittests", | |
| 212 "//ui/gfx:gfx_unittests", | |
| 213 "//url:url_unittests", | 209 "//url:url_unittests", |
| 214 ] | 210 ] |
| 215 | 211 |
| 216 if (!is_android && !is_chromecast) { | 212 if (!is_fuchsia) { |
| 213 deps += [ |
| 214 "//components:components_unittests", |
| 215 "//skia:skia_unittests", |
| 216 "//ui/base:ui_base_unittests", |
| 217 "//ui/gfx:gfx_unittests", |
| 218 ] |
| 219 } |
| 220 |
| 221 if (!is_android && !is_chromecast && !is_fuchsia) { |
| 217 deps += [ | 222 deps += [ |
| 218 "//crypto:crypto_unittests", | 223 "//crypto:crypto_unittests", |
| 219 "//google_apis/gcm:gcm_unit_tests", | 224 "//google_apis/gcm:gcm_unit_tests", |
| 220 ] | 225 ] |
| 221 } | 226 } |
| 222 | 227 |
| 223 if (!is_ios && !is_android && !is_chromecast) { | 228 if (!is_ios && !is_android && !is_chromecast && !is_fuchsia) { |
| 224 deps += [ | 229 deps += [ |
| 225 "//chrome", | 230 "//chrome", |
| 226 "//chrome/test:browser_tests", | 231 "//chrome/test:browser_tests", |
| 227 "//chrome/test:interactive_ui_tests", | 232 "//chrome/test:interactive_ui_tests", |
| 228 "//chrome/test:sync_integration_tests", | 233 "//chrome/test:sync_integration_tests", |
| 229 "//chrome/test/chromedriver:chromedriver_unittests", | 234 "//chrome/test/chromedriver:chromedriver_unittests", |
| 230 "//components/sync/tools:sync_client", | 235 "//components/sync/tools:sync_client", |
| 231 "//components/sync/tools:sync_listen_notifications", | 236 "//components/sync/tools:sync_listen_notifications", |
| 232 "//extensions:extensions_browsertests", | 237 "//extensions:extensions_browsertests", |
| 233 "//extensions:extensions_unittests", | 238 "//extensions:extensions_unittests", |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 "//third_party/webrtc/tools:frame_analyzer", | 277 "//third_party/webrtc/tools:frame_analyzer", |
| 273 "//tools/battor_agent", | 278 "//tools/battor_agent", |
| 274 "//tools/battor_agent:battor_agent_unittests", | 279 "//tools/battor_agent:battor_agent_unittests", |
| 275 "//tools/gn", | 280 "//tools/gn", |
| 276 "//tools/gn:gn_unittests", | 281 "//tools/gn:gn_unittests", |
| 277 "//tools/perf/clear_system_cache", | 282 "//tools/perf/clear_system_cache", |
| 278 "//ui/accessibility:accessibility_unittests", | 283 "//ui/accessibility:accessibility_unittests", |
| 279 ] | 284 ] |
| 280 } | 285 } |
| 281 | 286 |
| 282 if (!is_ios) { | 287 if (!is_ios && !is_fuchsia) { |
| 283 # TODO(GYP): Figure out which of these should actually build on iOS, | 288 # TODO(GYP): Figure out which of these should actually build on iOS, |
| 284 # and whether there should be other targets that are iOS-only and missing. | 289 # and whether there should be other targets that are iOS-only and missing. |
| 285 deps += [ | 290 deps += [ |
| 286 "//cc:cc_unittests", | 291 "//cc:cc_unittests", |
| 287 "//chrome/test:telemetry_perf_unittests", | 292 "//chrome/test:telemetry_perf_unittests", |
| 288 "//chrome/test:unit_tests", | 293 "//chrome/test:unit_tests", |
| 289 "//components:components_browsertests", | 294 "//components:components_browsertests", |
| 290 "//components/policy:policy_templates", | 295 "//components/policy:policy_templates", |
| 291 "//content/shell:content_shell", | 296 "//content/shell:content_shell", |
| 292 "//content/test:content_browsertests", | 297 "//content/test:content_browsertests", |
| (...skipping 23 matching lines...) Expand all Loading... |
| 316 "//third_party/angle/src/tests:angle_unittests", | 321 "//third_party/angle/src/tests:angle_unittests", |
| 317 "//third_party/catapult/telemetry:bitmaptools($host_toolchain)", | 322 "//third_party/catapult/telemetry:bitmaptools($host_toolchain)", |
| 318 "//third_party/smhasher:pmurhash", | 323 "//third_party/smhasher:pmurhash", |
| 319 "//tools/imagediff($host_toolchain)", | 324 "//tools/imagediff($host_toolchain)", |
| 320 "//ui/display:display_unittests", | 325 "//ui/display:display_unittests", |
| 321 "//ui/events:events_unittests", | 326 "//ui/events:events_unittests", |
| 322 "//ui/gl:gl_unittests", | 327 "//ui/gl:gl_unittests", |
| 323 "//ui/touch_selection:ui_touch_selection_unittests", | 328 "//ui/touch_selection:ui_touch_selection_unittests", |
| 324 "//url/ipc:url_ipc_unittests", | 329 "//url/ipc:url_ipc_unittests", |
| 325 ] | 330 ] |
| 326 } else { | 331 } else if (is_ios) { |
| 327 deps += [ "//ios:all" ] | 332 deps += [ "//ios:all" ] |
| 333 } else if (is_fuchsia) { |
| 334 deps += [ "//fuchsia" ] |
| 328 } | 335 } |
| 329 | 336 |
| 330 deps += root_extra_deps | 337 deps += root_extra_deps |
| 331 | 338 |
| 332 if (enable_extensions) { | 339 if (enable_extensions) { |
| 333 deps += [ "//extensions/shell:app_shell_unittests" ] | 340 deps += [ "//extensions/shell:app_shell_unittests" ] |
| 334 } | 341 } |
| 335 | 342 |
| 336 if (enable_media_router) { | 343 if (enable_media_router) { |
| 337 deps += [ "//chrome/browser/media/router" ] | 344 deps += [ "//chrome/browser/media/router" ] |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 "//google_apis:google_apis_unittests", | 522 "//google_apis:google_apis_unittests", |
| 516 ] | 523 ] |
| 517 } | 524 } |
| 518 | 525 |
| 519 if ((is_win || is_mac || is_linux) && | 526 if ((is_win || is_mac || is_linux) && |
| 520 (target_cpu == "x86" || target_cpu == "x64")) { | 527 (target_cpu == "x86" || target_cpu == "x64")) { |
| 521 deps += [ "//third_party/swiftshader" ] | 528 deps += [ "//third_party/swiftshader" ] |
| 522 } | 529 } |
| 523 | 530 |
| 524 # TODO(GYP): Figure out which of these should (and can) build | 531 # TODO(GYP): Figure out which of these should (and can) build |
| 525 # for chromeos/ios. | 532 # for chromeos/ios/fuchsia. |
| 526 if (!is_chromeos && !is_ios) { | 533 if (!is_chromeos && !is_ios && !is_fuchsia) { |
| 527 deps += [ | 534 deps += [ |
| 528 "//base:build_utf8_validator_tables", | 535 "//base:build_utf8_validator_tables", |
| 529 "//base:check_example", | 536 "//base:check_example", |
| 530 "//cc:cc_perftests", | 537 "//cc:cc_perftests", |
| 531 "//cc/blink:cc_blink_unittests", | 538 "//cc/blink:cc_blink_unittests", |
| 532 "//components:components_perftests", | 539 "//components:components_perftests", |
| 533 "//components/sync:run_sync_testserver", | 540 "//components/sync:run_sync_testserver", |
| 534 "//device:device_unittests", | 541 "//device:device_unittests", |
| 535 "//gin:gin_shell", | 542 "//gin:gin_shell", |
| 536 "//gin:gin_unittests", | 543 "//gin:gin_unittests", |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 678 ] | 685 ] |
| 679 deps -= [ | 686 deps -= [ |
| 680 "//crypto:crypto_unittests", # TODO(GYP) | 687 "//crypto:crypto_unittests", # TODO(GYP) |
| 681 "//net:net_unittests", # TODO(GYP) | 688 "//net:net_unittests", # TODO(GYP) |
| 682 ] | 689 ] |
| 683 | 690 |
| 684 if (!(is_component_build && is_debug && target_cpu == "x86")) { | 691 if (!(is_component_build && is_debug && target_cpu == "x86")) { |
| 685 deps += | 692 deps += |
| 686 [ "//chrome/installer/mini_installer:next_version_mini_installer" ] | 693 [ "//chrome/installer/mini_installer:next_version_mini_installer" ] |
| 687 } | 694 } |
| 688 } else if (!is_android && !is_ios) { | 695 } else if (!is_android && !is_ios && !is_fuchsia) { |
| 689 deps += [ "//breakpad:symupload($host_toolchain)" ] | 696 deps += [ "//breakpad:symupload($host_toolchain)" ] |
| 690 } | 697 } |
| 691 | 698 |
| 692 if (is_chromecast) { | 699 if (is_chromecast) { |
| 693 deps += [ "//chromecast:cast_shell" ] | 700 deps += [ "//chromecast:cast_shell" ] |
| 694 } | 701 } |
| 695 | 702 |
| 696 if (is_mac || is_win) { | 703 if (is_mac || is_win) { |
| 697 deps += [ | 704 deps += [ |
| 698 "//third_party/crashpad/crashpad/handler:crashpad_handler", | 705 "//third_party/crashpad/crashpad/handler:crashpad_handler", |
| 699 "//third_party/crashpad/crashpad/tools:crashpad_database_util", | 706 "//third_party/crashpad/crashpad/tools:crashpad_database_util", |
| 700 ] | 707 ] |
| 701 } | 708 } |
| 702 | 709 |
| 703 if (use_openh264) { | 710 if (use_openh264) { |
| 704 deps += [ | 711 deps += [ |
| 705 "//third_party/openh264:common", | 712 "//third_party/openh264:common", |
| 706 "//third_party/openh264:encoder", | 713 "//third_party/openh264:encoder", |
| 707 "//third_party/openh264:processing", | 714 "//third_party/openh264:processing", |
| 708 ] | 715 ] |
| 709 } | 716 } |
| 710 } | 717 } |
| 711 | 718 |
| 712 group("gn_only") { | 719 group("gn_only") { |
| 713 testonly = true | 720 testonly = true |
| 714 | 721 |
| 715 deps = [] | 722 deps = [] |
| 716 | 723 |
| 717 if (!is_ios) { | 724 if (!is_ios && !is_fuchsia) { |
| 718 deps += [ | 725 deps += [ |
| 719 "//media/mojo:media_mojo_unittests", | 726 "//media/mojo:media_mojo_unittests", |
| 720 "//services:service_unittests", | 727 "//services:service_unittests", |
| 721 ] | 728 ] |
| 722 } | 729 } |
| 723 | 730 |
| 724 if (!is_android && !is_ios) { | 731 if (!is_android && !is_ios && !is_fuchsia) { |
| 725 deps += [ "//content/browser/bluetooth/tools:bluetooth_metrics_hash" ] | 732 deps += [ "//content/browser/bluetooth/tools:bluetooth_metrics_hash" ] |
| 726 } | 733 } |
| 727 | 734 |
| 728 if (!is_android && !is_ios && !is_chromeos) { | 735 if (!is_android && !is_ios && !is_chromeos && !is_fuchsia) { |
| 729 deps += [ "//components/proximity_auth:proximity_auth_unittests" ] | 736 deps += [ "//components/proximity_auth:proximity_auth_unittests" ] |
| 730 } | 737 } |
| 731 | 738 |
| 732 if (is_win || is_linux) { | 739 if (is_win || is_linux) { |
| 733 deps += [ | 740 deps += [ |
| 734 "//mash:all", | 741 "//mash:all", |
| 735 "//media/mojo/services:media_service_unittests", | 742 "//media/mojo/services:media_service_unittests", |
| 736 "//mojo", | 743 "//mojo", |
| 737 "//services/navigation", | 744 "//services/navigation", |
| 738 "//services/preferences:tests", | 745 "//services/preferences:tests", |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 871 } | 878 } |
| 872 } | 879 } |
| 873 | 880 |
| 874 group("gn_visibility") { | 881 group("gn_visibility") { |
| 875 deps = [ | 882 deps = [ |
| 876 "//build/config/sanitizers:options_sources", | 883 "//build/config/sanitizers:options_sources", |
| 877 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility? | 884 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility? |
| 878 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility? | 885 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility? |
| 879 ] | 886 ] |
| 880 | 887 |
| 881 if (!is_ios) { | 888 if (!is_ios && !is_fuchsia) { |
| 882 deps += [ | 889 deps += [ |
| 883 "//v8:postmortem-metadata", | 890 "//v8:postmortem-metadata", |
| 884 "//v8:v8_snapshot", | 891 "//v8:v8_snapshot", |
| 885 ] | 892 ] |
| 886 } | 893 } |
| 887 } | 894 } |
| 888 | 895 |
| 889 if (!is_ios) { | 896 if (!is_ios && !is_fuchsia) { |
| 890 # This group includes all of the targets needed to build and test Blink, | 897 # This group includes all of the targets needed to build and test Blink, |
| 891 # including running the layout tests (see below). | 898 # including running the layout tests (see below). |
| 892 group("blink_tests") { | 899 group("blink_tests") { |
| 893 testonly = true | 900 testonly = true |
| 894 | 901 |
| 895 deps = [ | 902 deps = [ |
| 896 ":webkit_layout_tests", | 903 ":webkit_layout_tests", |
| 897 "//third_party/WebKit/public:all_blink", | 904 "//third_party/WebKit/public:all_blink", |
| 898 ] | 905 ] |
| 899 } | 906 } |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 955 } | 962 } |
| 956 } | 963 } |
| 957 | 964 |
| 958 # Add a dummy target for compatibility w/ GYP | 965 # Add a dummy target for compatibility w/ GYP |
| 959 group("chromium_swarm_tests") { | 966 group("chromium_swarm_tests") { |
| 960 } | 967 } |
| 961 | 968 |
| 962 group("chromium_builder_perf") { | 969 group("chromium_builder_perf") { |
| 963 testonly = true | 970 testonly = true |
| 964 | 971 |
| 965 if (!is_ios && !is_android && !is_chromecast) { | 972 if (!is_ios && !is_android && !is_chromecast && !is_fuchsia) { |
| 966 data_deps = [ | 973 data_deps = [ |
| 967 "//cc:cc_perftests", | 974 "//cc:cc_perftests", |
| 968 "//chrome/test:load_library_perf_tests", | 975 "//chrome/test:load_library_perf_tests", |
| 969 "//chrome/test:telemetry_perf_tests", | 976 "//chrome/test:telemetry_perf_tests", |
| 970 "//components/tracing:tracing_perftests", | 977 "//components/tracing:tracing_perftests", |
| 971 "//gpu:gpu_perftests", | 978 "//gpu:gpu_perftests", |
| 972 "//media:media_perftests", | 979 "//media:media_perftests", |
| 973 "//tools/perf/chrome_telemetry_build:telemetry_chrome_test", | 980 "//tools/perf/chrome_telemetry_build:telemetry_chrome_test", |
| 974 ] | 981 ] |
| 975 | 982 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 991 data_deps += [ | 998 data_deps += [ |
| 992 "//chrome/installer/mini_installer:mini_installer", | 999 "//chrome/installer/mini_installer:mini_installer", |
| 993 "//chrome/test:angle_perftests", | 1000 "//chrome/test:angle_perftests", |
| 994 ] | 1001 ] |
| 995 } else { | 1002 } else { |
| 996 data_deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ] | 1003 data_deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ] |
| 997 } | 1004 } |
| 998 } | 1005 } |
| 999 } | 1006 } |
| 1000 | 1007 |
| 1001 if (!is_ios && !is_android && !is_chromecast) { | 1008 if (!is_ios && !is_android && !is_chromecast && !is_fuchsia) { |
| 1002 group("chromium_builder_asan") { | 1009 group("chromium_builder_asan") { |
| 1003 testonly = true | 1010 testonly = true |
| 1004 | 1011 |
| 1005 deps = [ | 1012 deps = [ |
| 1006 "//chrome:chrome", | 1013 "//chrome:chrome", |
| 1007 "//content/shell:content_shell", | 1014 "//content/shell:content_shell", |
| 1008 "//v8:d8", | 1015 "//v8:d8", |
| 1009 ] | 1016 ] |
| 1010 if (!is_win) { | 1017 if (!is_win) { |
| 1011 deps += [ | 1018 deps += [ |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1077 assert(target_name != "") # Mark as used. | 1084 assert(target_name != "") # Mark as used. |
| 1078 sources = invoker.actual_sources | 1085 sources = invoker.actual_sources |
| 1079 assert( | 1086 assert( |
| 1080 sources == invoker.actual_sources, | 1087 sources == invoker.actual_sources, |
| 1081 "Do not use a platform name in your output directory (found \"$root_build_
dir\"). http://crbug.com/548283") | 1088 "Do not use a platform name in your output directory (found \"$root_build_
dir\"). http://crbug.com/548283") |
| 1082 } | 1089 } |
| 1083 | 1090 |
| 1084 assert_valid_out_dir("_unused") { | 1091 assert_valid_out_dir("_unused") { |
| 1085 actual_sources = [ "$root_build_dir/foo" ] | 1092 actual_sources = [ "$root_build_dir/foo" ] |
| 1086 } | 1093 } |
| OLD | NEW |