OLD | NEW |
1 # Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2015 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 file defines three targets that we are using to | 5 # This file defines five targets that we are using to track the progress of the |
6 # track the progress of the GYP->GN migration: | 6 # GYP->GN migration: |
7 # | 7 # |
8 # If you run 'ninja gn_build gyp_remaining gyp_groups', and then | 8 # 'both_gn_and_gyp' lists what GN is currently capable of building and should |
9 # run 'ninja', the second ninja invocation should do nothing. This | 9 # match the 'both_gn_and_gyp' target in //BUILD.gn. |
10 # indicates that everything built by a ninja build is in fact | |
11 # listed in one of these targets. | |
12 # | 10 # |
13 # 'gn_all' lists what GN is currently capable of building and should | 11 # 'gyp_all' Should include everything built when building "all"; i.e., if you |
14 # match the 'gn_all' target in //BUILD.gn. | 12 # type 'ninja gyp_all' and then 'ninja all', the second build should do |
| 13 # nothing. 'gyp_all' should just depend on the other four targets. |
| 14 # |
| 15 # 'gyp_only' lists any targets that are not meant to be ported over to the GN |
| 16 # build. |
15 # | 17 # |
16 # 'gyp_remaining' lists all of the targets that still need to be converted, | 18 # 'gyp_remaining' lists all of the targets that still need to be converted, |
17 # i.e., all of the other (non-empty) targets that a GYP build | 19 # i.e., all of the other (non-empty) targets that a GYP build will build. |
18 # will build. | |
19 # | 20 # |
20 # 'gyp_groups' lists any empty (group) targets in the GYP build that | 21 # TODO(GYP): crbug.com/481694. Add a build step to the bot that enforces the |
21 # are not picked up by gn_all or gyp_remaining; this is a | 22 # above contracts. |
22 # separate target to ensure that when we build it, only | |
23 # stamp targets file are we don't accidentally pick up something | |
24 # not listed in one of the other two targets. | |
25 # | |
26 # TODO(GYP), TODO(dpranke) Add a build step to the bot that enforces the | |
27 # above contracts. | |
28 | 23 |
29 { | 24 { |
30 'targets': [ | 25 'targets': [ |
31 { | 26 { |
32 # This target should mirror the structure of //:gn_all | 27 'target_name': 'gyp_all', |
33 # as closely as possible, for ease of comparison. | 28 'type': 'none', |
34 'target_name': 'gn_all', | 29 'dependencies': [ |
| 30 'both_gn_and_gyp', |
| 31 'gyp_only', |
| 32 'gyp_remaining', |
| 33 ] |
| 34 }, |
| 35 { |
| 36 # This target should mirror the structure of //:both_gn_and_gyp |
| 37 # in src/BUILD.gn as closely as possible, for ease of comparison. |
| 38 'target_name': 'both_gn_and_gyp', |
35 'type': 'none', | 39 'type': 'none', |
36 'dependencies': [ | 40 'dependencies': [ |
37 '../base/base.gyp:base_i18n_perftests', | 41 '../base/base.gyp:base_i18n_perftests', |
38 '../base/base.gyp:base_perftests', | 42 '../base/base.gyp:base_perftests', |
39 '../base/base.gyp:base_unittests', | 43 '../base/base.gyp:base_unittests', |
40 '../base/base.gyp:build_utf8_validator_tables#host', | 44 '../base/base.gyp:build_utf8_validator_tables#host', |
41 '../base/base.gyp:check_example', | 45 '../base/base.gyp:check_example', |
42 '../cc/cc_tests.gyp:cc_perftests', | 46 '../cc/cc_tests.gyp:cc_perftests', |
43 '../cc/cc_tests.gyp:cc_unittests', | 47 '../cc/cc_tests.gyp:cc_unittests', |
44 '../cc/blink/cc_blink_tests.gyp:cc_blink_unittests', | 48 '../cc/blink/cc_blink_tests.gyp:cc_blink_unittests', |
(...skipping 46 matching lines...) Loading... |
91 '../gpu/gles2_conform_support/gles2_conform_support.gyp:gles2_conform_su
pport', # TODO(GYP) crbug.com/471920 | 95 '../gpu/gles2_conform_support/gles2_conform_support.gyp:gles2_conform_su
pport', # TODO(GYP) crbug.com/471920 |
92 '../gpu/gles2_conform_support/gles2_conform_test.gyp:gles2_conform_test'
, # TODO(GYP) crbug.com/471920 | 96 '../gpu/gles2_conform_support/gles2_conform_test.gyp:gles2_conform_test'
, # TODO(GYP) crbug.com/471920 |
93 '../gpu/khronos_glcts_support/khronos_glcts_test.gyp:khronos_glcts_test'
, # TODO(GYP) crbug.com/471903 to make this complete. | 97 '../gpu/khronos_glcts_support/khronos_glcts_test.gyp:khronos_glcts_test'
, # TODO(GYP) crbug.com/471903 to make this complete. |
94 '../ipc/ipc.gyp:ipc_perftests', | 98 '../ipc/ipc.gyp:ipc_perftests', |
95 '../ipc/ipc.gyp:ipc_tests', | 99 '../ipc/ipc.gyp:ipc_tests', |
96 '../ipc/mojo/ipc_mojo.gyp:ipc_mojo_unittests', | 100 '../ipc/mojo/ipc_mojo.gyp:ipc_mojo_unittests', |
97 '../jingle/jingle.gyp:jingle_unittests', | 101 '../jingle/jingle.gyp:jingle_unittests', |
98 '../media/media.gyp:ffmpeg_regression_tests', # TODO(GYP) this should b
e conditional on media_use_ffmpeg | 102 '../media/media.gyp:ffmpeg_regression_tests', # TODO(GYP) this should b
e conditional on media_use_ffmpeg |
99 '../media/media.gyp:media_perftests', | 103 '../media/media.gyp:media_perftests', |
100 '../media/media.gyp:media_unittests', | 104 '../media/media.gyp:media_unittests', |
| 105 '../media/midi/midi.gyp:midi_unittests', |
101 '../media/cast/cast.gyp:cast_benchmarks', | 106 '../media/cast/cast.gyp:cast_benchmarks', |
102 '../media/cast/cast.gyp:cast_unittests', | 107 '../media/cast/cast.gyp:cast_unittests', |
103 '../media/cast/cast.gyp:generate_barcode_video', | 108 '../media/cast/cast.gyp:generate_barcode_video', |
104 '../media/cast/cast.gyp:generate_timecode_audio', | 109 '../media/cast/cast.gyp:generate_timecode_audio', |
105 '../mojo/mojo.gyp:mojo', | 110 '../mojo/mojo.gyp:mojo', |
106 '../mojo/mojo_base.gyp:mojo_application_chromium', | 111 '../mojo/mojo_base.gyp:mojo_application_chromium', |
107 '../mojo/mojo_base.gyp:mojo_common_unittests', | 112 '../mojo/mojo_base.gyp:mojo_common_unittests', |
108 '../net/net.gyp:crash_cache', | 113 '../net/net.gyp:crash_cache', |
109 '../net/net.gyp:crl_set_dump', | 114 '../net/net.gyp:crl_set_dump', |
110 '../net/net.gyp:dns_fuzz_stub', | 115 '../net/net.gyp:dns_fuzz_stub', |
(...skipping 79 matching lines...) Loading... |
190 '../tools/imagediff/image_diff.gyp:image_diff', | 195 '../tools/imagediff/image_diff.gyp:image_diff', |
191 '../tools/perf/clear_system_cache/clear_system_cache.gyp:clear_system_ca
che', | 196 '../tools/perf/clear_system_cache/clear_system_cache.gyp:clear_system_ca
che', |
192 '../tools/telemetry/telemetry.gyp:bitmaptools#host', | 197 '../tools/telemetry/telemetry.gyp:bitmaptools#host', |
193 '../ui/accessibility/accessibility.gyp:accessibility_unittests', | 198 '../ui/accessibility/accessibility.gyp:accessibility_unittests', |
194 '../ui/app_list/app_list.gyp:app_list_unittests', | 199 '../ui/app_list/app_list.gyp:app_list_unittests', |
195 '../ui/base/ui_base_tests.gyp:ui_base_unittests', | 200 '../ui/base/ui_base_tests.gyp:ui_base_unittests', |
196 '../ui/compositor/compositor.gyp:compositor_unittests', | 201 '../ui/compositor/compositor.gyp:compositor_unittests', |
197 '../ui/display/display.gyp:display_unittests', | 202 '../ui/display/display.gyp:display_unittests', |
198 '../ui/events/events.gyp:events_unittests', | 203 '../ui/events/events.gyp:events_unittests', |
199 '../ui/gfx/gfx_tests.gyp:gfx_unittests', | 204 '../ui/gfx/gfx_tests.gyp:gfx_unittests', |
| 205 '../ui/gl/gl_tests.gyp:gl_unittests', |
200 '../ui/message_center/message_center.gyp:message_center_unittests', | 206 '../ui/message_center/message_center.gyp:message_center_unittests', |
201 '../ui/snapshot/snapshot.gyp:snapshot_unittests', | 207 '../ui/snapshot/snapshot.gyp:snapshot_unittests', |
202 '../ui/touch_selection/ui_touch_selection.gyp:ui_touch_selection_unittes
ts', | 208 '../ui/touch_selection/ui_touch_selection.gyp:ui_touch_selection_unittes
ts', |
203 '../ui/views/examples/examples.gyp:views_examples_with_content_exe', | 209 '../ui/views/examples/examples.gyp:views_examples_with_content_exe', |
204 '../url/url.gyp:url_unittests', | 210 '../url/url.gyp:url_unittests', |
205 '../v8/tools/gyp/v8.gyp:v8_snapshot', | 211 '../v8/tools/gyp/v8.gyp:v8_snapshot', |
206 '../v8/tools/gyp/v8.gyp:postmortem-metadata', | 212 '../v8/tools/gyp/v8.gyp:postmortem-metadata', |
207 ], | 213 ], |
208 'conditions': [ | 214 'conditions': [ |
209 ['clang==1', { | 215 ['clang==1', { |
(...skipping 243 matching lines...) Loading... |
453 #"//extensions:extensions_unittests", # TODO(GYP) | 459 #"//extensions:extensions_unittests", # TODO(GYP) |
454 #"//net:net_unittests", # TODO(GYP) | 460 #"//net:net_unittests", # TODO(GYP) |
455 #"//third_party/usrsctp", # TODO(GYP) | 461 #"//third_party/usrsctp", # TODO(GYP) |
456 #"//ui/app_list:app_list_unittests", # TODO(GYP) | 462 #"//ui/app_list:app_list_unittests", # TODO(GYP) |
457 #"//ui/gfx:gfx_unittests", # TODO(GYP) | 463 #"//ui/gfx:gfx_unittests", # TODO(GYP) |
458 ], | 464 ], |
459 }], | 465 }], |
460 ['OS=="win"', { | 466 ['OS=="win"', { |
461 'dependencies': [ | 467 'dependencies': [ |
462 '../base/base.gyp:pe_image_test', | 468 '../base/base.gyp:pe_image_test', |
| 469 '../chrome/chrome.gyp:crash_service', |
463 '../chrome_elf/chrome_elf.gyp:chrome_elf_unittests', | 470 '../chrome_elf/chrome_elf.gyp:chrome_elf_unittests', |
464 '../chrome_elf/chrome_elf.gyp:dll_hash_main', | 471 '../chrome_elf/chrome_elf.gyp:dll_hash_main', |
465 '../components/components.gyp:wifi_test', | 472 '../components/components.gyp:wifi_test', |
466 '../net/net.gyp:quic_client', | 473 '../net/net.gyp:quic_client', |
467 '../net/net.gyp:quic_server', | 474 '../net/net.gyp:quic_server', |
468 '../sandbox/sandbox.gyp:pocdll', | 475 '../sandbox/sandbox.gyp:pocdll', |
469 '../sandbox/sandbox.gyp:sandbox_poc', | 476 '../sandbox/sandbox.gyp:sandbox_poc', |
470 '../sandbox/sandbox.gyp:sbox_integration_tests', | 477 '../sandbox/sandbox.gyp:sbox_integration_tests', |
471 '../sandbox/sandbox.gyp:sbox_unittests', | 478 '../sandbox/sandbox.gyp:sbox_unittests', |
472 '../sandbox/sandbox.gyp:sbox_validation_tests', | 479 '../sandbox/sandbox.gyp:sbox_validation_tests', |
(...skipping 41 matching lines...) Loading... |
514 '../chrome/chrome.gyp:unit_tests_run', | 521 '../chrome/chrome.gyp:unit_tests_run', |
515 '../components/components_tests.gyp:components_browsertests_run', | 522 '../components/components_tests.gyp:components_browsertests_run', |
516 '../components/components_tests.gyp:components_unittests_run', | 523 '../components/components_tests.gyp:components_unittests_run', |
517 '../content/content_shell_and_tests.gyp:content_browsertests_run', | 524 '../content/content_shell_and_tests.gyp:content_browsertests_run', |
518 '../content/content_shell_and_tests.gyp:content_unittests_run', | 525 '../content/content_shell_and_tests.gyp:content_unittests_run', |
519 '../crypto/crypto.gyp:crypto_unittests_run', | 526 '../crypto/crypto.gyp:crypto_unittests_run', |
520 '../courgette/courgette.gyp:courgette_unittests_run', | 527 '../courgette/courgette.gyp:courgette_unittests_run', |
521 '../gpu/gpu.gyp:gpu_unittests_run', | 528 '../gpu/gpu.gyp:gpu_unittests_run', |
522 '../media/cast/cast.gyp:cast_unittests_run', | 529 '../media/cast/cast.gyp:cast_unittests_run', |
523 '../media/media.gyp:media_unittests_run', | 530 '../media/media.gyp:media_unittests_run', |
| 531 '../media/midi/midi.gyp:midi_unittests_run', |
524 '../net/net.gyp:net_unittests_run', | 532 '../net/net.gyp:net_unittests_run', |
525 '../sql/sql.gyp:sql_unittests_run', | 533 '../sql/sql.gyp:sql_unittests_run', |
526 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalid
ation_unittests_run', | 534 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalid
ation_unittests_run', |
527 '../ui/accessibility/accessibility.gyp:accessibility_unittests_run', | 535 '../ui/accessibility/accessibility.gyp:accessibility_unittests_run', |
528 '../ui/app_list/app_list.gyp:app_list_unittests_run', | 536 '../ui/app_list/app_list.gyp:app_list_unittests_run', |
529 '../ui/events/events.gyp:events_unittests_run', | 537 '../ui/events/events.gyp:events_unittests_run', |
530 '../ui/message_center/message_center.gyp:message_center_unittests_ru
n', | 538 '../ui/message_center/message_center.gyp:message_center_unittests_ru
n', |
531 '../ui/touch_selection/ui_touch_selection.gyp:ui_touch_selection_uni
ttests_run', | 539 '../ui/touch_selection/ui_touch_selection.gyp:ui_touch_selection_uni
ttests_run', |
532 ], | 540 ], |
533 }], | 541 }], |
(...skipping 65 matching lines...) Loading... |
599 '../third_party/webrtc/tools/tools.gyp:rgba_to_i420_converter', | 607 '../third_party/webrtc/tools/tools.gyp:rgba_to_i420_converter', |
600 ], | 608 ], |
601 }], | 609 }], |
602 ['OS=="win"', { | 610 ['OS=="win"', { |
603 'dependencies': [ | 611 'dependencies': [ |
604 # TODO(GYP): All of these targets still need to be converted. | 612 # TODO(GYP): All of these targets still need to be converted. |
605 '../base/base.gyp:debug_message', | 613 '../base/base.gyp:debug_message', |
606 '../chrome/chrome.gyp:app_installer', | 614 '../chrome/chrome.gyp:app_installer', |
607 '../chrome/chrome.gyp:app_installer_unittests', | 615 '../chrome/chrome.gyp:app_installer_unittests', |
608 '../chrome/chrome.gyp:app_shim', | 616 '../chrome/chrome.gyp:app_shim', |
609 '../chrome/chrome.gyp:crash_service', | |
610 '../chrome/chrome.gyp:gcapi_dll', | 617 '../chrome/chrome.gyp:gcapi_dll', |
611 '../chrome/chrome.gyp:gcapi_test', | 618 '../chrome/chrome.gyp:gcapi_test', |
612 '../chrome/chrome.gyp:installer_util_unittests', | 619 '../chrome/chrome.gyp:installer_util_unittests', |
613 '../chrome/chrome.gyp:pack_policy_templates', | 620 '../chrome/chrome.gyp:pack_policy_templates', |
614 '../chrome/chrome.gyp:sb_sigutil', | 621 '../chrome/chrome.gyp:sb_sigutil', |
615 '../chrome/chrome.gyp:setup', | 622 '../chrome/chrome.gyp:setup', |
616 '../chrome/chrome.gyp:setup_unittests', | 623 '../chrome/chrome.gyp:setup_unittests', |
617 '../chrome/installer/mini_installer.gyp:mini_installer', | 624 '../chrome/installer/mini_installer.gyp:mini_installer', |
618 '../chrome/tools/crash_service/caps/caps.gyp:caps', | 625 '../chrome/tools/crash_service/caps/caps.gyp:caps', |
619 '../cloud_print/gcp20/prototype/gcp20_device.gyp:gcp20_device', | 626 '../cloud_print/gcp20/prototype/gcp20_device.gyp:gcp20_device', |
(...skipping 39 matching lines...) Loading... |
659 ], | 666 ], |
660 }], | 667 }], |
661 ['OS=="win" and target_arch=="ia32" and configuration_policy==1', { | 668 ['OS=="win" and target_arch=="ia32" and configuration_policy==1', { |
662 'dependencies': [ | 669 'dependencies': [ |
663 # TODO(GYP): All of these targets need to be ported over. | 670 # TODO(GYP): All of these targets need to be ported over. |
664 '../components/components.gyp:policy_win64', | 671 '../components/components.gyp:policy_win64', |
665 ] | 672 ] |
666 }], | 673 }], |
667 ], | 674 ], |
668 }, | 675 }, |
669 { | |
670 # This target, when built, should cause no actual work | |
671 # to be done, just update a bunch of stamp files. | |
672 'target_name': 'gyp_groups', | |
673 'type': 'none', | |
674 'dependencies': [ | |
675 'All', | |
676 'blink_tests', | |
677 'chromium_builder_asan', | |
678 'chromium_builder_chromedriver', | |
679 'chromium_builder_perf', | |
680 'chromium_builder_tests', | |
681 'chromium_builder_webrtc', | |
682 'chromium_gpu_builder', | |
683 'chromium_gpu_debug_builder', | |
684 ], | |
685 'conditions': [ | |
686 ['use_aura==1', { | |
687 'dependencies': [ | |
688 'aura_builder', | |
689 ] | |
690 }], | |
691 ['OS=="win"', { | |
692 'dependencies': [ | |
693 'chromium_builder', | |
694 'chromium_builder_dbg_drmemory_win', | |
695 'chromium_builder_nacl_sdk', | |
696 'chromium_builder_lkgr_drmemory_win', | |
697 'chromium_builder_dbg_tsan_win', | |
698 ], | |
699 }], | |
700 ], | |
701 }, | |
702 ] | 676 ] |
703 } | 677 } |
704 | 678 |
OLD | NEW |