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

Issue 1130183007: Add runtime dependency extraction for GN. (Closed)

Created:
5 years, 7 months ago by brettw
Modified:
5 years, 7 months ago
Reviewers:
scottmg
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add runtime dependency extraction for GN. GN will now compute the list of files required for targets to run based on dependencies and data files listed on the targets. This is exposed via the "gn desc ... runtime_deps" command, and via a new switch that will write runtime deps files for specific targets at generation time. Committed: https://crrev.com/0db9185ce7bc14d96ce262978912a41941f46522 Cr-Commit-Position: refs/heads/master@{#329976}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 4

Patch Set 6 : add copy files #

Total comments: 1

Patch Set 7 : #

Patch Set 8 : moar parens for visual studio #

Patch Set 9 : make msvc happy #

Unified diffs Side-by-side diffs Delta from patch set Stats (+614 lines, -13 lines) Patch
M tools/gn/BUILD.gn View 2 chunks +3 lines, -0 lines 0 comments Download
M tools/gn/build_settings.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M tools/gn/command_desc.cc View 1 6 chunks +43 lines, -1 line 0 comments Download
M tools/gn/command_gen.cc View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M tools/gn/command_help.cc View 1 4 chunks +8 lines, -1 line 0 comments Download
M tools/gn/gn.gyp View 2 chunks +3 lines, -0 lines 0 comments Download
M tools/gn/ninja_target_writer.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
A tools/gn/runtime_deps.h View 1 2 3 4 1 chunk +28 lines, -0 lines 0 comments Download
A tools/gn/runtime_deps.cc View 1 2 3 4 5 6 7 8 1 chunk +227 lines, -0 lines 0 comments Download
A tools/gn/runtime_deps_unittest.cc View 1 2 3 4 5 6 1 chunk +242 lines, -0 lines 0 comments Download
M tools/gn/standard_out.cc View 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/switches.h View 1 chunk +4 lines, -0 lines 0 comments Download
M tools/gn/switches.cc View 1 2 3 3 chunks +36 lines, -2 lines 0 comments Download
M tools/gn/variables.cc View 1 1 chunk +13 lines, -6 lines 0 comments Download

Messages

Total messages: 26 (11 generated)
brettw
.
5 years, 7 months ago (2015-05-13 18:07:58 UTC) #1
brettw
5 years, 7 months ago (2015-05-13 22:18:12 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1130183007/80001
5 years, 7 months ago (2015-05-13 22:19:49 UTC) #5
scottmg
https://codereview.chromium.org/1130183007/diff/80001/tools/gn/runtime_deps.cc File tools/gn/runtime_deps.cc (right): https://codereview.chromium.org/1130183007/diff/80001/tools/gn/runtime_deps.cc#newcode86 tools/gn/runtime_deps.cc:86: what about Target::COPY_FILES? https://codereview.chromium.org/1130183007/diff/80001/tools/gn/runtime_deps.cc#newcode147 tools/gn/runtime_deps.cc:147: " targets that are ...
5 years, 7 months ago (2015-05-13 22:43:26 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/57200)
5 years, 7 months ago (2015-05-13 22:44:35 UTC) #8
brettw
https://codereview.chromium.org/1130183007/diff/80001/tools/gn/runtime_deps.cc File tools/gn/runtime_deps.cc (right): https://codereview.chromium.org/1130183007/diff/80001/tools/gn/runtime_deps.cc#newcode147 tools/gn/runtime_deps.cc:147: " targets that are \"deps\" or \"public_deps\" will have ...
5 years, 7 months ago (2015-05-14 16:33:44 UTC) #9
brettw
New snap up https://codereview.chromium.org/1130183007/diff/80001/tools/gn/runtime_deps.cc File tools/gn/runtime_deps.cc (right): https://codereview.chromium.org/1130183007/diff/80001/tools/gn/runtime_deps.cc#newcode86 tools/gn/runtime_deps.cc:86: On 2015/05/13 22:43:26, scottmg wrote: > ...
5 years, 7 months ago (2015-05-14 16:37:27 UTC) #10
scottmg
lgtm https://codereview.chromium.org/1130183007/diff/100001/tools/gn/runtime_deps_unittest.cc File tools/gn/runtime_deps_unittest.cc (right): https://codereview.chromium.org/1130183007/diff/100001/tools/gn/runtime_deps_unittest.cc#newcode178 tools/gn/runtime_deps_unittest.cc:178: ASSERT_TRUE(dep.OnResolved(&err)); add a copy dependency here?
5 years, 7 months ago (2015-05-14 17:42:45 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1130183007/120001
5 years, 7 months ago (2015-05-14 20:50:55 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/57620)
5 years, 7 months ago (2015-05-14 21:15:57 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1130183007/140001
5 years, 7 months ago (2015-05-14 22:42:08 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/57697)
5 years, 7 months ago (2015-05-14 23:02:31 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1130183007/160001
5 years, 7 months ago (2015-05-14 23:07:36 UTC) #24
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 7 months ago (2015-05-14 23:40:30 UTC) #25
commit-bot: I haz the power
5 years, 7 months ago (2015-05-14 23:42:02 UTC) #26
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/0db9185ce7bc14d96ce262978912a41941f46522
Cr-Commit-Position: refs/heads/master@{#329976}

Powered by Google App Engine
This is Rietveld 408576698