Import build env from VS 2015

This commit is contained in:
Cheng Zhao 2016-05-10 12:44:56 +09:00
parent 73223fe5c3
commit 2497c73009
4 changed files with 94 additions and 3 deletions

View file

@ -5,7 +5,8 @@ import os
import subprocess
import sys
from lib.util import atom_gyp
from lib.config import get_target_arch
from lib.util import atom_gyp, import_vs_env
CONFIGURATIONS = ['Release', 'Debug']
@ -15,6 +16,9 @@ SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
def main():
os.chdir(SOURCE_ROOT)
# Update the VS build env.
import_vs_env(get_target_arch())
ninja = os.path.join('vendor', 'depot_tools', 'ninja')
if sys.platform == 'win32':
ninja += '.exe'