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

Issue 10306013: MSVS: Fix to ensure that actions are re-run when the action command changes (Closed)

Created:
8 years, 7 months ago by Mark Seaborn
Modified:
8 years, 7 months ago
Reviewers:
jeanluc, jeanluc1
CC:
gyp-developer_googlegroups.com, bradn
Base URL:
http://git.chromium.org/external/gyp.git@master
Visibility:
Public.

Description

MSVS: Fix to ensure that actions are re-run when the action command changes There was some code to re-run an action, but it only worked: 1) If the command change came from a change to a .gyp file. It didn't work if the command change came from a change to a .gypi file. Fix this by having a dependency on the generated .vcproj file instead of on the .gyp file. 2) If the target had an empty "inputs" list. Fix this by adding the dependency unconditionally. BUG=http://code.google.com/p/gyp/issues/detail?id=262 TEST=test/actions-args-change

Patch Set 1 #

Patch Set 2 : Tidy #

Total comments: 7

Patch Set 3 : Fix test/intermediate_dir/gyptest-intermediate-dir.py (covers case where inputs list is empty) #

Total comments: 2

Patch Set 4 : Skip new code for MSVS 2010 #

Total comments: 2

Patch Set 5 : Style #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -6 lines) Patch
M pylib/gyp/generator/msvs.py View 1 2 3 4 5 chunks +16 lines, -6 lines 0 comments Download
A test/actions-args-change/gyptest-all.py View 1 1 chunk +48 lines, -0 lines 0 comments Download
A test/actions-args-change/src/arg-action.gyp View 1 1 chunk +35 lines, -0 lines 0 comments Download
A test/actions-args-change/src/arg-action.gypi View 1 chunk +9 lines, -0 lines 0 comments Download
A test/actions-args-change/src/dummy-fixed-input.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
A test/actions-args-change/src/write_file.py View 1 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Mark Seaborn
I'm looking into the trybot failures, but I think they are pre-existing failures and not ...
8 years, 7 months ago (2012-05-02 22:40:41 UTC) #1
scottmg
On 2012/05/02 22:40:41, Mark Seaborn wrote: > I'm looking into the trybot failures, but I ...
8 years, 7 months ago (2012-05-02 22:44:25 UTC) #2
Ryan Sleevi
On the upside, it looks like this might fix the Webkit-requires-clobber issue when WebKit feature ...
8 years, 7 months ago (2012-05-02 22:57:33 UTC) #3
jeanluc1
https://chromiumcodereview.appspot.com/10306013/diff/9/pylib/gyp/generator/msvs.py File pylib/gyp/generator/msvs.py (right): https://chromiumcodereview.appspot.com/10306013/diff/9/pylib/gyp/generator/msvs.py#newcode2916 pylib/gyp/generator/msvs.py:2916: _AddActions(actions_to_add, spec, project.path) I'm not sure if there's a ...
8 years, 7 months ago (2012-05-02 23:13:50 UTC) #4
Mark Seaborn
https://chromiumcodereview.appspot.com/10306013/diff/9/pylib/gyp/generator/msvs.py File pylib/gyp/generator/msvs.py (right): https://chromiumcodereview.appspot.com/10306013/diff/9/pylib/gyp/generator/msvs.py#newcode2916 pylib/gyp/generator/msvs.py:2916: _AddActions(actions_to_add, spec, project.path) On 2012/05/02 23:13:52, jeanluc1 wrote: > ...
8 years, 7 months ago (2012-05-02 23:38:32 UTC) #5
jeanluc1
https://chromiumcodereview.appspot.com/10306013/diff/9/pylib/gyp/generator/msvs.py File pylib/gyp/generator/msvs.py (right): https://chromiumcodereview.appspot.com/10306013/diff/9/pylib/gyp/generator/msvs.py#newcode2916 pylib/gyp/generator/msvs.py:2916: _AddActions(actions_to_add, spec, project.path) If the 2010 trybot is happy, ...
8 years, 7 months ago (2012-05-02 23:50:24 UTC) #6
Mark Seaborn
https://chromiumcodereview.appspot.com/10306013/diff/9/test/actions-args-change/gyptest-all.py File test/actions-args-change/gyptest-all.py (right): https://chromiumcodereview.appspot.com/10306013/diff/9/test/actions-args-change/gyptest-all.py#newcode42 test/actions-args-change/gyptest-all.py:42: WriteFile(gypi_file, data.replace('ARG_VALUE_1', 'ARG_VALUE_2')) On 2012/05/02 23:50:24, jeanluc1 wrote: > ...
8 years, 7 months ago (2012-05-03 00:39:20 UTC) #7
Mark Seaborn
On 2012/05/02 22:57:33, Ryan Sleevi wrote: > On the upside, it looks like this might ...
8 years, 7 months ago (2012-05-03 16:54:14 UTC) #8
jeanluc1
I'm glad you verified that VS2010 was handling correctly. I'm fine with this change. https://chromiumcodereview.appspot.com/10306013/diff/20002/pylib/gyp/generator/msvs.py ...
8 years, 7 months ago (2012-05-03 17:12:44 UTC) #9
Ryan Sleevi
On 2012/05/03 16:54:14, Mark Seaborn wrote: > On 2012/05/02 22:57:33, Ryan Sleevi wrote: > > ...
8 years, 7 months ago (2012-05-03 17:41:57 UTC) #10
jeanluc1
lgtm
8 years, 7 months ago (2012-05-03 20:37:56 UTC) #11
Mark Seaborn
On 2012/05/02 22:57:33, Ryan Sleevi wrote: > On the upside, it looks like this might ...
8 years, 7 months ago (2012-05-04 20:14:37 UTC) #12
Mark Seaborn
8 years, 7 months ago (2012-05-09 02:04:47 UTC) #13
Closing: this was replaced by http://codereview.chromium.org/10375015/

Powered by Google App Engine
This is Rietveld 408576698