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

Side by Side Diff: build/download_nacl_toolchains.py

Issue 8820022: Don't download the NaCl toolchain if GYP_DEFINES contains disable_nacl=1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 | Annotate | Revision Log
« 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 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2011 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 """Shim to run nacl toolchain download script only if there is a nacl dir.""" 6 """Shim to run nacl toolchain download script only if there is a nacl dir."""
7 7
8 import os 8 import os
9 import sys 9 import sys
10 10
11 11
12 def Main(args): 12 def Main(args):
13 # Exit early if disable_nacl=1.
14 if 'disable_nacl=1' in os.environ.get('GYP_DEFINES', ''):
bradn 2011/12/06 18:36:16 How about 'disable_nacl=1' in os.environ.get('GYP_
jochen (gone - plz use gerrit) 2011/12/06 18:40:51 I don't feel strongly about this, I just duplicate
15 return 0
13 # Handle chromeos=1 specially (until its building its own toolchain). 16 # Handle chromeos=1 specially (until its building its own toolchain).
14 if 'chromeos=1' in os.environ.get('GYP_DEFINES', ''): 17 if 'chromeos=1' in os.environ.get('GYP_DEFINES', ''):
15 args = [ 18 args = [
16 '--nacl-newlib-only', 19 '--nacl-newlib-only',
17 '--file-hash', 'linux_x86_newlib', 20 '--file-hash', 'linux_x86_newlib',
18 '1deb316302fde89a2200dff6550cf510ae90b89b', 21 '1deb316302fde89a2200dff6550cf510ae90b89b',
19 '--base-url', ('https://commondatastorage.googleapis.com/' 22 '--base-url', ('https://commondatastorage.googleapis.com/'
20 'nativeclient-archive2/special_chromeos'), 23 'nativeclient-archive2/special_chromeos'),
21 '--x86-version', '7258', 24 '--x86-version', '7258',
22 ] 25 ]
(...skipping 11 matching lines...) Expand all
34 print 'Skipping NativeClient toolchain download.' 37 print 'Skipping NativeClient toolchain download.'
35 sys.exit(0) 38 sys.exit(0)
36 sys.path.insert(0, nacl_build_dir) 39 sys.path.insert(0, nacl_build_dir)
37 import download_toolchains 40 import download_toolchains
38 download_toolchains.Main(args) 41 download_toolchains.Main(args)
39 return 0 42 return 0
40 43
41 44
42 if __name__ == '__main__': 45 if __name__ == '__main__':
43 sys.exit(Main(sys.argv[1:])) 46 sys.exit(Main(sys.argv[1:]))
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