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

Issue 9298039: ninja: Support --toplevel-dir. (Closed)

Created:
8 years, 11 months ago by Nico
Modified:
8 years, 11 months ago
Reviewers:
Evan Martin
CC:
gyp-developer_googlegroups.com
Visibility:
Public.

Description

ninja: Support --toplevel-dir. Committed: https://code.google.com/p/gyp/source/detail?r=1185

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -4 lines) Patch
M pylib/gyp/generator/ninja.py View 1 chunk +1 line, -3 lines 0 comments Download
M test/toplevel-dir/gyptest-toplevel-dir.py View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
Nico
It looks like this is all it takes.
8 years, 11 months ago (2012-01-28 00:48:56 UTC) #1
Evan Martin
LGTM huh, so what does it mean? the dir where out/Foo is relative to?
8 years, 11 months ago (2012-01-28 02:58:42 UTC) #2
Nico
8 years, 11 months ago (2012-01-28 03:03:41 UTC) #3
On 2012/01/28 02:58:42, Evan Martin wrote:
> LGTM
> 
> huh, so what does it mean?  the dir where out/Foo is relative to?

The dir where out/ goes.

In a standalone webkit checkout, gyp_webkit is in

  Source/WebKit/chromium/gyp_webkit

That script calls gyp with --toplevel-dir=../../.. and --depth=.

Before this change, base_dir would be e.g. ../../WebCore/WebCore.gyp (because
the path was relative to ., which is Source/WebKit/chromium, and the gyp file
was in Source/WebCore/WebCore.gyp/WebCore.gyp). InvertRelativePath() would then
throw, because '..' is in that path.

After this change, base_dir is WebCore/WebCore.gyp, since it's now relative to
the root of the webkit checkout.

http://codereview.chromium.org/2122004 is the CL that added this to the make
build.

Powered by Google App Engine
This is Rietveld 408576698