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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
137 ] | 137 ] |
138 } | 138 } |
139 | 139 |
140 if (!is_ios && !is_android && !is_chromecast) { | 140 if (!is_ios && !is_android && !is_chromecast) { |
141 deps += [ | 141 deps += [ |
142 "//chrome", | 142 "//chrome", |
143 "//chrome/test:browser_tests", | 143 "//chrome/test:browser_tests", |
144 "//chrome/test:interactive_ui_tests", | 144 "//chrome/test:interactive_ui_tests", |
145 "//chrome/test:sync_integration_tests", | 145 "//chrome/test:sync_integration_tests", |
146 "//chrome/test/chromedriver:chromedriver_unittests", | 146 "//chrome/test/chromedriver:chromedriver_unittests", |
147 "//extensions:extensions_browsertests", | |
148 "//extensions:extensions_unittests", | |
149 "//gpu/gles2_conform_support:gles2_conform_test", | 147 "//gpu/gles2_conform_support:gles2_conform_test", |
150 "//jingle:jingle_unittests", | 148 "//jingle:jingle_unittests", |
151 "//net:hpack_example_generator", | 149 "//net:hpack_example_generator", |
152 "//net:hpack_fuzz_mutator", | 150 "//net:hpack_fuzz_mutator", |
153 "//net:hpack_fuzz_wrapper", | 151 "//net:hpack_fuzz_wrapper", |
154 "//ppapi:ppapi_unittests", | 152 "//ppapi:ppapi_unittests", |
155 "//ppapi/examples/2d", | 153 "//ppapi/examples/2d", |
156 "//ppapi/examples/audio", | 154 "//ppapi/examples/audio", |
157 "//ppapi/examples/audio_input", | 155 "//ppapi/examples/audio_input", |
158 "//ppapi/examples/compositor", | 156 "//ppapi/examples/compositor", |
(...skipping 26 matching lines...) Expand all Loading... | |
185 "//third_party/codesighs", | 183 "//third_party/codesighs", |
186 "//third_party/pdfium/samples:pdfium_test", | 184 "//third_party/pdfium/samples:pdfium_test", |
187 "//tools/battor_agent", | 185 "//tools/battor_agent", |
188 "//tools/battor_agent:battor_agent_unittests", | 186 "//tools/battor_agent:battor_agent_unittests", |
189 "//tools/gn", | 187 "//tools/gn", |
190 "//tools/gn:gn_unittests", | 188 "//tools/gn:gn_unittests", |
191 "//tools/perf/clear_system_cache", | 189 "//tools/perf/clear_system_cache", |
192 "//ui/accessibility:accessibility_unittests", | 190 "//ui/accessibility:accessibility_unittests", |
193 "//ui/app_list:app_list_unittests", | 191 "//ui/app_list:app_list_unittests", |
194 ] | 192 ] |
193 if (enable_extensions) { | |
194 deps += [ | |
195 "//extensions:extensions_browsertests", | |
196 "//extensions:extensions_unittests", | |
197 ] | |
198 } | |
Dirk Pranke
2016/05/05 02:38:48
Can you check if we can lift these blocks out of t
asaka
2016/05/11 05:54:14
I agree it sounds plausible, but I don't know how
| |
195 } | 199 } |
196 | 200 |
197 if (!is_ios) { | 201 if (!is_ios) { |
198 # TODO(GYP): Figure out which of these should actually build on iOS, | 202 # TODO(GYP): Figure out which of these should actually build on iOS, |
199 # and whether there should be other targets that are iOS-only and missing. | 203 # and whether there should be other targets that are iOS-only and missing. |
200 deps += [ | 204 deps += [ |
201 "//cc:cc_unittests", | 205 "//cc:cc_unittests", |
202 "//chrome/test:unit_tests", | 206 "//chrome/test:unit_tests", |
203 "//components:components_browsertests", | 207 "//components:components_browsertests", |
204 "//content/shell:content_shell", | 208 "//content/shell:content_shell", |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
263 if (enable_remoting) { | 267 if (enable_remoting) { |
264 deps += [ "//remoting:remoting_all" ] | 268 deps += [ "//remoting:remoting_all" ] |
265 } | 269 } |
266 | 270 |
267 if (toolkit_views) { | 271 if (toolkit_views) { |
268 deps += [ "//ui/views:views_unittests" ] | 272 deps += [ "//ui/views:views_unittests" ] |
269 } | 273 } |
270 | 274 |
271 if (use_aura) { | 275 if (use_aura) { |
272 deps += [ | 276 deps += [ |
273 "//ash:ash_shell_with_content", | |
274 "//ash:ash_unittests", | |
275 "//ui/app_list/presenter:app_list_presenter_unittests", | 277 "//ui/app_list/presenter:app_list_presenter_unittests", |
276 "//ui/aura:aura_unittests", | 278 "//ui/aura:aura_unittests", |
277 "//ui/aura:demo", | 279 "//ui/aura:demo", |
278 "//ui/wm:wm_unittests", | 280 "//ui/wm:wm_unittests", |
279 ] | 281 ] |
282 if (use_ash) { | |
283 deps += [ | |
284 "//ash:ash_shell_with_content", | |
285 "//ash:ash_unittests", | |
286 ] | |
287 } | |
280 } | 288 } |
281 | 289 |
282 if (use_ozone) { | 290 if (use_ozone) { |
283 deps += [ "//ui/ozone" ] | 291 deps += [ "//ui/ozone" ] |
284 } | 292 } |
285 | 293 |
286 if (use_x11) { | 294 if (use_x11) { |
287 deps += [ "//tools/xdisplaycheck" ] | 295 deps += [ "//tools/xdisplaycheck" ] |
288 } | 296 } |
289 | 297 |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
644 | 652 |
645 if (!is_android && !is_ios && !is_chromeos) { | 653 if (!is_android && !is_ios && !is_chromeos) { |
646 deps += [ "//components/proximity_auth:proximity_auth_unittests" ] | 654 deps += [ "//components/proximity_auth:proximity_auth_unittests" ] |
647 } | 655 } |
648 | 656 |
649 if (is_win || is_linux) { | 657 if (is_win || is_linux) { |
650 deps += [ | 658 deps += [ |
651 "//components/mus/demo", | 659 "//components/mus/demo", |
652 "//components/mus/ws:tests", | 660 "//components/mus/ws:tests", |
653 "//components/resource_provider:resource_provider_unittests", | 661 "//components/resource_provider:resource_provider_unittests", |
654 "//mash:all", | |
655 "//media/mojo/services:media_mojo_shell_unittests", | 662 "//media/mojo/services:media_mojo_shell_unittests", |
656 "//mojo", | 663 "//mojo", |
657 "//ui/views/mus:views_mus_unittests", | 664 "//ui/views/mus:views_mus_unittests", |
658 ] | 665 ] |
666 if (use_ash) { | |
667 deps += [ "//mash:all" ] | |
668 } | |
659 } | 669 } |
660 | 670 |
661 if (is_linux && !is_chromeos && !is_chromecast) { | 671 if (is_linux && !is_chromeos && !is_chromecast) { |
662 # TODO(GYP): Figure out if any of these should be in gn_all | 672 # TODO(GYP): Figure out if any of these should be in gn_all |
663 # and figure out how cross-platform they are | 673 # and figure out how cross-platform they are |
664 deps += [ | 674 deps += [ |
665 ":gn_mojo_targets", | 675 ":gn_mojo_targets", |
666 "//chrome/browser/resources:extension_resource_demo", | 676 "//chrome/browser/resources:extension_resource_demo", |
667 "//chrome/installer/util:strings", | 677 "//chrome/installer/util:strings", |
668 "//chrome/tools/convert_dict", | 678 "//chrome/tools/convert_dict", |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
952 assert(target_name != "") # Mark as used. | 962 assert(target_name != "") # Mark as used. |
953 sources = invoker.actual_sources | 963 sources = invoker.actual_sources |
954 assert( | 964 assert( |
955 sources == invoker.actual_sources, | 965 sources == invoker.actual_sources, |
956 "Do not use a platform name in your output directory (found \"$root_build_ dir\"). http://crbug.com/548283") | 966 "Do not use a platform name in your output directory (found \"$root_build_ dir\"). http://crbug.com/548283") |
957 } | 967 } |
958 | 968 |
959 assert_valid_out_dir("_unused") { | 969 assert_valid_out_dir("_unused") { |
960 actual_sources = [ "$root_build_dir/foo" ] | 970 actual_sources = [ "$root_build_dir/foo" ] |
961 } | 971 } |
OLD | NEW |