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

Side by Side Diff: BUILD.gn

Issue 2692273008: Hacky slashy (Closed)
Patch Set: . Created 3 years, 10 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
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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
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" ]
328 } 333 }
329 334
330 deps += root_extra_deps 335 deps += root_extra_deps
331 336
332 if (enable_extensions) { 337 if (enable_extensions) {
333 deps += [ "//extensions/shell:app_shell_unittests" ] 338 deps += [ "//extensions/shell:app_shell_unittests" ]
334 } 339 }
335 340
336 if (enable_media_router) { 341 if (enable_media_router) {
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 "//google_apis:google_apis_unittests", 520 "//google_apis:google_apis_unittests",
516 ] 521 ]
517 } 522 }
518 523
519 if ((is_win || is_mac || is_linux) && 524 if ((is_win || is_mac || is_linux) &&
520 (target_cpu == "x86" || target_cpu == "x64")) { 525 (target_cpu == "x86" || target_cpu == "x64")) {
521 deps += [ "//third_party/swiftshader" ] 526 deps += [ "//third_party/swiftshader" ]
522 } 527 }
523 528
524 # TODO(GYP): Figure out which of these should (and can) build 529 # TODO(GYP): Figure out which of these should (and can) build
525 # for chromeos/ios. 530 # for chromeos/ios/fuchsia.
526 if (!is_chromeos && !is_ios) { 531 if (!is_chromeos && !is_ios && !is_fuchsia) {
527 deps += [ 532 deps += [
528 "//base:build_utf8_validator_tables", 533 "//base:build_utf8_validator_tables",
529 "//base:check_example", 534 "//base:check_example",
530 "//cc:cc_perftests", 535 "//cc:cc_perftests",
531 "//cc/blink:cc_blink_unittests", 536 "//cc/blink:cc_blink_unittests",
532 "//components:components_perftests", 537 "//components:components_perftests",
533 "//components/sync:run_sync_testserver", 538 "//components/sync:run_sync_testserver",
534 "//device:device_unittests", 539 "//device:device_unittests",
535 "//gin:gin_shell", 540 "//gin:gin_shell",
536 "//gin:gin_unittests", 541 "//gin:gin_unittests",
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 ] 683 ]
679 deps -= [ 684 deps -= [
680 "//crypto:crypto_unittests", # TODO(GYP) 685 "//crypto:crypto_unittests", # TODO(GYP)
681 "//net:net_unittests", # TODO(GYP) 686 "//net:net_unittests", # TODO(GYP)
682 ] 687 ]
683 688
684 if (!(is_component_build && is_debug && target_cpu == "x86")) { 689 if (!(is_component_build && is_debug && target_cpu == "x86")) {
685 deps += 690 deps +=
686 [ "//chrome/installer/mini_installer:next_version_mini_installer" ] 691 [ "//chrome/installer/mini_installer:next_version_mini_installer" ]
687 } 692 }
688 } else if (!is_android && !is_ios) { 693 } else if (!is_android && !is_ios && !is_fuchsia) {
689 deps += [ "//breakpad:symupload($host_toolchain)" ] 694 deps += [ "//breakpad:symupload($host_toolchain)" ]
690 } 695 }
691 696
692 if (is_chromecast) { 697 if (is_chromecast) {
693 deps += [ "//chromecast:cast_shell" ] 698 deps += [ "//chromecast:cast_shell" ]
694 } 699 }
695 700
696 if (is_mac || is_win) { 701 if (is_mac || is_win) {
697 deps += [ 702 deps += [
698 "//third_party/crashpad/crashpad/handler:crashpad_handler", 703 "//third_party/crashpad/crashpad/handler:crashpad_handler",
699 "//third_party/crashpad/crashpad/tools:crashpad_database_util", 704 "//third_party/crashpad/crashpad/tools:crashpad_database_util",
700 ] 705 ]
701 } 706 }
702 707
703 if (use_openh264) { 708 if (use_openh264) {
704 deps += [ 709 deps += [
705 "//third_party/openh264:common", 710 "//third_party/openh264:common",
706 "//third_party/openh264:encoder", 711 "//third_party/openh264:encoder",
707 "//third_party/openh264:processing", 712 "//third_party/openh264:processing",
708 ] 713 ]
709 } 714 }
710 } 715 }
711 716
712 group("gn_only") { 717 group("gn_only") {
713 testonly = true 718 testonly = true
714 719
715 deps = [] 720 deps = []
716 721
717 if (!is_ios) { 722 if (!is_ios && !is_fuchsia) {
718 deps += [ 723 deps += [
719 "//media/mojo:media_mojo_unittests", 724 "//media/mojo:media_mojo_unittests",
720 "//services:service_unittests", 725 "//services:service_unittests",
721 ] 726 ]
722 } 727 }
723 728
724 if (!is_android && !is_ios) { 729 if (!is_android && !is_ios && !is_fuchsia) {
725 deps += [ "//content/browser/bluetooth/tools:bluetooth_metrics_hash" ] 730 deps += [ "//content/browser/bluetooth/tools:bluetooth_metrics_hash" ]
726 } 731 }
727 732
728 if (!is_android && !is_ios && !is_chromeos) { 733 if (!is_android && !is_ios && !is_chromeos && !is_fuchsia) {
729 deps += [ "//components/proximity_auth:proximity_auth_unittests" ] 734 deps += [ "//components/proximity_auth:proximity_auth_unittests" ]
730 } 735 }
731 736
732 if (is_win || is_linux) { 737 if (is_win || is_linux) {
733 deps += [ 738 deps += [
734 "//mash:all", 739 "//mash:all",
735 "//media/mojo/services:media_service_unittests", 740 "//media/mojo/services:media_service_unittests",
736 "//mojo", 741 "//mojo",
737 "//services/navigation", 742 "//services/navigation",
738 "//services/preferences:tests", 743 "//services/preferences:tests",
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
871 } 876 }
872 } 877 }
873 878
874 group("gn_visibility") { 879 group("gn_visibility") {
875 deps = [ 880 deps = [
876 "//build/config/sanitizers:options_sources", 881 "//build/config/sanitizers:options_sources",
877 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility? 882 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility?
878 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility? 883 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility?
879 ] 884 ]
880 885
881 if (!is_ios) { 886 if (!is_ios && !is_fuchsia) {
882 deps += [ 887 deps += [
883 "//v8:postmortem-metadata", 888 "//v8:postmortem-metadata",
884 "//v8:v8_snapshot", 889 "//v8:v8_snapshot",
885 ] 890 ]
886 } 891 }
887 } 892 }
888 893
889 if (!is_ios) { 894 if (!is_ios && !is_fuchsia) {
890 # This group includes all of the targets needed to build and test Blink, 895 # This group includes all of the targets needed to build and test Blink,
891 # including running the layout tests (see below). 896 # including running the layout tests (see below).
892 group("blink_tests") { 897 group("blink_tests") {
893 testonly = true 898 testonly = true
894 899
895 deps = [ 900 deps = [
896 ":webkit_layout_tests", 901 ":webkit_layout_tests",
897 "//third_party/WebKit/public:all_blink", 902 "//third_party/WebKit/public:all_blink",
898 ] 903 ]
899 } 904 }
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
955 } 960 }
956 } 961 }
957 962
958 # Add a dummy target for compatibility w/ GYP 963 # Add a dummy target for compatibility w/ GYP
959 group("chromium_swarm_tests") { 964 group("chromium_swarm_tests") {
960 } 965 }
961 966
962 group("chromium_builder_perf") { 967 group("chromium_builder_perf") {
963 testonly = true 968 testonly = true
964 969
965 if (!is_ios && !is_android && !is_chromecast) { 970 if (!is_ios && !is_android && !is_chromecast && !is_fuchsia) {
966 data_deps = [ 971 data_deps = [
967 "//cc:cc_perftests", 972 "//cc:cc_perftests",
968 "//chrome/test:load_library_perf_tests", 973 "//chrome/test:load_library_perf_tests",
969 "//chrome/test:telemetry_perf_tests", 974 "//chrome/test:telemetry_perf_tests",
970 "//components/tracing:tracing_perftests", 975 "//components/tracing:tracing_perftests",
971 "//gpu:gpu_perftests", 976 "//gpu:gpu_perftests",
972 "//media:media_perftests", 977 "//media:media_perftests",
973 "//tools/perf/chrome_telemetry_build:telemetry_chrome_test", 978 "//tools/perf/chrome_telemetry_build:telemetry_chrome_test",
974 ] 979 ]
975 980
(...skipping 15 matching lines...) Expand all
991 data_deps += [ 996 data_deps += [
992 "//chrome/installer/mini_installer:mini_installer", 997 "//chrome/installer/mini_installer:mini_installer",
993 "//chrome/test:angle_perftests", 998 "//chrome/test:angle_perftests",
994 ] 999 ]
995 } else { 1000 } else {
996 data_deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ] 1001 data_deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
997 } 1002 }
998 } 1003 }
999 } 1004 }
1000 1005
1001 if (!is_ios && !is_android && !is_chromecast) { 1006 if (!is_ios && !is_android && !is_chromecast && !is_fuchsia) {
1002 group("chromium_builder_asan") { 1007 group("chromium_builder_asan") {
1003 testonly = true 1008 testonly = true
1004 1009
1005 deps = [ 1010 deps = [
1006 "//chrome:chrome", 1011 "//chrome:chrome",
1007 "//content/shell:content_shell", 1012 "//content/shell:content_shell",
1008 "//v8:d8", 1013 "//v8:d8",
1009 ] 1014 ]
1010 if (!is_win) { 1015 if (!is_win) {
1011 deps += [ 1016 deps += [
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
1077 assert(target_name != "") # Mark as used. 1082 assert(target_name != "") # Mark as used.
1078 sources = invoker.actual_sources 1083 sources = invoker.actual_sources
1079 assert( 1084 assert(
1080 sources == invoker.actual_sources, 1085 sources == invoker.actual_sources,
1081 "Do not use a platform name in your output directory (found \"$root_build_ dir\"). http://crbug.com/548283") 1086 "Do not use a platform name in your output directory (found \"$root_build_ dir\"). http://crbug.com/548283")
1082 } 1087 }
1083 1088
1084 assert_valid_out_dir("_unused") { 1089 assert_valid_out_dir("_unused") {
1085 actual_sources = [ "$root_build_dir/foo" ] 1090 actual_sources = [ "$root_build_dir/foo" ]
1086 } 1091 }
OLDNEW
« no previous file with comments | « .gitignore ('k') | PRESUBMIT.py » ('j') | base/process/process_handle_fuchsia.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698