summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorbradnelson@google.com <bradnelson@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-18 00:03:17 +0000
committerbradnelson@google.com <bradnelson@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-18 00:03:17 +0000
commit89e43f65817fe18cdee2e4b740ea874e6b0dc74f (patch)
tree72f66ed2a3f6c949cf7e8c51fb636eb225b42ef2 /build
parent669752e79054024b4ca87294582dc596892bf965 (diff)
downloadchromium_src-89e43f65817fe18cdee2e4b740ea874e6b0dc74f.zip
chromium_src-89e43f65817fe18cdee2e4b740ea874e6b0dc74f.tar.gz
chromium_src-89e43f65817fe18cdee2e4b740ea874e6b0dc74f.tar.bz2
Adding native client toolchain download to all chrome checkouts with nacl.
This will eventually allow ppapi_proxy + irt to be built along with chrome, allow repository migration. Step2 of ppapi repo migration. BUG=None TEST=None R=noelallen@google.com,brettw@chromium.org Review URL: http://codereview.chromium.org/7670019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97242 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r--build/download_nacl_toolchains.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/build/download_nacl_toolchains.py b/build/download_nacl_toolchains.py
new file mode 100644
index 0000000..c096b5e
--- /dev/null
+++ b/build/download_nacl_toolchains.py
@@ -0,0 +1,29 @@
+#!/usr/bin/python
+# Copyright (c) 2011 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""Shim to run nacl toolchain download script only if there is a nacl dir."""
+
+import os
+import sys
+
+
+def Main():
+ script_dir = os.path.dirname(os.path.abspath(__file__))
+ src_dir = os.path.dirname(script_dir)
+ nacl_dir = os.path.join(src_dir, 'native_client')
+ nacl_build_dir = os.path.join(nacl_dir, 'build')
+ download_script = os.path.join(nacl_build_dir, 'download_toolchains.py')
+ if not os.path.exists(download_script):
+ print "Can't find '%s'" % download_script
+ print 'Presumably you are intentionally building without NativeClient.'
+ print 'Skipping NativeClient toolchain download.'
+ sys.exit(0)
+ sys.path.insert(0, nacl_build_dir)
+ import download_toolchains
+ download_toolchains.Main()
+
+
+if __name__ == '__main__':
+ Main()