mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
657 B
22 lines
657 B
#!/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*'
|
|
])
|
|
else:
|
|
print 'Skipping gcmole download as gcmole is not set in gyp flags.'
|
|
|