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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
136 ] | 136 ] |
137 } | 137 } |
138 | 138 |
139 if (!is_ios && !is_android && !is_chromecast) { | 139 if (!is_ios && !is_android && !is_chromecast) { |
140 deps += [ | 140 deps += [ |
141 "//chrome", | 141 "//chrome", |
142 "//chrome/test:browser_tests", | 142 "//chrome/test:browser_tests", |
143 "//chrome/test:interactive_ui_tests", | 143 "//chrome/test:interactive_ui_tests", |
144 "//chrome/test:sync_integration_tests", | 144 "//chrome/test:sync_integration_tests", |
145 "//chrome/test/chromedriver:chromedriver_unittests", | 145 "//chrome/test/chromedriver:chromedriver_unittests", |
146 "//extensions:extensions_browsertests", | |
147 "//extensions:extensions_unittests", | |
148 "//gpu/gles2_conform_support:gles2_conform_test", | 146 "//gpu/gles2_conform_support:gles2_conform_test", |
149 "//gpu/khronos_glcts_support:khronos_glcts_test", | 147 "//gpu/khronos_glcts_support:khronos_glcts_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", |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
253 ] | 251 ] |
254 | 252 |
255 if (!is_component_build) { | 253 if (!is_component_build) { |
256 deps += [ "//components/cronet/ios:cronet_package" ] | 254 deps += [ "//components/cronet/ios:cronet_package" ] |
257 } | 255 } |
258 } | 256 } |
259 | 257 |
260 deps += root_extra_deps | 258 deps += root_extra_deps |
261 | 259 |
262 if (enable_extensions) { | 260 if (enable_extensions) { |
263 deps += [ "//extensions/shell:app_shell_unittests" ] | 261 deps += [ |
262 "//extensions:extensions_browsertests", | |
263 "//extensions:extensions_unittests", | |
264 "//extensions/shell:app_shell", | |
265 "//extensions/shell:app_shell_unittests", | |
266 ] | |
264 } | 267 } |
265 | 268 |
266 if (enable_media_router) { | 269 if (enable_media_router) { |
267 deps += [ "//chrome/browser/media/router" ] | 270 deps += [ "//chrome/browser/media/router" ] |
268 } | 271 } |
269 | 272 |
270 if (enable_remoting) { | 273 if (enable_remoting) { |
271 deps += [ "//remoting:remoting_all" ] | 274 deps += [ "//remoting:remoting_all" ] |
272 } | 275 } |
273 | 276 |
274 if (toolkit_views) { | 277 if (toolkit_views) { |
275 deps += [ "//ui/views:views_unittests" ] | 278 deps += [ "//ui/views:views_unittests" ] |
276 } | 279 } |
277 | 280 |
278 if (use_aura) { | 281 if (use_aura) { |
279 deps += [ | 282 deps += [ |
280 "//ash:ash_shell_with_content", | |
281 "//ash:ash_unittests", | |
282 "//ui/app_list:app_list_unittests", | 283 "//ui/app_list:app_list_unittests", |
283 "//ui/app_list/presenter:app_list_presenter_unittests", | 284 "//ui/app_list/presenter:app_list_presenter_unittests", |
284 "//ui/aura:aura_unittests", | 285 "//ui/aura:aura_unittests", |
285 "//ui/aura:demo", | 286 "//ui/aura:demo", |
286 "//ui/wm:wm_unittests", | 287 "//ui/wm:wm_unittests", |
287 ] | 288 ] |
289 if (use_ash) { | |
290 deps += [ | |
291 "//ash:ash_shell_with_content", | |
292 "//ash:ash_unittests", | |
293 ] | |
294 } | |
Dirk Pranke
2016/05/31 20:09:37
nit: does this even need to be nested inside use_a
| |
288 } | 295 } |
289 | 296 |
290 if (use_ozone) { | 297 if (use_ozone) { |
291 deps += [ "//ui/ozone" ] | 298 deps += [ "//ui/ozone" ] |
292 } | 299 } |
293 | 300 |
294 if (use_x11) { | 301 if (use_x11) { |
295 deps += [ "//tools/xdisplaycheck" ] | 302 deps += [ "//tools/xdisplaycheck" ] |
296 } | 303 } |
297 | 304 |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
483 "//third_party/leveldatabase:env_chromium_unittests", | 490 "//third_party/leveldatabase:env_chromium_unittests", |
484 "//third_party/libaddressinput:libaddressinput_unittests", | 491 "//third_party/libaddressinput:libaddressinput_unittests", |
485 ] | 492 ] |
486 } | 493 } |
487 if (!is_android && !is_linux) { | 494 if (!is_android && !is_linux) { |
488 # TODO(dpranke): Re-enable this once | 495 # TODO(dpranke): Re-enable this once |
489 # https://chromium-review.googlesource.com/#/c/312298/1 is rolled | 496 # https://chromium-review.googlesource.com/#/c/312298/1 is rolled |
490 # into chromium. | 497 # into chromium. |
491 deps += [ "//third_party/angle/src/tests:angle_end2end_tests" ] | 498 deps += [ "//third_party/angle/src/tests:angle_end2end_tests" ] |
492 } | 499 } |
493 | |
494 if (enable_extensions) { | |
495 deps += [ "//extensions/shell:app_shell" ] | |
496 } | |
497 | |
498 if (enable_nacl) { | 500 if (enable_nacl) { |
499 deps += [ "//components/nacl/loader:nacl_loader_unittests" ] | 501 deps += [ "//components/nacl/loader:nacl_loader_unittests" ] |
500 | 502 |
501 if (is_linux) { | 503 if (is_linux) { |
502 # TODO(dpranke): Figure out what platforms should actually have this. | 504 # TODO(dpranke): Figure out what platforms should actually have this. |
503 deps += [ | 505 deps += [ |
504 "//components/nacl/loader:helper_nonsfi", | 506 "//components/nacl/loader:helper_nonsfi", |
505 "//components/nacl/loader:nacl_helper", | 507 "//components/nacl/loader:nacl_helper", |
506 "//components/nacl/loader:nacl_helper_nonsfi_unittests", | 508 "//components/nacl/loader:nacl_helper_nonsfi_unittests", |
507 ] | 509 ] |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
643 } | 645 } |
644 | 646 |
645 if (!is_android && !is_ios && !is_chromeos) { | 647 if (!is_android && !is_ios && !is_chromeos) { |
646 deps += [ "//components/proximity_auth:proximity_auth_unittests" ] | 648 deps += [ "//components/proximity_auth:proximity_auth_unittests" ] |
647 } | 649 } |
648 | 650 |
649 if (is_win || is_linux) { | 651 if (is_win || is_linux) { |
650 deps += [ | 652 deps += [ |
651 "//components/mus/demo", | 653 "//components/mus/demo", |
652 "//components/mus/ws:tests", | 654 "//components/mus/ws:tests", |
653 "//mash:all", | |
654 "//media/mojo/services:media_mojo_shell_unittests", | 655 "//media/mojo/services:media_mojo_shell_unittests", |
655 "//mojo", | 656 "//mojo", |
656 "//services/navigation", | 657 "//services/navigation", |
657 "//ui/views/mus:views_mus_interactive_ui_tests", | 658 "//ui/views/mus:views_mus_interactive_ui_tests", |
658 "//ui/views/mus:views_mus_unittests", | 659 "//ui/views/mus:views_mus_unittests", |
659 ] | 660 ] |
661 if (use_ash) { | |
662 deps += [ "//mash:all" ] | |
Ben Goodger (Google)
2016/05/31 20:20:13
This is incorrect.
use_ash is meant to trigger "i
| |
663 } | |
660 } | 664 } |
661 | 665 |
662 if (is_linux && !is_chromeos && !is_chromecast) { | 666 if (is_linux && !is_chromeos && !is_chromecast) { |
663 # 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 |
664 # and figure out how cross-platform they are | 668 # and figure out how cross-platform they are |
665 deps += [ | 669 deps += [ |
666 ":gn_mojo_targets", | 670 ":gn_mojo_targets", |
667 "//chrome/browser/resources:extension_resource_demo", | 671 "//chrome/browser/resources:extension_resource_demo", |
668 "//chrome/installer/util:strings", | 672 "//chrome/installer/util:strings", |
669 "//chrome/tools/convert_dict", | 673 "//chrome/tools/convert_dict", |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
951 assert(target_name != "") # Mark as used. | 955 assert(target_name != "") # Mark as used. |
952 sources = invoker.actual_sources | 956 sources = invoker.actual_sources |
953 assert( | 957 assert( |
954 sources == invoker.actual_sources, | 958 sources == invoker.actual_sources, |
955 "Do not use a platform name in your output directory (found \"$root_build_ dir\"). http://crbug.com/548283") | 959 "Do not use a platform name in your output directory (found \"$root_build_ dir\"). http://crbug.com/548283") |
956 } | 960 } |
957 | 961 |
958 assert_valid_out_dir("_unused") { | 962 assert_valid_out_dir("_unused") { |
959 actual_sources = [ "$root_build_dir/foo" ] | 963 actual_sources = [ "$root_build_dir/foo" ] |
960 } | 964 } |
OLD | NEW |