diff options
-rw-r--r-- | DEPS | 12 | ||||
-rw-r--r-- | build/download_nacl_irt.py | 2 |
2 files changed, 13 insertions, 1 deletions
@@ -7,6 +7,9 @@ vars = { "webkit_revision": "84939", "chromium_git": "http://git.chromium.org/git", "swig_revision": "69281", + # These hashes need to be updated when nacl_revision is changed. + "nacl_irt_hash_x86_32": "22aa515c504417708751f081f4b4325c0cebb1c7", + "nacl_irt_hash_x86_64": "3f345b96ba52220f404140d73f75d5443818774a", "nacl_revision": "5062", "nacl_tools_revision": "5025", "libjingle_revision": "55", @@ -356,4 +359,13 @@ hooks = [ "pattern": ".", "action": ["python", "src/build/gyp_chromium"], }, + { + # This downloads binaries for Native Client's integrated runtime (IRT) + # library, which is built as NaCl untrusted code. + "pattern": ".", + "action": ["python", "src/build/download_nacl_irt.py", + "--nacl_revision", Var("nacl_revision"), + "--file_hash", "x86_32", Var("nacl_irt_hash_x86_32"), + "--file_hash", "x86_64", Var("nacl_irt_hash_x86_64")], + }, ] diff --git a/build/download_nacl_irt.py b/build/download_nacl_irt.py index 35bcb9a..0f6ead4 100644 --- a/build/download_nacl_irt.py +++ b/build/download_nacl_irt.py @@ -163,7 +163,7 @@ def Main(): dest_dir = os.path.join(nacl_dir, 'irt_binaries') if not os.path.exists(dest_dir): os.makedirs(dest_dir) - dest_path = os.path.join(dest_dir, 'irt_%s.nexe' % arch) + dest_path = os.path.join(dest_dir, 'nacl_irt_%s.nexe' % arch) DownloadFileWithRetry(dest_path, url) downloaded_hash = HashFile(dest_path) if downloaded_hash != expected_hash: |