Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Side by Side Diff: build/gn_migration.gypi

Issue 1104213005: Rework definitions of 'gn_all' and related targets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mandoline_fix
Patch Set: remove gn_groups, gyp_groups Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 ], 663 ],
660 }], 664 }],
661 ['OS=="win" and target_arch=="ia32" and configuration_policy==1', { 665 ['OS=="win" and target_arch=="ia32" and configuration_policy==1', {
662 'dependencies': [ 666 'dependencies': [
663 # TODO(GYP): All of these targets need to be ported over. 667 # TODO(GYP): All of these targets need to be ported over.
664 '../components/components.gyp:policy_win64', 668 '../components/components.gyp:policy_win64',
665 ] 669 ]
666 }], 670 }],
667 ], 671 ],
668 }, 672 },
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 ] 673 ]
703 } 674 }
704 675
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698