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

Side by Side Diff: build/download_nacl_toolchains.py

Issue 7670019: Adding native client toolchain download to all chrome checkouts with nacl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « DEPS ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:executable
+ *
OLDNEW
(Empty)
1 #!/usr/bin/python
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
4 # found in the LICENSE file.
5
6 """Shim to run nacl toolchain download script only if there is a nacl dir."""
7
8 import os
9 import sys
10
11
12 def Main():
13 script_dir = os.path.dirname(os.path.abspath(__file__))
14 src_dir = os.path.dirname(script_dir)
15 nacl_dir = os.path.join(src_dir, 'native_client')
16 nacl_build_dir = os.path.join(nacl_dir, 'build')
17 download_script = os.path.join(nacl_build_dir, 'download_toolchains.py')
18 if not os.path.exists(download_script):
19 print "Can't find '%s'" % download_script
20 print 'Presumably you are intentionally building without NativeClient.'
21 print 'Skipping NativeClient toolchain download.'
22 sys.exit(0)
23 sys.path.insert(0, nacl_build_dir)
24 import download_toolchains
25 download_toolchains.Main()
26
27
28 if __name__ == '__main__':
29 Main()
OLDNEW
« no previous file with comments | « DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698