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

Issue 10269012: ninja windows: sanitize rule names to not emit corrupt .ninja files (Closed)

Created:
8 years, 7 months ago by scottmg
Modified:
8 years, 7 months ago
Reviewers:
Nico
CC:
gyp-developer_googlegroups.com
Visibility:
Public.

Description

ninja windows: sanitize rule names to not emit corrupt .ninja files Ninja doesn't want ( and ) in rule names. R=thakis@chromium.org BUG=chromium:125606 Committed: https://code.google.com/p/gyp/source/detail?r=1346

Patch Set 1 #

Total comments: 2

Patch Set 2 : run on all generators, and move to top-level #

Patch Set 3 : line endings #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -0 lines) Patch
M pylib/gyp/generator/ninja.py View 2 chunks +2 lines, -1 line 0 comments Download
A test/sanitize-rule-names/blah.X View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A test/sanitize-rule-names/gyptest-sanitize-rule-names.py View 1 1 chunk +17 lines, -0 lines 0 comments Download
A test/sanitize-rule-names/hello.cc View 1 1 chunk +7 lines, -0 lines 0 comments Download
A test/sanitize-rule-names/sanitize-rule-names.gyp View 1 1 chunk +27 lines, -0 lines 0 comments Download
A test/sanitize-rule-names/script.py View 1 2 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
scottmg
8 years, 7 months ago (2012-04-30 21:27:37 UTC) #1
Nico
http://chromiumcodereview.appspot.com/10269012/diff/1/test/ninja/sanitize-rule-names/gyptest-sanitize-rule-names.py File test/ninja/sanitize-rule-names/gyptest-sanitize-rule-names.py (right): http://chromiumcodereview.appspot.com/10269012/diff/1/test/ninja/sanitize-rule-names/gyptest-sanitize-rule-names.py#newcode16 test/ninja/sanitize-rule-names/gyptest-sanitize-rule-names.py:16: test.build('sanitize-rule-names.gyp', test.ALL) Nothing in this test looks ninja-specific. Should ...
8 years, 7 months ago (2012-04-30 21:30:33 UTC) #2
scottmg
https://chromiumcodereview.appspot.com/10269012/diff/1/test/ninja/sanitize-rule-names/gyptest-sanitize-rule-names.py File test/ninja/sanitize-rule-names/gyptest-sanitize-rule-names.py (right): https://chromiumcodereview.appspot.com/10269012/diff/1/test/ninja/sanitize-rule-names/gyptest-sanitize-rule-names.py#newcode16 test/ninja/sanitize-rule-names/gyptest-sanitize-rule-names.py:16: test.build('sanitize-rule-names.gyp', test.ALL) On 2012/04/30 21:30:33, Nico wrote: > Nothing ...
8 years, 7 months ago (2012-04-30 21:33:04 UTC) #3
scottmg
On 2012/04/30 21:33:04, scottmg wrote: > https://chromiumcodereview.appspot.com/10269012/diff/1/test/ninja/sanitize-rule-names/gyptest-sanitize-rule-names.py > File test/ninja/sanitize-rule-names/gyptest-sanitize-rule-names.py (right): > > https://chromiumcodereview.appspot.com/10269012/diff/1/test/ninja/sanitize-rule-names/gyptest-sanitize-rule-names.py#newcode16 > ...
8 years, 7 months ago (2012-04-30 21:36:24 UTC) #4
Nico
patch set 2 lgtm (not sure what the generators will make of a .X file, ...
8 years, 7 months ago (2012-04-30 21:37:37 UTC) #5
scottmg
On 2012/04/30 21:37:37, Nico wrote: > patch set 2 lgtm (not sure what the generators ...
8 years, 7 months ago (2012-04-30 21:39:22 UTC) #6
Nico
On 2012/04/30 21:39:22, scottmg wrote: > On 2012/04/30 21:37:37, Nico wrote: > > patch set ...
8 years, 7 months ago (2012-04-30 21:44:55 UTC) #7
Nico
(keeping stuff as is, that is)
8 years, 7 months ago (2012-04-30 21:45:09 UTC) #8
scottmg
On 2012/04/30 21:44:55, Nico wrote: > On 2012/04/30 21:39:22, scottmg wrote: > > On 2012/04/30 ...
8 years, 7 months ago (2012-04-30 21:47:36 UTC) #9
scottmg
it would seem the scons generator has the same bug: http://build.chromium.org/p/tryserver.nacl/builders/gyp-linux/builds/221 (does anyone actually use ...
8 years, 7 months ago (2012-05-01 16:07:23 UTC) #10
Nico
On 2012/05/01 16:07:23, scottmg wrote: > it would seem the scons generator has the same ...
8 years, 7 months ago (2012-05-01 16:10:06 UTC) #11
scottmg
On 2012/05/01 16:07:23, scottmg wrote: > it would seem the scons generator has the same ...
8 years, 7 months ago (2012-05-01 16:10:48 UTC) #12
scottmg
8 years, 7 months ago (2012-05-01 16:16:41 UTC) #13
On 2012/05/01 16:10:06, Nico wrote:
> On 2012/05/01 16:07:23, scottmg wrote:
> > it would seem the scons generator has the same bug:
> > http://build.chromium.org/p/tryserver.nacl/builders/gyp-linux/builds/221
> > 
> > (does anyone actually use the scons generator?)
> 
> Not as far as I know. Probably enough to do formats=['!scons']

Oh, that would have been easier. Oh well, next time it'll get the exclusion
treatment. http://chromiumcodereview.appspot.com/10263021/

Powered by Google App Engine
This is Rietveld 408576698