Commit 1554e2d7 authored by Michael Achenbach's avatar Michael Achenbach Committed by Commit Bot

[build] Download gcmole and jsfunfuzz controlled by gclient flag

The corresponding gclient variables are set now via:
https://crrev.com/c/913368

Bug: chromium:772804
Change-Id: I9c96bde3e6cc88d84a320c00d3316a91c48749f7
Reviewed-on: https://chromium-review.googlesource.com/913351Reviewed-by: 's avatarSergiy Byelozyorov <sergiyb@chromium.org>
Commit-Queue: Michael Achenbach <machenbach@chromium.org>
Cr-Commit-Position: refs/heads/master@{#51240}
parent 5460f7f7
......@@ -6,6 +6,8 @@ vars = {
'build_for_node': False,
'checkout_instrumented_libraries': False,
'chromium_url': 'https://chromium.googlesource.com',
'download_gcmole': False,
'download_jsfunfuzz': False,
'download_mips_toolchain': False,
}
......@@ -136,21 +138,23 @@ hooks = [
{
'name': 'gcmole',
'pattern': '.',
'condition': 'build_for_node != True',
# TODO(machenbach): Insert condition and remove GYP_DEFINES dependency.
'action': [
'python',
'v8/tools/gcmole/download_gcmole_tools.py',
'condition': 'download_gcmole',
'action': [ 'download_from_google_storage',
'--bucket', 'chrome-v8-gcmole',
'-u', '--no_resume',
'-s', 'v8/tools/gcmole/gcmole-tools.tar.gz.sha1',
'--platform=linux*',
],
},
{
'name': 'jsfunfuzz',
'pattern': '.',
'condition': 'build_for_node != True',
# TODO(machenbach): Insert condition and remove GYP_DEFINES dependency.
'action': [
'python',
'v8/tools/jsfunfuzz/download_jsfunfuzz.py',
'condition': 'download_jsfunfuzz',
'action': [ 'download_from_google_storage',
'--bucket', 'chrome-v8-jsfunfuzz',
'-u', '--no_resume',
'-s', 'v8/tools/jsfunfuzz/jsfunfuzz.tar.gz.sha1',
'--platform=linux*',
],
},
# Pull luci-go binaries (isolate, swarming) using checked-in hashes.
......
#!/usr/bin/env python
# Copyright 2016 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
import re
import subprocess
GCMOLE_PATH = os.path.dirname(os.path.abspath(__file__))
SHA1_PATH = os.path.join(GCMOLE_PATH, 'gcmole-tools.tar.gz.sha1')
if re.search(r'\bgcmole=1', os.environ.get('GYP_DEFINES', '')):
subprocess.check_call([
'download_from_google_storage',
'-b', 'chrome-v8-gcmole',
'-u', '--no_resume',
'-s', SHA1_PATH,
'--platform=linux*'
])
#!/usr/bin/env python
# Copyright 2016 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
import re
import subprocess
FUZZ_PATH = os.path.dirname(os.path.abspath(__file__))
SHA1_PATH = os.path.join(FUZZ_PATH, 'jsfunfuzz.tar.gz.sha1')
if re.search(r'\bjsfunfuzz=1', os.environ.get('GYP_DEFINES', '')):
subprocess.check_call([
'download_from_google_storage',
'-b', 'chrome-v8-jsfunfuzz',
'-u', '--no_resume',
'-s', SHA1_PATH,
'--platform=linux*'
])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment