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

Side by Side Diff: build/gyp_chromium.py

Issue 1416223004: Add 'build' directory to import path of gyp_chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
(...skipping 22 matching lines...) Expand all
33 sys.path.insert(1, os.path.join(chrome_src, 'chrome', 'tools', 'build')) 33 sys.path.insert(1, os.path.join(chrome_src, 'chrome', 'tools', 'build'))
34 sys.path.insert(1, os.path.join(chrome_src, 'chromecast', 'tools', 'build')) 34 sys.path.insert(1, os.path.join(chrome_src, 'chromecast', 'tools', 'build'))
35 sys.path.insert(1, os.path.join(chrome_src, 'ios', 'chrome', 'tools', 'build')) 35 sys.path.insert(1, os.path.join(chrome_src, 'ios', 'chrome', 'tools', 'build'))
36 sys.path.insert(1, os.path.join(chrome_src, 'native_client', 'build')) 36 sys.path.insert(1, os.path.join(chrome_src, 'native_client', 'build'))
37 sys.path.insert(1, os.path.join(chrome_src, 'native_client_sdk', 'src', 37 sys.path.insert(1, os.path.join(chrome_src, 'native_client_sdk', 'src',
38 'build_tools')) 38 'build_tools'))
39 sys.path.insert(1, os.path.join(chrome_src, 'remoting', 'tools', 'build')) 39 sys.path.insert(1, os.path.join(chrome_src, 'remoting', 'tools', 'build'))
40 sys.path.insert(1, os.path.join(chrome_src, 'third_party', 'liblouis')) 40 sys.path.insert(1, os.path.join(chrome_src, 'third_party', 'liblouis'))
41 sys.path.insert(1, os.path.join(chrome_src, 'third_party', 'WebKit', 41 sys.path.insert(1, os.path.join(chrome_src, 'third_party', 'WebKit',
42 'Source', 'build', 'scripts')) 42 'Source', 'build', 'scripts'))
43 sys.path.insert(1, os.path.join(chrome_src, 'build'))
43 sys.path.insert(1, os.path.join(chrome_src, 'tools')) 44 sys.path.insert(1, os.path.join(chrome_src, 'tools'))
44 sys.path.insert(1, os.path.join(chrome_src, 'tools', 'generate_shim_headers')) 45 sys.path.insert(1, os.path.join(chrome_src, 'tools', 'generate_shim_headers'))
45 sys.path.insert(1, os.path.join(chrome_src, 'tools', 'grit')) 46 sys.path.insert(1, os.path.join(chrome_src, 'tools', 'grit'))
46 47
47 # On Windows, Psyco shortens warm runs of build/gyp_chromium by about 48 # On Windows, Psyco shortens warm runs of build/gyp_chromium by about
48 # 20 seconds on a z600 machine with 12 GB of RAM, from 90 down to 70 49 # 20 seconds on a z600 machine with 12 GB of RAM, from 90 down to 70
49 # seconds. Conversely, memory usage of build/gyp_chromium with Psyco 50 # seconds. Conversely, memory usage of build/gyp_chromium with Psyco
50 # maxes out at about 158 MB vs. 132 MB without it. 51 # maxes out at about 158 MB vs. 132 MB without it.
51 # 52 #
52 # Psyco uses native libraries, so we need to load a different 53 # Psyco uses native libraries, so we need to load a different
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 if vs2013_runtime_dll_dirs: 327 if vs2013_runtime_dll_dirs:
327 x64_runtime, x86_runtime = vs2013_runtime_dll_dirs 328 x64_runtime, x86_runtime = vs2013_runtime_dll_dirs
328 vs_toolchain.CopyVsRuntimeDlls( 329 vs_toolchain.CopyVsRuntimeDlls(
329 os.path.join(chrome_src, GetOutputDirectory()), 330 os.path.join(chrome_src, GetOutputDirectory()),
330 (x86_runtime, x64_runtime)) 331 (x86_runtime, x64_runtime))
331 332
332 sys.exit(gyp_rc) 333 sys.exit(gyp_rc)
333 334
334 if __name__ == '__main__': 335 if __name__ == '__main__':
335 sys.exit(main()) 336 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698