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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 # are scripts run on the bots that enforce this. Once the GYP migration is | 62 # are scripts run on the bots that enforce this. Once the GYP migration is |
63 # over, we can collapse all of these targets as desired. | 63 # over, we can collapse all of these targets as desired. |
64 | 64 |
65 group("gn_all") { | 65 group("gn_all") { |
66 testonly = true | 66 testonly = true |
67 | 67 |
68 deps = [ | 68 deps = [ |
69 ":gn_visibility", | 69 ":gn_visibility", |
70 "//base:base_unittests", | 70 "//base:base_unittests", |
71 "//chrome/installer", | 71 "//chrome/installer", |
72 "//components:components_unittests", | |
73 "//net:net_unittests", | 72 "//net:net_unittests", |
74 "//skia:skia_unittests", | |
75 "//sql:sql_unittests", | 73 "//sql:sql_unittests", |
76 "//tools/ipc_fuzzer:ipc_fuzzer_all", | 74 "//tools/ipc_fuzzer:ipc_fuzzer_all", |
77 "//tools/metrics:metrics_metadata", | |
78 "//ui/base:ui_base_unittests", | |
79 "//ui/gfx:gfx_unittests", | |
80 "//url:url_unittests", | 75 "//url:url_unittests", |
81 ] | 76 ] |
82 | 77 |
83 if (!is_android && !is_chromecast) { | 78 if (!is_android && !is_chromecast) { |
84 deps += [ | 79 deps += [ |
85 "//crypto:crypto_unittests", | 80 "//crypto:crypto_unittests", |
86 "//google_apis/gcm:gcm_unit_tests", | 81 "//google_apis/gcm:gcm_unit_tests", |
87 ] | 82 ] |
88 } | 83 } |
89 | 84 |
90 if (!is_ios && !is_android && !is_chromecast) { | 85 if (!is_fuchsia) { |
| 86 deps += [ |
| 87 "//components:components_unittests", |
| 88 "//skia:skia_unittests", |
| 89 "//tools/metrics:metrics_metadata", |
| 90 "//ui/base:ui_base_unittests", |
| 91 "//ui/gfx:gfx_unittests", |
| 92 ] |
| 93 } |
| 94 |
| 95 if (!is_ios && !is_android && !is_chromecast && !is_fuchsia) { |
91 deps += [ | 96 deps += [ |
92 "//chrome", | 97 "//chrome", |
93 "//chrome/test:browser_tests", | 98 "//chrome/test:browser_tests", |
94 "//chrome/test:interactive_ui_tests", | 99 "//chrome/test:interactive_ui_tests", |
95 "//chrome/test:sync_integration_tests", | 100 "//chrome/test:sync_integration_tests", |
96 "//chrome/test/chromedriver:chromedriver_unittests", | 101 "//chrome/test/chromedriver:chromedriver_unittests", |
97 "//components/sync/tools:sync_client", | 102 "//components/sync/tools:sync_client", |
98 "//components/sync/tools:sync_listen_notifications", | 103 "//components/sync/tools:sync_listen_notifications", |
99 "//extensions:extensions_browsertests", | 104 "//extensions:extensions_browsertests", |
100 "//extensions:extensions_unittests", | 105 "//extensions:extensions_unittests", |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 "//tools/battor_agent:battor_agent_unittests", | 144 "//tools/battor_agent:battor_agent_unittests", |
140 "//tools/gn", | 145 "//tools/gn", |
141 "//tools/gn:gn_unittests", | 146 "//tools/gn:gn_unittests", |
142 "//tools/perf/clear_system_cache", | 147 "//tools/perf/clear_system_cache", |
143 "//tools/traffic_annotation/auditor:traffic_annotation_auditor", | 148 "//tools/traffic_annotation/auditor:traffic_annotation_auditor", |
144 "//ui/accessibility:accessibility_unittests", | 149 "//ui/accessibility:accessibility_unittests", |
145 "//ui/accessibility/extensions", | 150 "//ui/accessibility/extensions", |
146 ] | 151 ] |
147 } | 152 } |
148 | 153 |
149 if (!is_ios) { | 154 if (!is_ios && !is_fuchsia) { |
150 deps += [ | 155 deps += [ |
151 "//cc:cc_unittests", | 156 "//cc:cc_unittests", |
152 "//chrome/test:telemetry_perf_unittests", | 157 "//chrome/test:telemetry_perf_unittests", |
153 "//chrome/test:unit_tests", | 158 "//chrome/test:unit_tests", |
154 "//components:components_browsertests", | 159 "//components:components_browsertests", |
155 "//components/policy:policy_templates", | 160 "//components/policy:policy_templates", |
156 "//content/shell:content_shell", | 161 "//content/shell:content_shell", |
157 "//content/test:content_browsertests", | 162 "//content/test:content_browsertests", |
158 "//content/test:content_perftests", | 163 "//content/test:content_perftests", |
159 "//content/test:content_unittests", | 164 "//content/test:content_unittests", |
(...skipping 26 matching lines...) Expand all Loading... |
186 "//third_party/smhasher:pmurhash", | 191 "//third_party/smhasher:pmurhash", |
187 "//tools/imagediff($host_toolchain)", | 192 "//tools/imagediff($host_toolchain)", |
188 "//ui/display:display_unittests", | 193 "//ui/display:display_unittests", |
189 "//ui/events:events_unittests", | 194 "//ui/events:events_unittests", |
190 "//ui/gl:gl_unittests", | 195 "//ui/gl:gl_unittests", |
191 "//ui/latency:latency_unittests", | 196 "//ui/latency:latency_unittests", |
192 "//ui/touch_selection:ui_touch_selection_unittests", | 197 "//ui/touch_selection:ui_touch_selection_unittests", |
193 "//url/ipc:url_ipc_unittests", | 198 "//url/ipc:url_ipc_unittests", |
194 "//v8:gn_all", | 199 "//v8:gn_all", |
195 ] | 200 ] |
196 } else { | 201 } else if (is_ios) { |
197 deps += [ "//ios:all" ] | 202 deps += [ "//ios:all" ] |
198 } | 203 } |
199 | 204 |
200 deps += root_extra_deps | 205 deps += root_extra_deps |
201 | 206 |
202 if (enable_extensions) { | 207 if (enable_extensions) { |
203 deps += [ "//extensions/shell:app_shell_unittests" ] | 208 deps += [ "//extensions/shell:app_shell_unittests" ] |
204 } | 209 } |
205 | 210 |
206 if (enable_remoting) { | 211 if (enable_remoting) { |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 ] | 395 ] |
391 } | 396 } |
392 | 397 |
393 if ((is_win || is_mac || is_linux) && | 398 if ((is_win || is_mac || is_linux) && |
394 (target_cpu == "x86" || target_cpu == "x64")) { | 399 (target_cpu == "x86" || target_cpu == "x64")) { |
395 deps += [ "//third_party/swiftshader" ] | 400 deps += [ "//third_party/swiftshader" ] |
396 } | 401 } |
397 | 402 |
398 # TODO(GYP): Figure out which of these should (and can) build | 403 # TODO(GYP): Figure out which of these should (and can) build |
399 # for chromeos/ios. | 404 # for chromeos/ios. |
400 if (!is_chromeos && !is_ios) { | 405 if (!is_chromeos && !is_ios && !is_fuchsia) { |
401 deps += [ | 406 deps += [ |
402 "//base:build_utf8_validator_tables", | 407 "//base:build_utf8_validator_tables", |
403 "//base:check_example", | 408 "//base:check_example", |
404 "//cc:cc_perftests", | 409 "//cc:cc_perftests", |
405 "//cc/blink:cc_blink_unittests", | 410 "//cc/blink:cc_blink_unittests", |
406 "//components:components_perftests", | 411 "//components:components_perftests", |
407 "//components/sync:run_sync_testserver", | 412 "//components/sync:run_sync_testserver", |
408 "//device:device_unittests", | 413 "//device:device_unittests", |
409 "//gin:gin_shell", | 414 "//gin:gin_shell", |
410 "//gin:gin_unittests", | 415 "//gin:gin_unittests", |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
567 } | 572 } |
568 | 573 |
569 if (use_openh264) { | 574 if (use_openh264) { |
570 deps += [ | 575 deps += [ |
571 "//third_party/openh264:common", | 576 "//third_party/openh264:common", |
572 "//third_party/openh264:encoder", | 577 "//third_party/openh264:encoder", |
573 "//third_party/openh264:processing", | 578 "//third_party/openh264:processing", |
574 ] | 579 ] |
575 } | 580 } |
576 | 581 |
577 if (!is_android && !is_ios) { | 582 if (!is_android && !is_ios && !is_fuchsia) { |
578 deps += [ "//content/browser/bluetooth/tools:bluetooth_metrics_hash" ] | 583 deps += [ "//content/browser/bluetooth/tools:bluetooth_metrics_hash" ] |
579 } | 584 } |
580 | 585 |
581 if (!is_android && !is_ios && !is_chromeos) { | 586 if (!is_android && !is_ios && !is_chromeos && !is_fuchsia) { |
582 deps += [ "//components/proximity_auth:proximity_auth_unittests" ] | 587 deps += [ "//components/proximity_auth:proximity_auth_unittests" ] |
583 } | 588 } |
584 | 589 |
585 if (is_win || is_linux) { | 590 if (is_win || is_linux) { |
586 deps += [ | 591 deps += [ |
587 "//mash:all", | 592 "//mash:all", |
588 "//media/mojo/services:media_service_unittests", | 593 "//media/mojo/services:media_service_unittests", |
589 "//mojo", | 594 "//mojo", |
590 "//services/navigation", | 595 "//services/navigation", |
591 "//services/ui/demo", | 596 "//services/ui/demo", |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
805 ] | 810 ] |
806 | 811 |
807 if (!is_ios) { | 812 if (!is_ios) { |
808 deps += [ | 813 deps += [ |
809 "//v8:postmortem-metadata", | 814 "//v8:postmortem-metadata", |
810 "//v8:v8_snapshot", | 815 "//v8:v8_snapshot", |
811 ] | 816 ] |
812 } | 817 } |
813 } | 818 } |
814 | 819 |
815 if (!is_ios) { | 820 if (!is_ios && !is_fuchsia) { |
816 # This group includes all of the targets needed to build and test Blink, | 821 # This group includes all of the targets needed to build and test Blink, |
817 # including running the layout tests (see below). | 822 # including running the layout tests (see below). |
818 group("blink_tests") { | 823 group("blink_tests") { |
819 testonly = true | 824 testonly = true |
820 | 825 |
821 deps = [ | 826 deps = [ |
822 ":webkit_layout_tests", | 827 ":webkit_layout_tests", |
823 "//third_party/WebKit/public:all_blink", | 828 "//third_party/WebKit/public:all_blink", |
824 ] | 829 ] |
825 } | 830 } |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
935 } | 940 } |
936 } | 941 } |
937 | 942 |
938 # Add a dummy target for compatibility w/ GYP | 943 # Add a dummy target for compatibility w/ GYP |
939 group("chromium_swarm_tests") { | 944 group("chromium_swarm_tests") { |
940 } | 945 } |
941 | 946 |
942 group("chromium_builder_perf") { | 947 group("chromium_builder_perf") { |
943 testonly = true | 948 testonly = true |
944 | 949 |
945 if (!is_ios && !is_android && !is_chromecast) { | 950 if (!is_ios && !is_android && !is_chromecast && !is_fuchsia) { |
946 data_deps = [ | 951 data_deps = [ |
947 "//cc:cc_perftests", | 952 "//cc:cc_perftests", |
948 "//chrome/test:load_library_perf_tests", | 953 "//chrome/test:load_library_perf_tests", |
949 "//chrome/test:telemetry_perf_tests", | 954 "//chrome/test:telemetry_perf_tests", |
950 "//components/tracing:tracing_perftests", | 955 "//components/tracing:tracing_perftests", |
951 "//gpu:gpu_perftests", | 956 "//gpu:gpu_perftests", |
952 "//media:media_perftests", | 957 "//media:media_perftests", |
953 "//tools/perf/chrome_telemetry_build:telemetry_chrome_test", | 958 "//tools/perf/chrome_telemetry_build:telemetry_chrome_test", |
954 ] | 959 ] |
955 | 960 |
(...skipping 19 matching lines...) Expand all Loading... |
975 data_deps += [ | 980 data_deps += [ |
976 "//chrome/installer/mini_installer:mini_installer", | 981 "//chrome/installer/mini_installer:mini_installer", |
977 "//chrome/test:angle_perftests", | 982 "//chrome/test:angle_perftests", |
978 ] | 983 ] |
979 } else { | 984 } else { |
980 data_deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ] | 985 data_deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ] |
981 } | 986 } |
982 } | 987 } |
983 } | 988 } |
984 | 989 |
985 if (!is_ios && !is_android && !is_chromecast) { | 990 if (!is_ios && !is_android && !is_chromecast && !is_fuchsia) { |
986 group("chromium_builder_asan") { | 991 group("chromium_builder_asan") { |
987 testonly = true | 992 testonly = true |
988 | 993 |
989 deps = [ | 994 deps = [ |
990 "//chrome:chrome", | 995 "//chrome:chrome", |
991 "//content/shell:content_shell", | 996 "//content/shell:content_shell", |
992 "//v8:d8", | 997 "//v8:d8", |
993 ] | 998 ] |
994 if (!is_win) { | 999 if (!is_win) { |
995 deps += [ | 1000 deps += [ |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1060 assert(target_name != "") # Mark as used. | 1065 assert(target_name != "") # Mark as used. |
1061 sources = invoker.actual_sources | 1066 sources = invoker.actual_sources |
1062 assert( | 1067 assert( |
1063 sources == invoker.actual_sources, | 1068 sources == invoker.actual_sources, |
1064 "Do not use a platform name in your output directory (found \"$root_build_
dir\"). http://crbug.com/548283") | 1069 "Do not use a platform name in your output directory (found \"$root_build_
dir\"). http://crbug.com/548283") |
1065 } | 1070 } |
1066 | 1071 |
1067 assert_valid_out_dir("_unused") { | 1072 assert_valid_out_dir("_unused") { |
1068 actual_sources = [ "$root_build_dir/foo" ] | 1073 actual_sources = [ "$root_build_dir/foo" ] |
1069 } | 1074 } |
OLD | NEW |