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

Side by Side Diff: build/gyp_chromium.py

Issue 1759793003: Scripts to upload and update the mac toolchain. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Accept Xcode license Created 4 years, 9 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
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium 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 """This script is wrapper for Chromium that adds some support for how GYP 5 """This script is wrapper for Chromium that adds some support for how GYP
6 is invoked by Chromium beyond what can be done in the gclient hooks. 6 is invoked by Chromium beyond what can be done in the gclient hooks.
7 """ 7 """
8 8
9 import argparse 9 import argparse
10 import gc 10 import gc
11 import glob 11 import glob
12 import gyp_environment 12 import gyp_environment
13 import os 13 import os
14 import re 14 import re
15 import shlex 15 import shlex
16 import subprocess 16 import subprocess
17 import string 17 import string
18 import sys 18 import sys
19 import vs_toolchain 19 import vs_toolchain
20 import mac_toolchain
erikchen 2016/03/15 20:31:26 sort lexically, and in other files.
justincohen 2016/03/20 23:35:22 Done.
20 21
21 script_dir = os.path.dirname(os.path.realpath(__file__)) 22 script_dir = os.path.dirname(os.path.realpath(__file__))
22 chrome_src = os.path.abspath(os.path.join(script_dir, os.pardir)) 23 chrome_src = os.path.abspath(os.path.join(script_dir, os.pardir))
23 24
24 sys.path.insert(0, os.path.join(chrome_src, 'tools', 'gyp', 'pylib')) 25 sys.path.insert(0, os.path.join(chrome_src, 'tools', 'gyp', 'pylib'))
25 import gyp 26 import gyp
26 27
27 # Assume this file is in a one-level-deep subdirectory of the source root. 28 # Assume this file is in a one-level-deep subdirectory of the source root.
28 SRC_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 29 SRC_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
29 30
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 316
316 args.extend(['-D', 'gyp_output_dir=' + GetOutputDirectory()]) 317 args.extend(['-D', 'gyp_output_dir=' + GetOutputDirectory()])
317 318
318 if not use_analyzer: 319 if not use_analyzer:
319 print 'Updating projects from gyp files...' 320 print 'Updating projects from gyp files...'
320 sys.stdout.flush() 321 sys.stdout.flush()
321 322
322 # Off we go... 323 # Off we go...
323 gyp_rc = gyp.main(args) 324 gyp_rc = gyp.main(args)
324 325
326 mac_toolchain.SetEnvironment()
325 if not use_analyzer: 327 if not use_analyzer:
326 vs2013_runtime_dll_dirs = vs_toolchain.SetEnvironmentAndGetRuntimeDllDirs() 328 vs2013_runtime_dll_dirs = vs_toolchain.SetEnvironmentAndGetRuntimeDllDirs()
327 if vs2013_runtime_dll_dirs: 329 if vs2013_runtime_dll_dirs:
328 x64_runtime, x86_runtime = vs2013_runtime_dll_dirs 330 x64_runtime, x86_runtime = vs2013_runtime_dll_dirs
329 vs_toolchain.CopyVsRuntimeDlls( 331 vs_toolchain.CopyVsRuntimeDlls(
330 os.path.join(chrome_src, GetOutputDirectory()), 332 os.path.join(chrome_src, GetOutputDirectory()),
331 (x86_runtime, x64_runtime)) 333 (x86_runtime, x64_runtime))
332 334
333 sys.exit(gyp_rc) 335 sys.exit(gyp_rc)
334 336
335 if __name__ == '__main__': 337 if __name__ == '__main__':
336 sys.exit(main()) 338 sys.exit(main())
OLDNEW
« no previous file with comments | « build/OWNERS ('k') | build/gyp_environment.py » ('j') | build/mac_toolchain.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698