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

Side by Side Diff: build/vs_toolchain.py

Issue 1418513007: Move find_depot_tools.py to build/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review fixes Created 5 years, 2 months 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/find_depot_tools.py ('k') | chrome/browser/web_dev_style/closure_lint_test.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2014 The Chromium Authors. All rights reserved. 2 # Copyright 2014 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import json 6 import json
7 import os 7 import os
8 import pipes 8 import pipes
9 import shutil 9 import shutil
10 import subprocess 10 import subprocess
11 import sys 11 import sys
12 12
13 13
14 script_dir = os.path.dirname(os.path.realpath(__file__)) 14 script_dir = os.path.dirname(os.path.realpath(__file__))
15 chrome_src = os.path.abspath(os.path.join(script_dir, os.pardir)) 15 chrome_src = os.path.abspath(os.path.join(script_dir, os.pardir))
16 SRC_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 16 SRC_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
17 sys.path.insert(1, os.path.join(chrome_src, 'tools'))
18 sys.path.insert(0, os.path.join(chrome_src, 'tools', 'gyp', 'pylib')) 17 sys.path.insert(0, os.path.join(chrome_src, 'tools', 'gyp', 'pylib'))
19 json_data_file = os.path.join(script_dir, 'win_toolchain.json') 18 json_data_file = os.path.join(script_dir, 'win_toolchain.json')
20 19
21 20
22 import gyp 21 import gyp
23 22
24 23
25 def SetEnvironmentAndGetRuntimeDllDirs(): 24 def SetEnvironmentAndGetRuntimeDllDirs():
26 """Sets up os.environ to use the depot_tools VS toolchain with gyp, and 25 """Sets up os.environ to use the depot_tools VS toolchain with gyp, and
27 returns the location of the VS runtime DLLs so they can be copied into 26 returns the location of the VS runtime DLLs so they can be copied into
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 'copy_dlls': CopyDlls, 256 'copy_dlls': CopyDlls,
258 } 257 }
259 if len(sys.argv) < 2 or sys.argv[1] not in commands: 258 if len(sys.argv) < 2 or sys.argv[1] not in commands:
260 print >>sys.stderr, 'Expected one of: %s' % ', '.join(commands) 259 print >>sys.stderr, 'Expected one of: %s' % ', '.join(commands)
261 return 1 260 return 1
262 return commands[sys.argv[1]](*sys.argv[2:]) 261 return commands[sys.argv[1]](*sys.argv[2:])
263 262
264 263
265 if __name__ == '__main__': 264 if __name__ == '__main__':
266 sys.exit(main()) 265 sys.exit(main())
OLDNEW
« no previous file with comments | « build/find_depot_tools.py ('k') | chrome/browser/web_dev_style/closure_lint_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698