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

Issue 10228016: ninja windows: fix expansion of some VS macros (Closed)

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

Description

ninja windows: fix expansion of some VS macros Fix expansion of $(OutDir). Also, make sure there's no redundant path contents (.., etc.) when expanding VS macros + gyp variables in the paths. Ninja can be more efficient if it doesn't need to re-canonicalize paths. (removed the 'normalization' of converting to lower case that was previously in this CL) R=thakis@chromium.org Committed: https://code.google.com/p/gyp/source/detail?r=1343

Patch Set 1 #

Total comments: 10

Patch Set 2 : review fixes, simplify path relativization. still not fully correct #

Patch Set 3 : add (breaking) test, remove reldir #

Patch Set 4 : fix $(OutDir) for actions #

Patch Set 5 : remove _WinCase/wincase #

Patch Set 6 : remove case normalization #

Patch Set 7 : refactor test to not include case normalization #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -15 lines) Patch
M pylib/gyp/generator/ninja.py View 1 2 3 4 5 5 chunks +8 lines, -8 lines 0 comments Download
M pylib/gyp/msvs_emulation.py View 1 2 3 4 5 6 4 chunks +7 lines, -7 lines 0 comments Download
A test/ninja/normalize-paths-win/gyptest-normalize-paths.py View 1 2 3 4 5 6 1 chunk +42 lines, -0 lines 0 comments Download
A test/ninja/normalize-paths-win/hello.cc View 1 chunk +7 lines, -0 lines 0 comments Download
A test/ninja/normalize-paths-win/normalize-paths.gyp View 1 1 chunk +56 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
scottmg
8 years, 8 months ago (2012-04-25 22:20:09 UTC) #1
scottmg
Hmm, breaks some stuff. Ignore me for now!
8 years, 8 months ago (2012-04-25 23:14:10 UTC) #2
Nico
Too late! http://chromiumcodereview.appspot.com/10228016/diff/1/pylib/gyp/generator/ninja.py File pylib/gyp/generator/ninja.py (right): http://chromiumcodereview.appspot.com/10228016/diff/1/pylib/gyp/generator/ninja.py#newcode203 pylib/gyp/generator/ninja.py:203: def _WinCase(self, path): Method name is improvable, ...
8 years, 8 months ago (2012-04-25 23:18:23 UTC) #3
M-A Ruel
I'd prefer you to use the real file case instead of normalizing to lower case. ...
8 years, 8 months ago (2012-04-26 01:08:49 UTC) #4
scottmg
http://chromiumcodereview.appspot.com/10228016/diff/1/pylib/gyp/generator/ninja.py File pylib/gyp/generator/ninja.py (right): http://chromiumcodereview.appspot.com/10228016/diff/1/pylib/gyp/generator/ninja.py#newcode203 pylib/gyp/generator/ninja.py:203: def _WinCase(self, path): On 2012/04/25 23:18:23, Nico wrote: > ...
8 years, 8 months ago (2012-04-26 03:06:46 UTC) #5
scottmg
On 2012/04/26 01:08:49, Marc-Antoine Ruel wrote: > I'd prefer you to use the real file ...
8 years, 8 months ago (2012-04-26 03:56:37 UTC) #6
M-A Ruel
On 2012/04/26 03:56:37, scottmg wrote: > On 2012/04/26 01:08:49, Marc-Antoine Ruel wrote: > > I'd ...
8 years, 8 months ago (2012-04-26 15:57:40 UTC) #7
scottmg
Removed case normalization from this CL, just kept the fixes to expansion of VS vars ...
8 years, 8 months ago (2012-04-27 17:37:22 UTC) #8
Nico
The code looks ok. Can you update the CL description with a "why" part?
8 years, 8 months ago (2012-04-27 17:41:37 UTC) #9
scottmg
On 2012/04/27 17:41:37, Nico wrote: > The code looks ok. Can you update the CL ...
8 years, 8 months ago (2012-04-27 17:47:22 UTC) #10
Nico
8 years, 8 months ago (2012-04-27 23:03:23 UTC) #11
LGTM

CL description still not great (no numbers on how much the perf win is), but not
worth blocking this on.

Powered by Google App Engine
This is Rietveld 408576698