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

Issue 10384100: ninja windows: support msvs_quote_cmd support (Closed)

Created:
8 years, 7 months ago by scottmg
Modified:
8 years, 7 months ago
Reviewers:
Nico
CC:
gyp-developer_googlegroups.com, alexeypa (please no reviews)
Base URL:
http://git.chromium.org/external/gyp.git@master
Visibility:
Public.

Description

The msvs generator has a setting 'msvs_quote_cmd' that when set to 0 suppresses all quote/shell escaping when running actions. It seems a bit questionable, but as some Chromium actions rely on being able to do this, support the same behaviour in ninja. Add test for this setting for msvs and ninja. BUG=127444

Patch Set 1 #

Patch Set 2 : add test for msvs_quote_cmd #

Total comments: 4

Patch Set 3 : fixes #

Total comments: 1

Patch Set 4 : use namedtuple instead #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -23 lines) Patch
M pylib/gyp/generator/ninja.py View 1 2 6 chunks +13 lines, -11 lines 0 comments Download
M pylib/gyp/msvs_emulation.py View 1 2 3 6 chunks +30 lines, -12 lines 0 comments Download
A test/win/gyptest-no-quotes.py View 1 1 chunk +30 lines, -0 lines 0 comments Download
A test/win/no-quoting/no-quoting.gyp View 1 1 chunk +49 lines, -0 lines 0 comments Download
A test/win/no-quoting/somecmd.bat View 1 1 chunk +2 lines, -0 lines 0 comments Download
A test/win/no-quoting/sub dir space/infile View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
scottmg
add test for msvs_quote_cmd
8 years, 7 months ago (2012-05-10 17:56:52 UTC) #1
scottmg
8 years, 7 months ago (2012-05-10 18:00:36 UTC) #2
Nico
Looks good except for the crash-on-non-windows (if I didn't just misread the code) https://chromiumcodereview.appspot.com/10384100/diff/2001/pylib/gyp/generator/ninja.py File ...
8 years, 7 months ago (2012-05-10 19:04:22 UTC) #3
scottmg
fixes
8 years, 7 months ago (2012-05-10 19:46:48 UTC) #4
scottmg
http://chromiumcodereview.appspot.com/10384100/diff/2001/pylib/gyp/generator/ninja.py File pylib/gyp/generator/ninja.py (right): http://chromiumcodereview.appspot.com/10384100/diff/2001/pylib/gyp/generator/ninja.py#newcode552 pylib/gyp/generator/ninja.py:552: if win_shell_flags.cygwin: On 2012/05/10 19:04:22, Nico wrote: > As ...
8 years, 7 months ago (2012-05-10 19:47:00 UTC) #5
Nico
lgtm http://chromiumcodereview.appspot.com/10384100/diff/8001/pylib/gyp/msvs_emulation.py File pylib/gyp/msvs_emulation.py (right): http://chromiumcodereview.appspot.com/10384100/diff/8001/pylib/gyp/msvs_emulation.py#newcode412 pylib/gyp/msvs_emulation.py:412: self.quote = quote Since we're on python2.6+ everywhere, ...
8 years, 7 months ago (2012-05-10 21:20:57 UTC) #6
scottmg
use namedtuple instead
8 years, 7 months ago (2012-05-10 21:42:24 UTC) #7
scottmg
8 years, 7 months ago (2012-05-23 16:36:51 UTC) #8
closing, in favor of deprecating the msvs_quote_cmd 'feature' at a later date.

Powered by Google App Engine
This is Rietveld 408576698