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

Issue 1430043002: Support script response files in GN. (Closed)

Created:
5 years, 1 month ago by brettw
Modified:
5 years, 1 month 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

Support script response files in GN. Exposes Ninja's response file capabilities to GN actions so that long command lines can be passed to scripts without manually calling write_file. Change the domain_reliability bake_in_configs script to use this facility as a test. There are now command-line flags that support both reading the .gypi file and passing a response file. This patch adds the BUILD rule for the new-style response file, but doesn't use it (pending a GN binary push). Removes running actions through gyp-win-tool on Windows. This is a bunch of hardcoded commands that are not necessary to my knowledge. Fixes an out-of-date cpu_arch reference in the mini installer build file I noticed (in a NaCl block that's not run yet). Committed: https://crrev.com/d6763a7390d6ca727c090a403d5dbefa94c5d79b Cr-Commit-Position: refs/heads/master@{#358968}

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Patch Set 4 : #

Total comments: 1

Patch Set 5 : review comment, random build fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+376 lines, -271 lines) Patch
M chrome/installer/mini_installer/BUILD.gn View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M components/domain_reliability.gypi View 1 chunk +3 lines, -3 lines 0 comments Download
M components/domain_reliability/BUILD.gn View 1 2 3 4 1 chunk +43 lines, -14 lines 0 comments Download
M components/domain_reliability/bake_in_configs.py View 1 2 4 chunks +43 lines, -12 lines 0 comments Download
M tools/gn/action_target_generator.h View 1 chunk +1 line, -0 lines 0 comments Download
M tools/gn/action_target_generator.cc View 1 2 3 chunks +33 lines, -0 lines 0 comments Download
M tools/gn/action_values.h View 2 chunks +8 lines, -0 lines 0 comments Download
M tools/gn/function_write_file.cc View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M tools/gn/functions_target.cc View 4 chunks +10 lines, -4 lines 0 comments Download
M tools/gn/ninja_action_target_writer.cc View 1 2 3 3 chunks +36 lines, -39 lines 0 comments Download
M tools/gn/ninja_action_target_writer_unittest.cc View 1 2 3 chunks +137 lines, -195 lines 0 comments Download
M tools/gn/substitution_type.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M tools/gn/substitution_type.cc View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M tools/gn/substitution_writer.cc View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M tools/gn/variables.h View 1 chunk +4 lines, -0 lines 0 comments Download
M tools/gn/variables.cc View 2 chunks +40 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (10 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1430043002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1430043002/20001
5 years, 1 month ago (2015-11-04 08:59:08 UTC) #4
brettw
This isn't quite ready for final review yet since it still needs tests. But I ...
5 years, 1 month ago (2015-11-04 09:02:24 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/130121)
5 years, 1 month ago (2015-11-04 09:44:36 UTC) #7
scottmg
The only things that I can recall that were actions that needed the environment were ...
5 years, 1 month ago (2015-11-04 22:35:33 UTC) #8
scottmg
Coincidentally I just got this CL https://codereview.chromium.org/1415983005/diff/1/tools/win_as.py which uses cl.exe. So I think whatever that ...
5 years, 1 month ago (2015-11-04 23:05:55 UTC) #9
brettw
https://codereview.chromium.org/1430043002/diff/20001/tools/gn/variables.cc File tools/gn/variables.cc (right): https://codereview.chromium.org/1430043002/diff/20001/tools/gn/variables.cc#newcode1193 tools/gn/variables.cc:1193: " inputs = [ ... huge list of files ...
5 years, 1 month ago (2015-11-05 02:13:19 UTC) #10
brettw
Good find, maybe I can just change that script to manually load the environment file ...
5 years, 1 month ago (2015-11-05 02:25:03 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1430043002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1430043002/40001
5 years, 1 month ago (2015-11-05 13:34:28 UTC) #13
brettw
New patch up with tests. Now that we don't do special weird stuff on Windows, ...
5 years, 1 month ago (2015-11-05 13:47:40 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1430043002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1430043002/60001
5 years, 1 month ago (2015-11-05 13:48:16 UTC) #16
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-05 15:00:48 UTC) #18
scottmg
lgtm https://codereview.chromium.org/1430043002/diff/60001/components/domain_reliability/BUILD.gn File components/domain_reliability/BUILD.gn (right): https://codereview.chromium.org/1430043002/diff/60001/components/domain_reliability/BUILD.gn#newcode22 components/domain_reliability/BUILD.gn:22: # TODO(brettw) enable once GN supports response_file_contets for ...
5 years, 1 month ago (2015-11-05 17:40:01 UTC) #19
scottmg
On 2015/11/05 02:13:19, brettw wrote: > https://codereview.chromium.org/1430043002/diff/20001/tools/gn/variables.cc > File tools/gn/variables.cc (right): > > https://codereview.chromium.org/1430043002/diff/20001/tools/gn/variables.cc#newcode1193 > ...
5 years, 1 month ago (2015-11-05 17:40:39 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1430043002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1430043002/80001
5 years, 1 month ago (2015-11-10 22:56:56 UTC) #24
brettw
For the record, it seems win_as pointed out by Scott already runs through gyp-win-tool manually ...
5 years, 1 month ago (2015-11-10 22:57:01 UTC) #25
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 1 month ago (2015-11-11 00:12:00 UTC) #26
commit-bot: I haz the power
5 years, 1 month ago (2015-11-11 00:12:59 UTC) #27
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/d6763a7390d6ca727c090a403d5dbefa94c5d79b
Cr-Commit-Position: refs/heads/master@{#358968}

Powered by Google App Engine
This is Rietveld 408576698