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

Side by Side Diff: build/gyp_environment.py

Issue 1237803003: Use msvs toolchain from depot_tools. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Adding a landmine Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/get_landmines.py ('k') | build/gyp_v8 » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 the V8 project authors. All rights reserved. 1 # Copyright 2015 the V8 project authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """ 5 """
6 Sets up various automatic gyp environment variables. These are used by 6 Sets up various automatic gyp environment variables. These are used by
7 gyp_v8 and landmines.py which run at different stages of runhooks. To 7 gyp_v8 and landmines.py which run at different stages of runhooks. To
8 make sure settings are consistent between them, all setup should happen here. 8 make sure settings are consistent between them, all setup should happen here.
9 """ 9 """
10 10
11 import os 11 import os
12 import sys 12 import sys
13 import vs_toolchain
13 14
14 SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__)) 15 SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
15 V8_ROOT = os.path.abspath(os.path.join(SCRIPT_DIR, os.pardir)) 16 V8_ROOT = os.path.abspath(os.path.join(SCRIPT_DIR, os.pardir))
16 17
17 18
18 def apply_gyp_environment(file_path=None): 19 def apply_gyp_environment(file_path=None):
19 """ 20 """
20 Reads in a *.gyp_env file and applies the valid keys to os.environ. 21 Reads in a *.gyp_env file and applies the valid keys to os.environ.
21 """ 22 """
22 if not file_path or not os.path.exists(file_path): 23 if not file_path or not os.path.exists(file_path):
(...skipping 20 matching lines...) Expand all
43 os.environ[var] = val 44 os.environ[var] = val
44 45
45 46
46 def set_environment(): 47 def set_environment():
47 """Sets defaults for GYP_* variables.""" 48 """Sets defaults for GYP_* variables."""
48 49
49 if 'SKIP_V8_GYP_ENV' not in os.environ: 50 if 'SKIP_V8_GYP_ENV' not in os.environ:
50 # Update the environment based on v8.gyp_env 51 # Update the environment based on v8.gyp_env
51 gyp_env_path = os.path.join(os.path.dirname(V8_ROOT), 'v8.gyp_env') 52 gyp_env_path = os.path.join(os.path.dirname(V8_ROOT), 'v8.gyp_env')
52 apply_gyp_environment(gyp_env_path) 53 apply_gyp_environment(gyp_env_path)
54 vs_toolchain.SetEnvironmentAndGetRuntimeDllDirs()
OLDNEW
« no previous file with comments | « build/get_landmines.py ('k') | build/gyp_v8 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698