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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
245 "//ios/testing:ocmock_support_unittest", | 243 "//ios/testing:ocmock_support_unittest", |
246 "//ios/third_party/earl_grey", | 244 "//ios/third_party/earl_grey", |
247 "//ios/web:ios_web_inttests", | 245 "//ios/web:ios_web_inttests", |
248 "//ios/web:ios_web_unittests", | 246 "//ios/web:ios_web_unittests", |
249 "//ios/web/shell:ios_web_shell", | 247 "//ios/web/shell:ios_web_shell", |
250 ] | 248 ] |
251 } | 249 } |
252 | 250 |
253 deps += root_extra_deps | 251 deps += root_extra_deps |
254 | 252 |
255 if (enable_extensions) { | |
256 deps += [ "//extensions/shell:app_shell_unittests" ] | |
257 } | |
Dirk Pranke
2016/05/12 02:01:00
I would leave this block in, and move lines 147 an
| |
258 | |
259 if (enable_media_router) { | 253 if (enable_media_router) { |
260 deps += [ "//chrome/browser/media/router" ] | 254 deps += [ "//chrome/browser/media/router" ] |
261 } | 255 } |
262 | 256 |
263 if (enable_remoting) { | 257 if (enable_remoting) { |
264 deps += [ "//remoting:remoting_all" ] | 258 deps += [ "//remoting:remoting_all" ] |
265 } | 259 } |
266 | 260 |
267 if (toolkit_views) { | 261 if (toolkit_views) { |
268 deps += [ "//ui/views:views_unittests" ] | 262 deps += [ "//ui/views:views_unittests" ] |
269 } | 263 } |
270 | 264 |
271 if (use_aura) { | 265 if (use_aura) { |
272 deps += [ | 266 deps += [ |
273 "//ash:ash_shell_with_content", | |
274 "//ash:ash_unittests", | |
275 "//ui/app_list/presenter:app_list_presenter_unittests", | 267 "//ui/app_list/presenter:app_list_presenter_unittests", |
276 "//ui/aura:aura_unittests", | 268 "//ui/aura:aura_unittests", |
277 "//ui/aura:demo", | 269 "//ui/aura:demo", |
278 "//ui/wm:wm_unittests", | 270 "//ui/wm:wm_unittests", |
279 ] | 271 ] |
272 if (use_ash) { | |
273 deps += [ | |
274 "//ash:ash_shell_with_content", | |
275 "//ash:ash_unittests", | |
276 ] | |
277 } | |
280 } | 278 } |
281 | 279 |
282 if (use_ozone) { | 280 if (use_ozone) { |
283 deps += [ "//ui/ozone" ] | 281 deps += [ "//ui/ozone" ] |
284 } | 282 } |
285 | 283 |
286 if (use_x11) { | 284 if (use_x11) { |
287 deps += [ "//tools/xdisplaycheck" ] | 285 deps += [ "//tools/xdisplaycheck" ] |
288 } | 286 } |
289 | 287 |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
478 ] | 476 ] |
479 } | 477 } |
480 if (!is_android && !is_linux) { | 478 if (!is_android && !is_linux) { |
481 # TODO(dpranke): Re-enable this once | 479 # TODO(dpranke): Re-enable this once |
482 # https://chromium-review.googlesource.com/#/c/312298/1 is rolled | 480 # https://chromium-review.googlesource.com/#/c/312298/1 is rolled |
483 # into chromium. | 481 # into chromium. |
484 deps += [ "//third_party/angle/src/tests:angle_end2end_tests" ] | 482 deps += [ "//third_party/angle/src/tests:angle_end2end_tests" ] |
485 } | 483 } |
486 | 484 |
487 if (enable_extensions) { | 485 if (enable_extensions) { |
488 deps += [ "//extensions/shell:app_shell" ] | 486 deps += [ |
Dirk Pranke
2016/05/12 02:01:00
and move this up into the block on line 256 as wel
| |
487 "//extensions:extensions_browsertests", | |
488 "//extensions:extensions_unittests", | |
489 "//extensions/shell:app_shell", | |
490 "//extensions/shell:app_shell_unittests", | |
491 ] | |
489 } | 492 } |
490 | 493 |
491 if (enable_nacl) { | 494 if (enable_nacl) { |
492 deps += [ "//components/nacl/loader:nacl_loader_unittests" ] | 495 deps += [ "//components/nacl/loader:nacl_loader_unittests" ] |
493 | 496 |
494 if (is_linux) { | 497 if (is_linux) { |
495 # TODO(dpranke): Figure out what platforms should actually have this. | 498 # TODO(dpranke): Figure out what platforms should actually have this. |
496 deps += [ | 499 deps += [ |
497 "//components/nacl/loader:helper_nonsfi", | 500 "//components/nacl/loader:helper_nonsfi", |
498 "//components/nacl/loader:nacl_helper", | 501 "//components/nacl/loader:nacl_helper", |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
644 | 647 |
645 if (!is_android && !is_ios && !is_chromeos) { | 648 if (!is_android && !is_ios && !is_chromeos) { |
646 deps += [ "//components/proximity_auth:proximity_auth_unittests" ] | 649 deps += [ "//components/proximity_auth:proximity_auth_unittests" ] |
647 } | 650 } |
648 | 651 |
649 if (is_win || is_linux) { | 652 if (is_win || is_linux) { |
650 deps += [ | 653 deps += [ |
651 "//components/mus/demo", | 654 "//components/mus/demo", |
652 "//components/mus/ws:tests", | 655 "//components/mus/ws:tests", |
653 "//components/resource_provider:resource_provider_unittests", | 656 "//components/resource_provider:resource_provider_unittests", |
654 "//mash:all", | |
655 "//media/mojo/services:media_mojo_shell_unittests", | 657 "//media/mojo/services:media_mojo_shell_unittests", |
656 "//mojo", | 658 "//mojo", |
657 "//ui/views/mus:views_mus_unittests", | 659 "//ui/views/mus:views_mus_unittests", |
658 ] | 660 ] |
661 if (use_ash) { | |
662 deps += [ "//mash:all" ] | |
663 } | |
659 } | 664 } |
660 | 665 |
661 if (is_linux && !is_chromeos && !is_chromecast) { | 666 if (is_linux && !is_chromeos && !is_chromecast) { |
662 # TODO(GYP): Figure out if any of these should be in gn_all | 667 # TODO(GYP): Figure out if any of these should be in gn_all |
663 # and figure out how cross-platform they are | 668 # and figure out how cross-platform they are |
664 deps += [ | 669 deps += [ |
665 ":gn_mojo_targets", | 670 ":gn_mojo_targets", |
666 "//chrome/browser/resources:extension_resource_demo", | 671 "//chrome/browser/resources:extension_resource_demo", |
667 "//chrome/installer/util:strings", | 672 "//chrome/installer/util:strings", |
668 "//chrome/tools/convert_dict", | 673 "//chrome/tools/convert_dict", |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
952 assert(target_name != "") # Mark as used. | 957 assert(target_name != "") # Mark as used. |
953 sources = invoker.actual_sources | 958 sources = invoker.actual_sources |
954 assert( | 959 assert( |
955 sources == invoker.actual_sources, | 960 sources == invoker.actual_sources, |
956 "Do not use a platform name in your output directory (found \"$root_build_ dir\"). http://crbug.com/548283") | 961 "Do not use a platform name in your output directory (found \"$root_build_ dir\"). http://crbug.com/548283") |
957 } | 962 } |
958 | 963 |
959 assert_valid_out_dir("_unused") { | 964 assert_valid_out_dir("_unused") { |
960 actual_sources = [ "$root_build_dir/foo" ] | 965 actual_sources = [ "$root_build_dir/foo" ] |
961 } | 966 } |
OLD | NEW |