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

Issue 4705001: Add support for a .gyp_env so you don't have to set a bunch of independent... (Closed)

Created:
10 years, 1 month ago by TVL
Modified:
9 years, 7 months ago
Reviewers:
Mark Mentovai
CC:
chromium-reviews
Visibility:
Public.

Description

Add support for a chromium.gyp_env at the top of the tree (peer of src) so you don't have to set a bunch of independent variables and can instead set things in a group per tree. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=65408

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 8

Patch Set 4 : '' #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -0 lines) Patch
M build/gyp_chromium View 1 2 3 2 chunks +30 lines, -0 lines 4 comments Download

Messages

Total messages: 8 (0 generated)
TVL
10 years, 1 month ago (2010-11-08 18:39:33 UTC) #1
TVL
http://codereview.chromium.org/4705001/diff/1/2 File build/gyp_chromium (right): http://codereview.chromium.org/4705001/diff/1/2#newcode80 build/gyp_chromium:80: gyp_env_path = os.path.join(chrome_src, '.gyp_env') this makes the file src/.gyp_env, ...
10 years, 1 month ago (2010-11-08 18:42:47 UTC) #2
TVL
added env var to skip the file (for debugging, etc.)
10 years, 1 month ago (2010-11-08 19:06:37 UTC) #3
TVL
Went ahead and moved the file outside the src tree. Also made the error report ...
10 years, 1 month ago (2010-11-08 19:18:17 UTC) #4
Mark Mentovai
The CL description should contain some sort of reference to src so that people will ...
10 years, 1 month ago (2010-11-08 19:44:24 UTC) #5
Mark Mentovai
10 years, 1 month ago (2010-11-08 19:44:28 UTC) #6
TVL
description also updated. http://codereview.chromium.org/4705001/diff/7002/9001 File build/gyp_chromium (right): http://codereview.chromium.org/4705001/diff/7002/9001#newcode33 build/gyp_chromium:33: except Exception, e: On 2010/11/08 19:44:24, ...
10 years, 1 month ago (2010-11-08 19:49:43 UTC) #7
Mark Mentovai
10 years, 1 month ago (2010-11-08 19:58:21 UTC) #8
LG otherwise

http://codereview.chromium.org/4705001/diff/14001/15001
File build/gyp_chromium (right):

http://codereview.chromium.org/4705001/diff/14001/15001#newcode1
build/gyp_chromium:1: #!/usr/bin/python
CL description:
> Add support for a chromium.gyp_env at the top of the tree (per of src) so you

per -> peer

> don't have to set a bunch of independent variables and can instead set
> things in a group per tree.

http://codereview.chromium.org/4705001/diff/14001/15001#newcode23
build/gyp_chromium:23: Reads in a *.gyp_env and applies the valid keys to
os.environ.
*.gyp_env file.

http://codereview.chromium.org/4705001/diff/14001/15001#newcode42
build/gyp_chromium:42: if existing_value:
I would prefer not overwriting existing values at all. The ' '-append may not be
right, and even for things that are properly handled by ' '-appending, doing an
append may not be right given the values involved.

http://codereview.chromium.org/4705001/diff/14001/15001#newcode80
build/gyp_chromium:80: # Update the environment based on .gyp_env
chromium.gyp_env.

Powered by Google App Engine
This is Rietveld 408576698