Remove Dartium for TIP of origin/master

TBR=alanknight@google.com

Review-Url: https://codereview.chromium.org/2976303002 .
This commit is contained in:
Terry Lucas 2017-07-18 06:53:23 -07:00
parent f13e0a6cff
commit 8c91844ee6
21 changed files with 0 additions and 4439 deletions

View file

@ -1,188 +0,0 @@
#!/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.
import glob
import optparse
import os
import shutil
import sys
import utils
HOST_OS = utils.guessOS()
if HOST_OS == 'mac':
CONTENTSHELL_FILES = ['Content Shell.app', 'ffmpegsumo.so', 'osmesa.so',
'lib']
CHROMEDRIVER_FILES = ['chromedriver']
elif HOST_OS == 'linux':
CONTENTSHELL_FILES = ['content_shell', 'content_shell.pak', 'fonts.conf',
'libblink_test_plugin.so', 'libffmpegsumo.so',
'libosmesa.so', 'lib', 'icudtl.dat', 'AHEM____.TTF',
'GardinerModBug.ttf', 'GardinerModCat.ttf',
'natives_blob.bin']
CHROMEDRIVER_FILES = ['chromedriver']
elif HOST_OS == 'win':
# TODO: provide proper list.
CONTENTSHELL_FILES = ['content_shell.exe', 'AHEM____.ttf', 'icudtl.dat', ]
CHROMEDRIVER_FILES = ['chromedriver.exe']
else:
raise Exception('Unsupported platform')
# Append a file with size of the snapshot.
CONTENTSHELL_FILES.append('snapshot-size.txt')
def GenerateDartiumFileList(mode, srcpath):
def blacklisted(name):
# We include everything if this is a debug build.
if mode.lower() == 'debug':
return True
else:
# We don't include .debug/.pdb files if this is a release build.
if name.endswith('.debug') or name.endswith('.pdb'):
return False
return True
configFile = os.path.join(srcpath, 'chrome', 'tools', 'build', HOST_OS,
'FILES.cfg')
configNamespace = {}
execfile(configFile, configNamespace)
fileList = [file['filename'] for file in configNamespace['FILES']]
# The debug version of dartium on our bots build with
# 'component=shared_library', so we need to include all libraries
# (i.e. 'lib/*.so) as we do on the CONTENTSHELL_FILES list above.
if HOST_OS == 'linux' and mode.lower() == 'debug':
fileList.append('lib')
# Filter out files we've blacklisted and don't want to include.
fileList = filter(blacklisted, fileList)
return fileList
def GenerateContentShellFileList(srcpath):
return CONTENTSHELL_FILES
def GenerateChromeDriverFileList(srcpath):
return CHROMEDRIVER_FILES
def ZipDir(zipFile, directory):
if HOST_OS == 'win':
cmd = os.path.normpath(os.path.join(
os.path.dirname(__file__),
'../../../third_party/lzma_sdk/Executable/7za.exe'))
options = ['a', '-r', '-tzip']
else:
cmd = 'zip'
options = ['-yr']
utils.runCommand([cmd] + options + [zipFile, directory])
def GenerateZipFile(zipFile, stageDir, fileList):
# Stage files.
for fileName in fileList:
fileName = fileName.rstrip(os.linesep)
targetName = os.path.join(stageDir, fileName)
try:
targetDir = os.path.dirname(targetName)
if not os.path.exists(targetDir):
os.makedirs(targetDir)
if os.path.isdir(fileName):
# TODO: This is a hack to handle duplicates on the fileList of the
# form: [ 'lib/foo.so', 'lib' ]
if os.path.exists(targetName) and os.path.isdir(targetName):
shutil.rmtree(targetName)
shutil.copytree(fileName, targetName)
elif os.path.exists(fileName):
shutil.copy2(fileName, targetName)
except:
import traceback
print 'Troubles processing %s [cwd=%s]: %s' % (fileName, os.getcwd(), traceback.format_exc())
ZipDir(zipFile, stageDir)
def StageAndZip(fileList, target):
if not target:
return None
stageDir = target
zipFile = stageDir + '.zip'
# Cleanup old files.
if os.path.exists(stageDir):
shutil.rmtree(stageDir)
os.mkdir(stageDir)
revision = target.split('-')[-1]
oldFiles = glob.glob(target.replace(revision, '*.zip'))
for oldFile in oldFiles:
os.remove(oldFile)
GenerateZipFile(zipFile, stageDir, fileList)
print 'last change: %s' % (zipFile)
# Clean up. Buildbot disk space is limited.
shutil.rmtree(stageDir)
return zipFile
def Archive(srcpath, mode, dartium_target, contentshell_target,
chromedriver_target):
# We currently build using ninja on mac debug.
if HOST_OS == 'mac':
releaseDir = os.path.join(srcpath, 'out', mode)
# Also package dynamic libraries.
extra_files = [file for file in os.listdir(releaseDir) if file.endswith('.dylib')]
elif HOST_OS == 'linux':
releaseDir = os.path.join(srcpath, 'out', mode)
extra_files = []
elif HOST_OS == 'win':
releaseDir = os.path.join(srcpath, 'out', mode)
# issue(16760) - we _need_ to fix our parsing of the FILES.cfg
extra_files = [file for file in os.listdir(releaseDir) if file.endswith('manifest')]
else:
raise Exception('Unsupported platform')
os.chdir(releaseDir)
dartium_zip = StageAndZip(
GenerateDartiumFileList(mode, srcpath) + extra_files, dartium_target)
contentshell_zip = StageAndZip(GenerateContentShellFileList(srcpath) + extra_files,
contentshell_target)
chromedriver_zip = StageAndZip(GenerateChromeDriverFileList(srcpath) + extra_files,
chromedriver_target)
return (dartium_zip, contentshell_zip, chromedriver_zip)
def main():
pathname = os.path.dirname(sys.argv[0])
fullpath = os.path.abspath(pathname)
srcpath = os.path.join(fullpath, '..', '..', '..')
parser = optparse.OptionParser()
parser.add_option('--dartium', dest='dartium',
action='store', type='string',
help='dartium archive name')
parser.add_option('--contentshell', dest='contentshell',
action='store', type='string',
help='content shell archive name')
parser.add_option('--chromedriver', dest='chromedriver',
action='store', type='string',
help='chromedriver archive name')
parser.add_option('--mode', dest='mode',
default='Release',
action='store', type='string',
help='(Release|Debug)')
(options, args) = parser.parse_args()
Archive(srcpath, options.mode, options.dartium, options.contentshell,
options.chromedriver)
return 0
if __name__ == '__main__':
sys.exit(main())

View file

@ -1,57 +0,0 @@
#!/usr/bin/env python
#
# Copyright 2010 Google Inc. All Rights Reserved.
# This file is used by the buildbot.
import optparse
import os.path
import utils
ALL_TARGETS = [
'content_shell',
'chrome',
'blink_tests',
'chromedriver'
]
def main():
parser = optparse.OptionParser()
parser.add_option('--target', dest='target',
default='all',
action='store', type='string',
help='Target (%s)' % ', '.join(ALL_TARGETS))
parser.add_option('--mode', dest='mode',
action='store', type='string',
help='Build mode (Debug or Release)')
parser.add_option('--clobber', dest='clobber',
action='store_true',
help='Clobber the output directory')
parser.add_option('-j', '--jobs', dest='jobs',
action='store',
help='Number of jobs')
(options, args) = parser.parse_args()
mode = options.mode
if options.jobs:
jobs = options.jobs
else:
jobs = utils.guessCpus()
if not (mode in ['Debug', 'Release']):
raise Exception('Invalid build mode')
if options.target == 'all':
targets = ALL_TARGETS
else:
targets = [options.target]
if options.clobber:
utils.runCommand(['rm', '-rf', 'out'])
utils.runCommand(['ninja',
'-j%s' % jobs,
'-C',
os.path.join('out', mode)]
+ targets)
if __name__ == '__main__':
main()

View file

@ -1,125 +0,0 @@
#!/usr/bin/python
# Copyright (c) 2014 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.
"""Dartium buildbot steps
Archive dartium, content_shell, and chromedriver to the cloud storage bucket
gs://dart-archive, and run tests, including the Dart layout tests.
"""
import imp
import os
import platform
import re
import shutil
import subprocess
import sys
import dartium_bot_utils
import upload_steps
import utils
SRC_PATH = dartium_bot_utils.srcPath()
DART_PATH = os.path.join(SRC_PATH, 'dart')
# We limit testing on drt since it takes a long time to run.
DRT_FILTER = 'html'
def RunDartTests(mode, component, suite, arch, checked, test_filter=None):
"""Runs tests using the Dart test.py or the layout test runner.
"""
cmd = []
if sys.platform.startswith('linux'):
cmd = ['xvfb-run', '--server-args=-screen 0 1024x768x24','-a']
cmd.append(sys.executable)
script = os.path.join(DART_PATH, 'tools', 'dartium', 'test.py')
cmd.append(script)
cmd.append('--buildbot')
cmd.append('--mode=' + mode)
cmd.append('--component=' + component)
cmd.append('--suite=' + suite)
cmd.append('--arch=' + arch)
cmd.append('--' + checked)
cmd.append('--no-show-results')
if test_filter:
cmd.append('--test-filter=' + test_filter)
status = subprocess.call(cmd)
if status != 0:
print '@@@STEP_FAILURE@@@'
return status
def ClearTemp():
if platform.system() == 'Windows':
shutil.rmtree('C:\\Users\\chrome-bot\\AppData\\Local\\Temp',
ignore_errors=True)
def Test(info, component, suite, checked, test_filter=None):
"""Test a particular component (e.g., dartium or content_shell(drt)).
"""
print '@@@BUILD_STEP %s_%s_%s_tests@@@' % (component, suite, checked)
sys.stdout.flush()
layout_test_results_dir = os.path.join(SRC_PATH, 'webkit', info.mode,
'layout-test-results')
shutil.rmtree(layout_test_results_dir, ignore_errors=True)
status = RunDartTests(info.mode, component, suite, info.arch, checked,
test_filter=test_filter)
# Archive test failures
if suite == 'layout' and status != 0:
upload_steps.UploadDartTestsResults(layout_test_results_dir,
info.name,
info.version,
component, checked)
ClearTemp()
return status
def main():
# We need to chdir() to src/dart in order to get the correct revision number.
with utils.ChangedWorkingDirectory(DART_PATH):
dart_tools_utils = imp.load_source('dart_tools_utils',
os.path.join('tools', 'utils.py'))
dart_revision = dart_tools_utils.GetArchiveVersion()
version = '%s.0' % dart_revision
info = upload_steps.BuildInfo(dart_revision, version)
result = 0
# Archive to the revision bucket
result = upload_steps.ArchiveAndUpload(info, archive_latest=False)
# On dev/stable we archive to the latest bucket as well
if info.channel != 'be':
result = (upload_steps.ArchiveAndUpload(info, archive_latest=True)
or result)
# Run layout tests
if info.mode == 'Release' or platform.system() != 'Darwin':
result = Test(info, 'drt', 'layout', 'unchecked') or result
result = Test(info, 'drt', 'layout', 'checked') or result
# Run dartium tests
result = Test(info, 'dartium', 'core', 'unchecked') or result
result = Test(info, 'dartium', 'core', 'checked') or result
# Run ContentShell tests
# NOTE: We don't run ContentShell tests on dartium-*-inc builders to keep
# cycle times down.
if not info.is_incremental:
# If we run all checked tests on dartium, we restrict the number of
# unchecked tests on drt to DRT_FILTER
result = Test(info, 'drt', 'core', 'unchecked',
test_filter=DRT_FILTER) or result
result = Test(info, 'drt', 'core', 'checked') or result
# On the 'be' channel, we only archive to the latest bucket if all tests were
# successful.
if result == 0 and info.channel == 'be':
result = upload_steps.ArchiveAndUpload(info, archive_latest=True) or result
return result
if __name__ == '__main__':
sys.exit(main())

View file

@ -1,23 +0,0 @@
#!/usr/bin/python
# Copyright (c) 2014 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.
"""Utility functions specific to dartium buildbot checkouts
"""
import os
def srcPath():
"""Return the path [dartium_checkout]/src
Only valid if this file is in a dartium checkout.
"""
# This file is in [dartium checkout]/src/dart/tools/dartium/,
# if we are in a dartium checkout that checks out dart into src.
# This function cannot be in utils.py because __file__ is wrong
# when other modules with the name 'utils' are imported indirectly.
return os.path.dirname(
os.path.dirname(
os.path.dirname(
os.path.dirname(os.path.abspath(__file__)))))

View file

@ -1,49 +0,0 @@
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:async';
import 'dart:io';
Future downloadFile(Uri url, String destination) {
var client = new HttpClient();
return client
.getUrl(url)
.then((HttpClientRequest request) => request.close())
.then((HttpClientResponse response) {
if (response.statusCode != HttpStatus.OK) {
throw new Exception("Http status code (${response.statusCode}) "
"was not 200. Aborting.");
}
var sink = new File(destination).openWrite();
return response.pipe(sink).then((_) {
client.close();
});
});
}
void main(List<String> arguments) {
die(String message) {
print(message);
exit(1);
}
if (arguments.length != 2) {
var scriptName = Platform.script.pathSegments.last;
die("Usage dart $scriptName <url> <destination-file>");
}
var url = Uri.parse(arguments[0]);
var destination = arguments[1];
if (!['http', 'https'].contains(url.scheme)) {
die("Unsupported scheme in uri $url");
}
print("Downloading $url to $destination.");
downloadFile(url, destination).then((_) {
print("Download finished.");
}).catchError((error) {
die("An unexpected error occured: $error.");
});
}

View file

@ -1,16 +0,0 @@
@REM Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
@REM for details. All rights reserved. Use of this source code is governed by a
@REM BSD-style license that can be found in the LICENSE file.
@REM This script will download VAR_DOWNLOAD_URL to VAR_DESTINATION in the
@REM current working directory.
@echo off
set "CHROMIUM_DIR=%~dp0"
set "SDK_BIN=%CHROMIUM_DIR%\..\dart-sdk\bin"
set "DART=%SDK_BIN%\dart.exe"
set "DOWNLOAD_SCRIPT=%CHROMIUM_DIR%\download_file.dart"
"%DART%" "%DOWNLOAD_SCRIPT%" "VAR_DOWNLOAD_URL" "VAR_DESTINATION"

View file

@ -1,15 +0,0 @@
#!/usr/bin/env bash
# Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
# This script will download VAR_DOWNLOAD_URL to VAR_DESTINATION in the current
# working directory.
CHROMIUM_DIR="$(dirname $BASH_SOURCE)"
SDK_BIN="$CHROMIUM_DIR/../dart-sdk/bin"
DART="$SDK_BIN/dart"
DOWNLOAD_SCRIPT="$CHROMIUM_DIR/download_file.dart"
"$DART" "$DOWNLOAD_SCRIPT" "VAR_DOWNLOAD_URL" "VAR_DESTINATION"

View file

@ -1,142 +0,0 @@
#!/usr/bin/python
#
# Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
# A script to fetch and build dartium branches into an empty directory.
#
# Main dev directories - src, src/third_party/WebKit, src/dart - are checked out
# via git. A custom_deps entry is added to the .gclient file.
#
# Note: this checkout is not suitable for git merges across branches
# (e.g., upstream merges). It's a shallow checkout without history.
#
# Usage:
# .../fetch_dartium.py --branch=[trunk|bleeding_edge|dartium_integration|1.4|...]
# --path=path [--build]
#
# Default branch is bleeding_edge. The path must be created by this script.
import optparse
import os
import os.path
import re
import shutil
import subprocess
import sys
def Run(cmd, path = '.', isPiped = False):
print 'Running in ' + path + ': ' + ' '.join(cmd)
cwd = os.getcwd()
os.chdir(path)
if isPiped:
p = subprocess.Popen(cmd, stdout = subprocess.PIPE)
else:
p = subprocess.Popen(cmd)
os.chdir(cwd)
return p
def RunSync(cmd):
print "\n[%s]\n$ %s" % (os.getcwd(), " ".join(cmd))
pipe = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
output = pipe.communicate()
if pipe.returncode == 0:
return output[0]
else:
print output[1]
print "FAILED. RET_CODE=%d" % pipe.returncode
sys.exit(pipe.returncode)
def main():
option_parser = optparse.OptionParser()
option_parser.add_option('', '--branch', help="Checkout a branch of Dartium, e.g., [bleeding_edge|dartium_integration|trunk|1.4]",
action="store", dest="branch", default="bleeding_edge")
option_parser.add_option('', '--build', help="Compile",
action="store_true", dest="build")
option_parser.add_option('', '--path', help="Path to checkout to",
action="store", dest="path", default=None)
options, args = option_parser.parse_args()
path = options.path
if not path:
print 'Please set a path'
exit(1)
path = os.path.expanduser(path)
if os.path.isfile(path) or os.path.isdir(path):
print 'Path %s already exists' % path
os.mkdir(path)
os.chdir(path)
if options.branch != 'trunk':
branch = 'branches/' + options.branch
else:
branch = 'trunk'
deps_path = 'https://dart.googlecode.com/svn/%s/deps/dartium.deps' % branch
Run(['gclient', 'config', deps_path]).wait()
# Mark chrome, blink, and dart as custom. We'll check them out separately
# via git.
f = open('.gclient', 'r')
lines = f.readlines()
f.close()
f = open('.gclient', 'w')
for line in lines:
f.write(line)
if 'custom_deps' in line:
f.write(
' "src": None,\n'
' "src/third_party/WebKit": None,\n'
' "src/dart": None,\n'
)
f.close()
# Find branches from the DEPS file.
DEPS = RunSync(['svn', 'cat', deps_path + '/DEPS'])
chrome_base = 'svn://svn.chromium.org/'
chrome_branch = re.search('dartium_chromium_branch":\s*"(.+)"', DEPS).group(1)
blink_branch = re.search('dartium_webkit_branch":\s*"(.+)"', DEPS).group(1)
dart_base = 'https://dart.googlecode.com/svn/'
dart_branch = re.search('dart_branch":\s*"(.+)"', DEPS).group(1)
chrome_url = chrome_base + chrome_branch
blink_url = chrome_base + blink_branch
dart_url = dart_base + dart_branch + '/dart'
# Fetch dart, chrome, and blink via git-svn and everything else via
# gclient sync.
blink_fetch = Run(['git', 'svn', 'clone', '-rHEAD', blink_url, 'blink'])
dart_fetch = Run(['git', 'svn', 'clone', '-rHEAD', dart_url, 'dart'])
Run(['git', 'svn', 'clone', '-rHEAD', chrome_url, 'src']).wait()
sync = Run(['gclient', 'sync', '--nohooks'])
ps = [blink_fetch, dart_fetch, sync]
# Spin until everything is done.
while True:
ps_status = [p.poll() for p in ps]
if all([x is not None for x in ps_status]):
break
# Move blink and dart to the right locations.
webkit_relative_path = os.path.join('src', 'third_party', 'WebKit')
if os.path.isdir(webkit_relative_path):
shutil.rmtree(webkit_relative_path)
Run(['mv', 'blink', webkit_relative_path]).wait()
dart_relative_path = os.path.join('src', 'dart')
if os.path.isdir(dart_relative_path):
shutil.rmtree(dart_relative_path)
Run(['mv', 'dart', dart_relative_path]).wait()
os.chdir('src')
# Sync again and runhooks.
Run(['gclient', 'sync']).wait()
Run(['gclient', 'runhooks']).wait()
# Build if requested.
if options.build:
Run([os.path.join('.', 'dart', 'tools', 'dartium', 'build.py'), '--mode=Release'])
if '__main__' == __name__:
main()

View file

@ -1,14 +0,0 @@
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
void main() {
try {
print("Generated Patches");
} catch (e) {
var workedElem = document.querySelector("#worked");
var failedElem = document.querySelector("#failed");
workedElem.style.dispay = 'none';
failedElem.style.visibility = 'inline';
}
}

View file

@ -1,56 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
div {
background: #ffffff;
text-align: center;
width: 50%;
margin: 10% 10% 25% 25%;
}
div#worked {
border: 5px solid green;
color: green;
}
div#failed {
border: 5px solid red;
color: red;
}
.cached_file_done {
font-family: arial;
font-size: 24pt;
}
.cached_file_name {
color: gray;
font-size: 16pt;
vertical-align: text-bottom;
}
</style>
<script async type="application/dart" src="generate_cached_patches.dart"></script>
<script async src="packages/browser/dart.js"></script>
</head>
<body>
<div id=worked>
<span class=cached_file_done>Close Dartium</span><br/><br/>
<span class=cached_file_done>File: </span>
<span class=cached_file_name>sdk/lib/js/dartium/cached_patches.dart</span><br/><br/>
<span class=cached_file_done>GENERATED</span>
</div>
<div id=failed style="display: none;">
<span class=cached_file_done>FAILED</span><br/><br/>
<span class=cached_file_done>File: </span>
<span class=cached_file_name>sdk/lib/js/dartium/cached_patches.dart</span><br/><br/>
<span class=cached_file_done>NOT GENERATED</span>
</div>
</body>
</html>

View file

@ -1,35 +0,0 @@
import datetime
import imp
import os
import subprocess
import sys
import time
scriptpath = os.path.abspath(os.path.dirname(__file__))
utils = imp.load_source('utils', os.path.join(scriptpath, '..', 'utils.py'))
REVISION_FILE = 'src/chrome/browser/ui/webui/dartvm_revision.h'
EXPIRATION_FILE = 'src/third_party/WebKit/Source/bindings/dart/ExpirationTimeSecsSinceEpoch.time_t'
def updateFile(filename, content):
if os.path.exists(filename):
if file(filename, 'r').read() == content:
return
else:
dir = os.path.dirname(filename)
if not os.path.exists(dir):
os.makedirs(dir)
file(filename, 'w').write(content)
def main():
dart_version = utils.GetVersion()
version_string = '#define DART_VM_REVISION "%s"\n' % dart_version.strip()
updateFile(REVISION_FILE, version_string)
expiration_date = datetime.date.today() + datetime.timedelta(days=365)
updateFile(EXPIRATION_FILE,
"%dLL\n" % time.mktime(expiration_date.timetuple()))
if __name__ == '__main__':
main()

View file

@ -1,59 +0,0 @@
#!/usr/bin/env bash
#
set -x
# generate_patches.sh [systems]
#
# Convenience script to generate patches for JsInterop under Dartium. Do not call from build steps or tests
# - call fremontcutbuilder and dartdomgenerator instead. Do not add 'real'
# functionality here - change the python code instead.
#
# I find it essential to generate all the systems so I know if I am breaking
# other systems. My habit is to run:
#
# ./go.sh
#
# 1. After running go.sh libraries in sdk/lib may change.
# 2. Build Dartium.
# 3. Run this script and sdk/lib/js/dartium/cached_patches will be created.
# 4. Rebuild Dartium.
# 5. Commit files in sdk/lib
#
# NOTE: If the Dart files generated from the IDLs may cause major changes which
# could cause the patch files to fail (missing classes, etc). If this
# happens delete the contents of the sdk/lib/js/dartium/cached_patches.dart
# build Dartium, run this script and build Dartium again with the newly
# generated patches.
ARG_OPTION="dartGenCachedPatches"
LOCATION_DARTIUM="../../../out/Release"
DARTIUM="$LOCATION_DARTIUM"
if [[ "$1" != "" ]] ; then
if [[ "$1" =~ ^--roll ]]; then
ARG_OPTION="dartGenCachedPatchesForRoll"
else
DARTIUM="$1"
fi
fi
if [[ "$2" != "" ]] ; then
if [[ "$2" =~ ^--roll ]]; then
ARG_OPTION="dartGenCachedPatchesForRoll"
else
DARTIUM="$2"
fi
fi
DART_APP_LOCATION="file://"$PWD"/generate_app/generate_cached_patches.html"
DARTIUM_ARGS=" --user-data-dir=out --disable-web-security --no-sandbox --enable-blink-features="$ARG_OPTION""
CACHED_PATCHES_FILE=""$PWD"/../../sdk/lib/js/dartium/cached_patches.dart"
cmd=""$DARTIUM"/chrome "$DARTIUM_ARGS" "$DART_APP_LOCATION" |
(sed -n '/START_OF_CACHED_PATCHES/,/END_OF_CACHED_PATCHES/p') > "$CACHED_PATCHES_FILE""
reset && eval "${cmd}"

File diff suppressed because it is too large Load diff

View file

@ -1,234 +0,0 @@
#!/usr/bin/env python
#
# Copyright 2011 Google Inc. All Rights Reserved.
import fnmatch
import optparse
import os
import re
import shutil
import subprocess
import sys
import urllib
import utils
SCRIPT_TAG = '<script type="application/%s" src="%s"></script>\n'
DART_TEST_DIR = os.path.join('dart')
DART_VM_FLAGS = [
]
DART_VM_CHECKED_FLAGS = DART_VM_FLAGS + [
'--enable_type_checks',
'--warning_as_error',
]
TEST_DRT_FLAGS = [
'--compiler=none',
'--runtime=drt',
'--drt=%(drt)s',
'--mode=%(mode)s',
'--arch=%(arch)s',
'--build-directory=%(build_dir)s',
'--report',
'--time',
]
TEST_DRT_CHECKED_FLAGS = TEST_DRT_FLAGS + [
'--checked',
]
TEST_DARTIUM_FLAGS = [
'--compiler=none',
'--runtime=dartium',
'--dartium=%(dartium)s',
'--mode=%(mode)s',
'--build-directory=%(build_dir)s',
'--report',
'--time',
]
TEST_DARTIUM_CHECKED_FLAGS = TEST_DARTIUM_FLAGS + [
'--checked',
]
TEST_INFO = {
'dartium': {
'core': {
'checked': TEST_DARTIUM_CHECKED_FLAGS,
'unchecked': TEST_DARTIUM_FLAGS,
},
},
'drt': {
'layout': {
'checked': DART_VM_CHECKED_FLAGS,
'unchecked': DART_VM_FLAGS,
},
'core': {
'checked': TEST_DRT_CHECKED_FLAGS,
'unchecked': TEST_DRT_FLAGS,
},
},
}
COMPONENTS = TEST_INFO.keys()
SUITES = [ 'layout', 'core' ]
def main():
parser = optparse.OptionParser()
parser.add_option('--mode', dest='mode',
action='store', type='string',
help='Test mode (Debug or Release)')
parser.add_option('--component', dest='component',
default='drt',
action='store', type='string',
help='Execution mode (dartium, drt or all)')
parser.add_option('--suite', dest='suite',
default='all',
action='store', type='string',
help='Test suite (layout, core, or all)')
parser.add_option('--arch', dest='arch',
default='ia32',
action='store', type='string',
help='Target architecture')
parser.add_option('--no-show-results', action='store_false',
default=True, dest='show_results',
help='Don\'t launch a browser with results '
'after the tests are done')
parser.add_option('--checked', action='store_true',
default=False, dest='checked',
help='Run Dart code in checked mode')
parser.add_option('--unchecked', action='store_true',
default=False, dest='unchecked',
help='Run Dart code in unchecked mode')
parser.add_option('--buildbot', action='store_true',
default=False, dest='buildbot',
help='Print results in buildbot format')
parser.add_option('--layout-test', dest='layout_test',
default=None,
action='store', type='string',
help='Single layout test to run if set')
parser.add_option('--test-filter', dest='test_filter',
default=None,
action='store', type='string',
help='Test filter for core tests')
(options, args) = parser.parse_args()
mode = options.mode
if not (mode in ['Debug', 'Release']):
raise Exception('Invalid test mode')
if options.component == 'all':
components = COMPONENTS
elif not (options.component in COMPONENTS):
raise Exception('Invalid component %s' % options.component)
else:
components = [ options.component ]
if options.suite == 'all':
suites = SUITES
elif not (options.suite in SUITES):
raise Exception('Invalid suite %s' % options.suite)
else:
suites = [ options.suite ]
# If --checked or --unchecked not present, run with both.
checkmodes = ['unchecked', 'checked']
if options.checked or options.unchecked:
checkmodes = []
if options.unchecked: checkmodes.append('unchecked')
if options.checked: checkmodes.append('checked')
# We are in src/dart/tools/dartium/test.py.
pathname = os.path.dirname(sys.argv[0])
fullpath = os.path.abspath(pathname)
srcpath = os.path.normpath(os.path.join(fullpath, '..', '..', '..'))
test_mode = ''
timeout = 30000
if mode == 'Debug':
test_mode = '--debug'
timeout = 60000
show_results = ''
if not options.show_results:
show_results = '--no-show-results'
host_os = utils.guessOS()
build_root, drt_path, dartium_path, dart_path = {
'mac': (
'out',
os.path.join('Content Shell.app', 'Contents', 'MacOS', 'Content Shell'),
os.path.join('Chromium.app', 'Contents', 'MacOS', 'Chromium'),
'dart',
),
'linux': ('out', 'content_shell', 'chrome', 'dart'),
'win': ('out', 'content_shell.exe', 'chrome.exe', 'dart.exe'),
}[host_os]
build_dir = os.path.join(srcpath, build_root, mode)
executable_map = {
'mode': mode.lower(),
'build_dir': os.path.relpath(build_dir),
'drt': os.path.join(build_dir, drt_path),
'dartium': os.path.join(build_dir, dartium_path),
'dart': os.path.join(build_dir, dart_path),
'arch': options.arch,
}
test_script = os.path.join(srcpath, 'third_party', 'WebKit', 'Tools', 'Scripts', 'run-webkit-tests')
errors = False
for component in components:
for checkmode in checkmodes:
# Capture errors and report at the end.
try:
if ('layout' in suites and
'layout' in TEST_INFO[component] and
checkmode in TEST_INFO[component]['layout']):
# Run layout tests in this mode
dart_flags = ' '.join(TEST_INFO[component]['layout'][checkmode])
if options.layout_test:
test = os.path.join(DART_TEST_DIR, options.layout_test)
else:
test = DART_TEST_DIR
utils.runCommand(['python',
test_script,
test_mode,
show_results,
'--time-out-ms', str(timeout),
# Temporary hack to fix issue with svn vs. svn.bat.
'--builder-name', 'BuildBot',
'--additional-env-var',
'DART_FLAGS=%s' % dart_flags,
test])
# Run core dart tests
if ('core' in suites and
'core' in TEST_INFO[component] and
checkmode in TEST_INFO[component]['core']):
core_flags = TEST_INFO[component]['core'][checkmode]
core_flags = map(lambda flag: flag % executable_map, core_flags)
if options.buildbot:
core_flags = ['--progress=buildbot'] + core_flags
tester = os.path.join(srcpath, 'dart', 'tools', 'test.py')
test_filter = [options.test_filter] if options.test_filter else []
utils.runCommand(['python', tester] + core_flags + test_filter)
except (StandardError, Exception) as e:
print 'Fail: ' + str(e)
errors = True
if errors:
return 1
else:
return 0
if __name__ == '__main__':
try:
sys.exit(main())
except StandardError as e:
print 'Fail: ' + str(e)
sys.exit(1)

View file

@ -1,270 +0,0 @@
#!/usr/bin/python
# Update Dartium DEPS automatically.
from datetime import datetime, timedelta
import optparse
import os
import re
from subprocess import Popen, PIPE
import sys
from time import strptime
# Instructions:
#
# To run locally:
# (a) Create and change to a directory to run the updater in:
# > mkdir /usr/local/google/home/$USER/dartium_deps_updater
# > cd /usr/local/google/home/$USER/dartium_deps_updater
#
# (b) Make a 'deps' directory to store temporary files:
# > mkdir deps
#
# (c) Checkout dart/tools/dartium (with this script):
# > svn co https://dart.googlecode.com/svn/branches/bleeding_edge/dart/tools/dartium dartium_tools
#
# (d) If your home directory is remote, consider redefining it for this shell/script:
# > cp -R $HOME/.subversion /usr/local/google/home/$USER
# > export HOME=/usr/local/google/home/$USER
#
# (e) Test by running (Ctrl-C to quit):
# > ./dartium_tools/update_deps.py
# > ./dartium_tools/update_deps.py --target=clank
# > ./dartium_tools/update_deps.py --target=integration
#
# (f) Run periodical update:
# > while true; do ./dartium_tools/update_deps.py --force ; sleep 300 ; done
########################################################################
# Repositories to auto-update
########################################################################
BRANCH_CURRENT="dart/dartium"
BRANCH_NEXT="dart/2454_1"
# (repo_name, deps_dir, repo_branch, prefix, repos, branch)
TARGETS = {
'dartium': (
'git@github.com:dart-lang/sdk.git',
'tools/deps/dartium.deps',
'origin/master',
'dartium',
# TODO(vsm): Reenable 'chromium'
['webkit'],
BRANCH_CURRENT,
),
'integration': (
# TODO(jacobr): what is the git repo for integration if any?
'git@github.com:dart-lang/sdk.git',
'tools/deps/dartium.deps',
'origin/integration',
'dartium',
# TODO(vsm): Reenable 'chromium'
['webkit'],
BRANCH_NEXT,
),
}
# Each element in this map represents a repository to update. Entries
# take the form:
# (repo_tag: (svn_url, view_url))
#
# The repo_tag must match the DEPS revision entry. I.e, there must be
# an entry of the form:
# 'dartium_%s_revision' % repo_tag
# to roll forward.
#
# The view_url should be parameterized by revision number. This is
# used to generated the commit message.
REPOSITORY_INFO = {
'webkit': (
'https://src.chromium.org/blink/branches/%s',
'https://src.chromium.org/viewvc/blink?view=rev&revision=%s'),
'blink': (
'https://src.chromium.org/blink/branches/%s',
'https://src.chromium.org/viewvc/blink?view=rev&revision=%s'),
'chromium': (
'https://src.chromium.org/chrome/branches/%s',
'https://src.chromium.org/viewvc/chrome?view=rev&revision=%s'),
}
REPOSITORIES = REPOSITORY_INFO.keys()
########################################################################
# Actions
########################################################################
def write_file(filename, content):
f = open(filename, "w")
f.write(content)
f.close()
def run_cmd(cmd):
print "\n[%s]\n$ %s" % (os.getcwd(), " ".join(cmd))
pipe = Popen(cmd, stdout=PIPE, stderr=PIPE)
output = pipe.communicate()
if pipe.returncode == 0:
return output[0]
else:
print output[1]
print "FAILED. RET_CODE=%d" % pipe.returncode
sys.exit(pipe.returncode)
def parse_iso_time(s):
pair = s.rsplit(' ', 1)
d = datetime.strptime(pair[0], '%Y-%m-%d %H:%M:%S')
offset = timedelta(hours=int(pair[1][0:3]))
return d - offset
def parse_git_log(output, repo):
if len(output) < 4:
return []
lst = output.split(os.linesep)
lst = [s.strip('\'') for s in lst]
lst = [s.split(',', 3) for s in lst]
lst = [{'repo': repo,
'rev': s[0],
'isotime':s[1],
'author': s[2],
'utctime': parse_iso_time(s[1]),
'info': s[3]} for s in lst]
return lst
def parse_svn_log(output, repo):
lst = output.split(os.linesep)
lst = [s.strip('\'') for s in lst]
output = '_LINESEP_'.join(lst)
lst = output.split('------------------------------------------------------------------------')
lst = [s.replace('_LINESEP_', '\n') for s in lst]
lst = [s.strip('\n') for s in lst]
lst = [s.strip(' ') for s in lst]
lst = [s for s in lst if len(s) > 0]
pattern = re.compile(' \| (\d+) line(s|)')
lst = [pattern.sub(' | ', s) for s in lst]
lst = [s.split(' | ', 3) for s in lst]
lst = [{'repo': repo,
'rev': s[0].replace('r', ''),
'author': s[1],
'isotime':s[2][0:25],
'utctime': parse_iso_time(s[2][0:25]),
'info': s[3].split('\n')[2]} for s in lst]
return lst
def commit_url(repo, rev):
numrev = rev.replace('r', '')
if repo in REPOSITORIES:
(_, view_url) = REPOSITORY_INFO[repo]
return view_url % numrev
else:
raise Exception('Unknown repo');
def find_max(revs):
max_time = None
max_position = None
for i, rev in enumerate(revs):
if rev == []:
continue
if max_time is None or rev[0]['utctime'] > max_time:
max_time = rev[0]['utctime']
max_position = i
return max_position
def merge_revs(revs):
position = find_max(revs)
if position is None:
return []
item = revs[position][0]
revs[position] = revs[position][1:]
return [item] + merge_revs(revs)
def main():
option_parser = optparse.OptionParser()
option_parser.add_option('', '--target', help="Update one of [dartium|integration]", action="store", dest="target", default="dartium")
option_parser.add_option('', '--force', help="Push DEPS update to server without prompting", action="store_true", dest="force")
options, args = option_parser.parse_args()
target = options.target
if not target in TARGETS.keys():
print "Error: invalid target"
print "Choose one of " + str(TARGETS)
(repo_name, deps_dir, repo_branch, prefix, repos, branch) = TARGETS[target]
deps_file = deps_dir + '/DEPS'
repo_branch_parts = repo_branch.split('/')
src_dir = "/usr/local/google/home/%s/dartium_deps_updater/deps/%s" % (os.environ["USER"], target)
os.putenv("GIT_PAGER", "")
if not os.path.exists(src_dir):
print run_cmd(['git', 'clone', repo_name, src_dir])
os.chdir(src_dir)
deps = run_cmd(['git', 'fetch'])
deps = run_cmd(['git', 'stash'])
deps = run_cmd(['git', 'checkout', '-B', repo_branch_parts[1], repo_branch])
# parse DEPS
deps = run_cmd(['cat', deps_file])
rev_num = {}
for repo in repos:
revision = '%s_%s_revision":\s*"(.+)"' % (prefix, repo)
rev_num[repo] = re.search(revision, deps).group(1)
# update repos
all_revs = []
for repo in repos:
(svn_url, _) = REPOSITORY_INFO[repo]
output = run_cmd(["svn", "log", "-r", "HEAD:%s" % rev_num[repo], svn_url % branch])
revs = parse_svn_log(output, repo)
if revs and revs[-1]['rev'] == rev_num[repo]:
revs.pop()
all_revs.append(revs)
pending_updates = merge_revs(all_revs)
pending_updates.reverse()
print
print "Current DEPS revisions:"
for repo in repos:
print ' %s_%s_revision=%s' % (prefix, repo, rev_num[repo])
if len(pending_updates) == 0:
print "DEPS is up-to-date."
sys.exit(0)
else:
print "Pending DEPS updates:"
for s in pending_updates:
print " %s to %s (%s) %s" % (s['repo'], s['rev'], s['isotime'], s['info'])
# make the next DEPS update
os.chdir(src_dir)
run_cmd(['rm', deps_file])
s = pending_updates[0]
pattern = re.compile(prefix + '_' + s['repo'] + '_revision":\s*"(.+)"')
new_deps = pattern.sub(prefix + '_' + s['repo'] + '_revision": "' + s['rev'] + '"', deps)
write_file(deps_file, new_deps)
commit_log = 'DEPS AutoUpdate: %s to %s (%s) %s\n' % (s['repo'], s['rev'], s['isotime'], s['author'])
commit_log += s['info'] + '\n' + commit_url(s['repo'], s['rev'])
write_file('commit_log.txt', commit_log)
run_cmd(['git', 'add', deps_file])
print run_cmd(['git', 'diff', 'HEAD'])
print
print "Commit log:"
print "---------------------------------------------"
print commit_log
print "---------------------------------------------"
if not options.force:
print "Ready to push; press Enter to continue or Control-C to abort..."
sys.stdin.readline()
print run_cmd(['git', 'commit', '-F', 'commit_log.txt'])
print run_cmd(['git', 'push', repo_branch_parts[0], repo_branch_parts[1]])
print "Done."
if '__main__' == __name__:
main()

View file

@ -1,27 +0,0 @@
#!/usr/bin/env python
#
# Copyright 2012 Google Inc. All Rights Reserved.
import overrides_database
import shutil
import subprocess
import sys
def svn_update(path, rev):
subprocess.call(['svn', 'up', '-r', str(rev), path])
def update_overridden_files(old_rev, new_rev):
assert old_rev < new_rev
for override in overrides_database.OVERRIDDEN_FILES:
patched = override['modified']
orig = override['original']
svn_update(orig, old_rev)
shutil.copyfile(patched, orig)
svn_update(orig, new_rev)
shutil.copyfile(orig, patched)
if __name__ == '__main__':
update_overridden_files(int(sys.argv[1]), int(sys.argv[2]))

View file

@ -1,40 +0,0 @@
#!/usr/bin/env python
#
# Copyright 2012 Google Inc. All Rights Reserved.
import subprocess
import sys
def FetchSVNRevision():
try:
proc = subprocess.Popen(['svn', 'info'],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
cwd='src/dart',
shell=(sys.platform=='win32'))
except OSError:
# command is apparently either not installed or not executable.
return None
if not proc:
return None
for line in proc.stdout:
line = line.strip()
if not line:
continue
key, val = line.split(': ', 1)
if key == 'Revision':
return val
return None
def main():
revision = FetchSVNRevision()
path = 'src/chrome/VERSION'
text = file(path).readlines()
text[2] = 'BUILD=d%s\n' % revision
file(path, 'w').writelines(text)
if __name__ == '__main__':
main()

View file

@ -1,278 +0,0 @@
#!/usr/bin/python
# Copyright (c) 2014 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.
"""Steps to archive dartium, content_shell, and chromedriver from buildbots.
Imported by buildbot_annotated_steps.py
"""
import imp
import os
import platform
import re
import subprocess
import sys
import dartium_bot_utils
import archive
BUILDER_NAME = 'BUILDBOT_BUILDERNAME'
REVISION = 'BUILDBOT_REVISION'
BUILDER_PATTERN = (r'^(dartium)-(mac|lucid64|lucid32|win)'
r'-(full|inc|debug)(-ninja)?(-(be|dev|stable|integration))?$')
NEW_BUILDER_PATTERN = (
r'^dartium-(mac|linux|win)-(ia32|x64)(-inc)?-(be|dev|stable|integration)$')
if platform.system() == 'Windows':
GSUTIL = 'e:/b/build/scripts/slave/gsutil.bat'
else:
GSUTIL = '/b/build/scripts/slave/gsutil'
ACL = 'public-read'
GS_SITE = 'gs://'
GS_URL = 'https://sandbox.google.com/storage/'
GS_DIR = 'dartium-archive'
LATEST = 'latest'
CONTINUOUS = 'continuous'
SRC_PATH = dartium_bot_utils.srcPath()
DART_PATH = os.path.join(SRC_PATH, 'dart')
bot_utils = imp.load_source('bot_utils',
os.path.join(DART_PATH, 'tools', 'bots', 'bot_utils.py'))
class BuildInfo(object):
"""
name: A name for the build - the buildbot host if a buildbot.
mode: 'Debug' or 'Release'
arch: target architecture
channel: the channel this build is happening on
is_full: True if this is a full build.
is_incremental: True if this is an incremental build.
"""
def __init__(self, revision, version):
self.revision = revision
self.version = version
self.name = os.environ[BUILDER_NAME]
pattern = re.match(NEW_BUILDER_PATTERN, self.name)
if pattern:
self.arch = pattern.group(2)
self.mode = 'Release'
self.is_incremental = (pattern.group(3) == '-inc')
self.is_full = not self.is_incremental
self.channel = pattern.group(4)
else:
pattern = re.match(BUILDER_PATTERN, self.name)
assert pattern
self.arch = 'x64' if pattern.group(2) == 'lucid64' else 'ia32'
self.mode = 'Debug' if pattern.group(3) == 'debug' else 'Release'
self.is_incremental = '-inc' in self.name
self.is_full = pattern.group(3) == 'full'
self.channel = pattern.group(6) if pattern.group(6) else 'be'
def ArchiveAndUpload(info, archive_latest=False):
print '@@@BUILD_STEP dartium_generate_archive@@@'
cwd = os.getcwd()
dartium_bucket = info.name
drt_bucket = dartium_bucket.replace('dartium', 'drt')
chromedriver_bucket = dartium_bucket.replace('dartium', 'chromedriver')
dartium_archive = dartium_bucket + '-' + info.version
drt_archive = drt_bucket + '-' + info.version
chromedriver_archive = chromedriver_bucket + '-' + info.version
dartium_zip, drt_zip, chromedriver_zip = archive.Archive(
SRC_PATH,
info.mode,
dartium_archive,
drt_archive,
chromedriver_archive)
status = 0
# Upload bleeding-edge builds to old dartium-archive bucket
if info.channel == 'be':
status = (OldUpload('dartium', dartium_bucket,
os.path.abspath(dartium_zip),
archive_latest=archive_latest)
or OldUpload('drt', drt_bucket,
os.path.abspath(drt_zip),
archive_latest=archive_latest)
or OldUpload('chromedriver', chromedriver_bucket,
os.path.abspath(chromedriver_zip),
archive_latest=archive_latest))
# Upload to new dart-archive bucket using GCSNamer, but not incremental
# or perf builder builds.
if not info.is_incremental:
Upload('dartium', os.path.abspath(dartium_zip),
info, archive_latest=archive_latest)
Upload('drt', os.path.abspath(drt_zip),
info, archive_latest=archive_latest)
Upload('chromedriver', os.path.abspath(chromedriver_zip),
info, archive_latest=archive_latest)
os.chdir(cwd)
if status != 0:
print '@@@STEP_FAILURE@@@'
return status
def OldUpload(module, bucket, zip_file, archive_latest=False):
"""Upload a zip file to the old bucket gs://dartium-archive/
"""
# TODO(whesse): Remove the old archiving code (OldUpload, OldUploadFile,
# and constants they use) once everything points to the new location.
status = 0
_, filename = os.path.split(zip_file)
if not archive_latest:
target = '/'.join([GS_DIR, bucket, filename])
print '@@@BUILD_STEP %s_upload_archive_old@@@' % module
status = OldUploadFile(zip_file, GS_SITE + target)
print '@@@STEP_LINK@download@' + GS_URL + target + '@@@'
else:
print '@@@BUILD_STEP %s_upload_latest_old@@@' % module
# Clear latest for this build type.
old = '/'.join([GS_DIR, LATEST, bucket + '-*'])
old_archives = ListArchives(GS_SITE + old)
# Upload the new latest and remove unnecessary old ones.
target = GS_SITE + '/'.join([GS_DIR, LATEST, filename])
status = OldUploadFile(zip_file, target)
if status == 0:
RemoveArchives(
[iarch for iarch in old_archives if iarch != target])
else:
print 'Upload failed'
# Upload unversioned name to continuous site for incremental
# builds.
if '-inc' in bucket:
continuous_name = bucket[:bucket.find('-inc')]
target = GS_SITE + '/'.join([GS_DIR, CONTINUOUS,
continuous_name + '.zip'])
status = OldUploadFile(zip_file, target)
print ('@@@BUILD_STEP %s_upload_archive is over (status = %s)@@@' %
(module, status))
return status
def Upload(module, zip_file, info, archive_latest=False):
"""Upload a zip file to cloud storage bucket gs://dart-archive/
"""
print '@@@BUILD_STEP %s_upload_archive @@@' % module
revision = 'latest' if archive_latest else info.revision
name = module.replace('drt', 'content_shell')
namer = bot_utils.GCSNamer(info.channel, bot_utils.ReleaseType.RAW)
remote_path = namer.dartium_variant_zipfilepath(revision,
name,
sys.platform,
info.arch,
info.mode.lower())
UploadFile(zip_file, remote_path, checksum_files=True)
print '@@@STEP_LINK@download@' + remote_path + '@@@'
def OldUploadFile(source, target):
"""Upload an archive zip file to Google storage.
"""
# Upload file.
cmd = [GSUTIL, 'cp', source, target]
(status, output) = ExecuteCommand(cmd)
if status != 0:
return status
print 'Uploaded: ' + output
# Set ACL.
if ACL is not None:
cmd = [GSUTIL, 'acl', 'set', ACL, target]
(status, output) = ExecuteCommand(cmd)
return status
def UploadFile(local_path, remote_path, checksum_files=False):
# Copy it to the new unified gs://dart-archive bucket
gsutil = bot_utils.GSUtil()
gsutil.upload(local_path, remote_path, public=True)
if checksum_files:
# 'local_path' may have a different filename than 'remote_path'. So we need
# to make sure the *.md5sum file contains the correct name.
assert '/' in remote_path and not remote_path.endswith('/')
mangled_filename = remote_path[remote_path.rfind('/') + 1:]
local_md5sum = bot_utils.CreateMD5ChecksumFile(local_path,
mangled_filename)
gsutil.upload(local_md5sum, remote_path + '.md5sum', public=True)
local_sha256 = bot_utils.CreateSha256ChecksumFile(local_path,
mangled_filename)
gsutil.upload(local_sha256, remote_path + '.sha256sum', public=True)
def ExecuteCommand(cmd):
"""Execute a command in a subprocess.
"""
print 'Executing: ' + ' '.join(cmd)
try:
pipe = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
(output, error) = pipe.communicate()
if pipe.returncode != 0:
print 'Execution failed: ' + str(error)
return (pipe.returncode, output)
except:
import traceback
print 'Execution raised exception:', traceback.format_exc()
return (-1, '')
def UploadDartTestsResults(layout_test_results_dir, name, version,
component, checked):
"""Uploads test results to google storage.
"""
print ('@@@BUILD_STEP archive %s_layout_%s_tests results@@@' %
(component, checked))
dir_name = os.path.dirname(layout_test_results_dir)
base_name = os.path.basename(layout_test_results_dir)
cwd = os.getcwd()
try:
os.chdir(dir_name)
archive_name = 'layout_test_results.zip'
archive.ZipDir(archive_name, base_name)
target = '/'.join([GS_DIR, 'layout-test-results', name, component + '-' +
checked + '-' + version + '.zip'])
status = OldUploadFile(os.path.abspath(archive_name), GS_SITE + target)
os.remove(archive_name)
if status == 0:
print ('@@@STEP_LINK@download@' + GS_URL + target + '@@@')
else:
print '@@@STEP_FAILURE@@@'
except:
print '@@@STEP_FAILURE@@@'
os.chdir(cwd)
def ListArchives(pattern):
"""List the contents in Google storage matching the file pattern.
"""
cmd = [GSUTIL, 'ls', pattern]
(status, output) = ExecuteCommand(cmd)
if status != 0:
return []
return output.split(os.linesep)
def RemoveArchives(archives):
"""Remove the list of archives in Google storage.
"""
for archive in archives:
if archive.find(GS_SITE) == 0:
cmd = [GSUTIL, 'rm', archive.rstrip()]
(status, _) = ExecuteCommand(cmd)
if status != 0:
return status
return 0

View file

@ -1,123 +0,0 @@
# Copyright 2010 Google Inc. All Rights Reserved.
# This file contains a set of utilities functions used
# by both SConstruct and other Python-based scripts.
import commands
import os
import platform
import re
import subprocess
class ChangedWorkingDirectory(object):
def __init__(self, new_dir):
self._new_dir = new_dir
def __enter__(self):
self._old_dir = os.getcwd()
os.chdir(self._new_dir)
return self._new_dir
def __exit__(self, *_):
os.chdir(self._old_dir)
# Try to guess the host operating system.
def guessOS():
id = platform.system()
if id == "Linux":
return "linux"
elif id == "Darwin":
return "mac"
elif id == "Windows" or id == "Microsoft":
# On Windows Vista platform.system() can return "Microsoft" with some
# versions of Python, see http://bugs.python.org/issue1082 for details.
return "win"
else:
return None
# Try to guess the host architecture.
def guessArchitecture():
id = platform.machine()
if id.startswith('arm'):
return 'arm'
elif (not id) or (not re.match('(x|i[3-6])86', id) is None):
return 'x86'
elif id == 'i86pc':
return 'x86'
else:
return None
# Try to guess the number of cpus on this machine.
def guessCpus():
if os.path.exists("/proc/cpuinfo"):
return int(commands.getoutput("grep -E '^processor' /proc/cpuinfo | wc -l"))
if os.path.exists("/usr/bin/hostinfo"):
return int(commands.getoutput('/usr/bin/hostinfo | grep "processors are logically available." | awk "{ print \$1 }"'))
win_cpu_count = os.getenv("NUMBER_OF_PROCESSORS")
if win_cpu_count:
return int(win_cpu_count)
return int(os.getenv("PARFAIT_NUMBER_OF_CORES", 2))
# Returns true if we're running under Windows.
def isWindows():
return guessOS() == 'win32'
# Reads a text file into an array of strings - one for each
# line. Strips comments in the process.
def readLinesFrom(name):
result = []
for line in open(name):
if '#' in line:
line = line[:line.find('#')]
line = line.strip()
if len(line) == 0:
continue
result.append(line)
return result
def listArgCallback(option, opt_str, value, parser):
if value is None:
value = []
for arg in parser.rargs:
if arg[:2].startswith('--'):
break
value.append(arg)
del parser.rargs[:len(value)]
setattr(parser.values, option.dest, value)
def getCommandOutput(cmd):
print cmd
pipe = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
output = pipe.communicate()
if pipe.returncode == 0:
return output[0]
else:
print output[1]
raise Exception('Failed to run command. return code=%s' % pipe.returncode)
def runCommand(cmd, env_update=None):
if env_update is None:
env_update = {}
print 'Running: ' + ' '.join(["%s='%s'" % (k, v) for k, v in env_update.iteritems()]) + ' ' + ' '.join(cmd)
env_copy = dict(os.environ.items())
env_copy.update(env_update)
p = subprocess.Popen(cmd, env=env_copy)
if p.wait() != 0:
raise Exception('Failed to run command. return code=%s' % p.returncode)
def main(argv):
print "GuessOS() -> ", guessOS()
print "GuessArchitecture() -> ", guessArchitecture()
print "GuessCpus() -> ", guessCpus()
print "IsWindows() -> ", isWindows()
if __name__ == "__main__":
import sys
main(sys.argv)

View file

@ -1,952 +0,0 @@
# The file DEPS.chromium from this directory (tools/deps/dartium.deps) is
# copied into this file, rather than imported, because the new DEPS syntax
# analyzer does not support the way that we import it.
# Please keep the code between here and "END OF IMPORTED CHROMIUM DEPS"
# an exact copy of the modified DEPS.chromium in this directory.
vars = {
# Start of Dartium vars
"dartium_chromium_commit": "695e5054130cb7622755ea4db50efe1821d31131",
"chromium_base_revision": "378081",
# We use mirrors of all github repos to guarantee reproducibility and
# consistency between what users see and what the bots see.
# We need the mirrors to not have 100+ bots pulling github constantly.
# We mirror our github repos on chromium git servers.
# DO NOT use this var if you don't see a mirror here:
# https://chromium.googlesource.com/
# named like:
# external/github.com/dart-lang/NAME
# It is ok to add a dependency directly on dart-lang (dart-lang only)
# github repo until the mirror has been created, but please do file a bug
# against infra to make that happen.
"github_mirror":
"https://chromium.googlesource.com/external/github.com/dart-lang/%s.git",
"args_tag": "@0.13.0",
"barback_rev" : "@29ee90dbcf77cfd64632fa2797a4c8a4f29a4b51",
"charcode_tag": "@1.1.0",
"collection_tag": "@1.9.1",
"crypto_rev" : "@2df57a1e26dd88e8d0614207d4b062c73209917d",
"csslib_tag" : "@0.12.0",
"dart2js_info_tag" : "@0.5.4+2",
"glob_rev": "@704cf75e4f26b417505c5c611bdaacd8808467dd",
"html_tag" : "@0.12.1+1",
"http_rev" : "@9b93e1542c753090c50b46ef1592d44bc858bfe7",
"http_multi_server_tag" : "@1.3.2",
"http_parser_rev" : "@8b179e36aba985208e4c5fb15cfddd386b6370a4",
"http_throttle_rev" : "@a81f08be942cdd608883c7b67795c12226abc235",
"json_rpc_2_rev": "@a38eefd116d910199de205f962af92fed87c164c",
"logging_rev": "@85d83e002670545e9039ad3985f0018ab640e597",
"matcher_tag": "@0.12.0",
"mime_rev": "@75890811d4af5af080351ba8a2853ad4c8df98dd",
"metatest_rev": "@e5aa8e4e19fc4188ac2f6d38368a47d8f07c3df1",
"oauth2_rev": "@1bff41f4d54505c36f2d1a001b83b8b745c452f5",
"observatory_pub_packages_rev": "@26aad88f1c1915d39bbcbff3cad589e2402fdcf1",
"package_config_rev": "@0.1.3",
"package_resolver_tag": "@1.0.2+1",
"path_rev": "@b657c0854d1cf41c014986fa9d2321f1173df805",
"plugin_tag": "@0.1.0",
"pool_rev": "@22e12aeb16ad0b626900dbe79e4a25391ddfb28c",
"pub_rev": "@d7649be15213c43669a40c33af516d8eb210e876",
"pub_semver_tag": "@1.2.0",
"quiver_tag": "@0.21.4",
"root_certificates_rev": "@aed07942ce98507d2be28cbd29e879525410c7fc",
"shelf_rev": "@1e87b79b21ac5e6fa2f93576d6c06eaa65285ef4",
"shelf_web_socket_rev": "@ff170cec2c0e4e5722cdf47c557be63b5035a602",
"source_span_rev": "@42501132e43599a151ba6727d340e44442f86c05",
"stack_trace_tag": "@1.2.1",
"string_scanner_rev": "@3e7617d6f74ba382e9b6130b1cc12091d89a9bc5",
"test_tag": "@0.12.1",
"unittest_tag": "@0.11.6",
"utf_rev": "@1f55027068759e2d52f2c12de6a57cce5f3c5ee6",
"watcher_tag": "@0.9.5",
"yaml_rev": "@563a5ffd4a800a2897b8f4dd6b19f2a370df2f2b",
"zlib_rev": "@c3d0a6190f2f8c924a05ab6cc97b8f975bddd33f",
"web_components_rev": "@6349e09f9118dce7ae1b309af5763745e25a9d61",
"WebCore_rev": "@3c45690813c112373757bbef53de1602a62af609",
"co19_rev": "@dec2b67aaab3bb7339b9764049707e71e601da3d",
# End of Dartium vars
'angle_revision':
'4d76061e2be5b8b005afba8e0c145592c3b04527',
'boringssl_revision':
'6d49157929abdefb155daf2751dc03fd9eb4240c',
'buildspec_platforms':
'chromeos,',
'buildtools_revision':
'3d2e47bf14e4e67816a53e304dea422fa18f9180',
'chromium_git':
'https://chromium.googlesource.com',
'deqp_revision':
'cc0ded6c77267bbb14d21aac358fc5d9690c07f8',
'deqp_url':
'https://android.googlesource.com/platform/external/deqp',
'freetype_android_revision':
'a512b0fe7a8d9db0e5aa9c0a4db1e92cb861722d',
'google_toolbox_for_mac_revision':
'401878398253074c515c03cb3a3f8bb0cc8da6e9',
'googlecode_url':
'http://%s.googlecode.com/svn',
'lighttpd_revision':
'9dfa55d15937a688a92cbf2b7a8621b0927d06eb',
'lss_revision':
'4fc942258fe5509549333b9487ec018e3c8c5b10',
'nacl_revision':
'd182b0a028d44ba9767ae25b30cf3986a7e72e99',
'nss_revision':
'225bfc39c93dfb7c7d0d1162f81e9bb5cd356c30',
'openmax_dl_revision':
'6670e52d32351145a6b6c198dab3f6a536edf3db',
'pdfium_revision':
'8ba5b59356d506d3b9e976e7422e69bbd5bec8d6',
'sfntly_revision':
'130f832eddf98467e6578b548cb74ce17d04a26d',
'skia_revision':
'82e26bf23923f20828c850d1a0e01d8bde69cfff',
'swarming_revision':
'a72f46e42dba1335e8001499b4621acad2d26728',
'v8_revision':
'ad16e6c2cbd2c6b0f2e8ff944ac245561c682ac2'
}
allowed_hosts = [
'android.googlesource.com',
'boringssl.googlesource.com',
'chromium.googlesource.com',
'pdfium.googlesource.com'
]
deps = {
'src/breakpad/src':
(Var("chromium_git")) + '/breakpad/breakpad/src.git@481608d284106df9400d447e95574799670cabaf',
'src/buildtools':
(Var("chromium_git")) + '/chromium/buildtools.git@3d2e47bf14e4e67816a53e304dea422fa18f9180',
'src/chrome/test/data/perf/canvas_bench':
(Var("chromium_git")) + '/chromium/canvas_bench.git@a7b40ea5ae0239517d78845a5fc9b12976bfc732',
'src/chrome/test/data/perf/frame_rate/content':
(Var("chromium_git")) + '/chromium/frame_rate/content.git@c10272c88463efeef6bb19c9ec07c42bc8fe22b9',
'src/media/cdm/api':
(Var("chromium_git")) + '/chromium/cdm.git@1dea7088184dec2ebe4a8b3800aabb0afbb4b88a',
'src/native_client':
(Var("chromium_git")) + '/native_client/src/native_client.git@fb00463cb1ebd46a46c050101f8b6a6c999d5dc1',
'src/sdch/open-vcdiff':
(Var("chromium_git")) + '/external/github.com/google/open-vcdiff.git@21d7d0b9c3d0c3ccbdb221c85ae889373f0a2a58',
'src/testing/gmock':
(Var("chromium_git")) + '/external/googlemock.git@0421b6f358139f02e102c9c332ce19a33faf75be',
'src/testing/gtest':
(Var("chromium_git")) + '/external/github.com/google/googletest.git@6f8a66431cb592dad629028a50b3dd418a408c87',
'src/third_party/angle':
(Var("chromium_git")) + '/angle/angle.git@c46018b8598dad46f6834411f27e12e90bb62a56',
'src/third_party/bidichecker':
(Var("chromium_git")) + '/external/bidichecker/lib.git@97f2aa645b74c28c57eca56992235c79850fa9e0',
'src/third_party/boringssl/src':
'https://boringssl.googlesource.com/boringssl.git@c880e42ba1c8032d4cdde2aba0541d8a9d9fa2e9',
'src/third_party/catapult':
(Var("chromium_git")) + '/external/github.com/catapult-project/catapult.git@a489be785184f64356555a8170452a6d6880cc5d',
'src/third_party/cld_2/src':
(Var("chromium_git")) + '/external/github.com/CLD2Owners/cld2.git@84b58a5d7690ebf05a91406f371ce00c3daf31c0',
'src/third_party/colorama/src':
(Var("chromium_git")) + '/external/colorama.git@799604a1041e9b3bc5d2789ecbd7e8db2e18e6b8',
'src/third_party/dom_distiller_js/dist':
(Var("chromium_git")) + '/external/github.com/chromium/dom-distiller-dist.git@e21fe06cb71327ec62431f823e783d7b02f97b26',
'src/third_party/ffmpeg':
(Var("chromium_git")) + '/chromium/third_party/ffmpeg.git@b828a1bc02572754455e97508e4b78fc06d5e6fa',
'src/third_party/flac':
(Var("chromium_git")) + '/chromium/deps/flac.git@2c4b86af352b23498315c016dc207e3fb2733fc0',
'src/third_party/hunspell_dictionaries':
(Var("chromium_git")) + '/chromium/deps/hunspell_dictionaries.git@c106afdcec5d3de2622e19f1b3294c47bbd8bd72',
'src/third_party/icu':
(Var("chromium_git")) + '/chromium/deps/icu.git@052cebbb5f0695b797b0053cb302a2ca29b8044a',
'src/third_party/jsoncpp/source':
(Var("chromium_git")) + '/external/github.com/open-source-parsers/jsoncpp.git@f572e8e42e22cfcf5ab0aea26574f408943edfa4',
'src/third_party/leveldatabase/src':
(Var("chromium_git")) + '/external/leveldb.git@706b7f8d43b0aecdc75c5ee49d3e4ef5f27b9faf',
'src/third_party/libaddressinput/src':
(Var("chromium_git")) + '/external/libaddressinput.git@5eeeb797e79fa01503fcdcbebdc50036fac023ef',
'src/third_party/libexif/sources':
(Var("chromium_git")) + '/chromium/deps/libexif/sources.git@9d467f7d21e4749ee22ee7520e561ac7b38484b9',
'src/third_party/libjingle/source/talk':
(Var("chromium_git")) + '/external/webrtc/trunk/talk.git@a4cc90bc9bfb5cc932075aebccb734e38932b107',
# TODO(terry): Hash different between original and git mirror above is new hash below is original hash. Some CL though.
# (Var("chromium_git")) + '/external/webrtc/trunk/talk.git@04170d694b177d0e4b2c4f191daad36e88f765b2',
'src/third_party/libjpeg_turbo':
(Var("chromium_git")) + '/chromium/deps/libjpeg_turbo.git@e4e75037f29745f1546b6ebf5cf532e841c04c2c',
'src/third_party/libphonenumber/src/phonenumbers':
(Var("chromium_git")) + '/external/libphonenumber/cpp/src/phonenumbers.git@0d6e3e50e17c94262ad1ca3b7d52b11223084bca',
'src/third_party/libphonenumber/src/resources':
(Var("chromium_git")) + '/external/libphonenumber/resources.git@b6dfdc7952571ff7ee72643cd88c988cbe966396',
'src/third_party/libphonenumber/src/test':
(Var("chromium_git")) + '/external/libphonenumber/cpp/test.git@f351a7e007f9c9995494499120bbc361ca808a16',
'src/third_party/libsrtp':
(Var("chromium_git")) + '/chromium/deps/libsrtp.git@8eecac0feef4c65e2debb42718a10eab91551f35',
'src/third_party/libvpx_new/source/libvpx':
(Var("chromium_git")) + '/webm/libvpx.git@89cc68252846478fa7f2d570d96ff93776cefac6',
'src/third_party/libwebm/source':
(Var("chromium_git")) + '/webm/libwebm.git@75a6d2da8b63e0c446ec0ce1ac942c2962d959d7',
'src/third_party/libyuv':
(Var("chromium_git")) + '/libyuv/libyuv.git@20343f45c612e485cd898aeaae2250df2d0b2d2d',
'src/third_party/mesa/src':
(Var("chromium_git")) + '/chromium/deps/mesa.git@ef811c6bd4de74e13e7035ca882cc77f85793fef',
'src/third_party/openh264/src':
(Var("chromium_git")) + '/external/github.com/cisco/openh264@b37cda248234162033e3e11b0335f3131cdfe488',
'src/third_party/openmax_dl':
(Var("chromium_git")) + '/external/webrtc/deps/third_party/openmax.git@6670e52d32351145a6b6c198dab3f6a536edf3db',
'src/third_party/opus/src':
(Var("chromium_git")) + '/chromium/deps/opus.git@655cc54c564b84ef2827f0b2152ce3811046201e',
'src/third_party/pdfium':
'https://pdfium.googlesource.com/pdfium.git@58340b0f837343671f1eb033371a41441eae80cd',
'src/third_party/py_trace_event/src':
(Var("chromium_git")) + '/external/py_trace_event.git@dd463ea9e2c430de2b9e53dea57a77b4c3ac9b30',
'src/third_party/pyftpdlib/src':
(Var("chromium_git")) + '/external/pyftpdlib.git@2be6d65e31c7ee6320d059f581f05ae8d89d7e45',
'src/third_party/pywebsocket/src':
(Var("chromium_git")) + '/external/github.com/google/pywebsocket.git@2d7b73c3acbd0f41dcab487ae5c97c6feae06ce2',
'src/third_party/re2/src':
(Var("chromium_git")) + '/external/github.com/google/re2.git@dba3349aba83b5588e85e5ecf2b56c97f2d259b7',
'src/third_party/safe_browsing/testing':
(Var("chromium_git")) + '/external/google-safe-browsing/testing.git@9d7e8064f3ca2e45891470c9b5b1dce54af6a9d6',
'src/third_party/scons-2.0.1':
(Var("chromium_git")) + '/native_client/src/third_party/scons-2.0.1.git@1c1550e17fc26355d08627fbdec13d8291227067',
'src/third_party/sfntly/src':
(Var("chromium_git")) + '/external/github.com/googlei18n/sfntly.git@130f832eddf98467e6578b548cb74ce17d04a26d',
'src/third_party/skia':
(Var("chromium_git")) + '/skia.git@b95c8954fceebf67629d894d26cf57a170507612',
'src/third_party/smhasher/src':
(Var("chromium_git")) + '/external/smhasher.git@e87738e57558e0ec472b2fc3a643b838e5b6e88f',
'src/third_party/snappy/src':
(Var("chromium_git")) + '/external/snappy.git@762bb32f0c9d2f31ba4958c7c0933d22e80c20bf',
'src/third_party/usrsctp/usrsctplib':
(Var("chromium_git")) + '/external/github.com/sctplab/usrsctp@c60ec8b35c3fe6027d7a3faae89d1c8d7dd3ce98',
'src/third_party/webdriver/pylib':
(Var("chromium_git")) + '/external/selenium/py.git@5fd78261a75fe08d27ca4835fb6c5ce4b42275bd',
'src/third_party/webgl/src':
(Var("chromium_git")) + '/external/khronosgroup/webgl.git@1012e1f8baea808f3bc9fcef945d66b5f740c32b',
'src/third_party/webpagereplay':
(Var("chromium_git")) + '/external/github.com/chromium/web-page-replay.git@7564939bdf6482d57b9bd5e9c931679f96d8cf75',
# TODO(terry): below directory to enlist temporary commented out to explicitly pull in src/third_party/webrtc
# at SHA commit 256ade59023c75dcf2135a4d99a371c09d07e0fe (need to revert src checkin
# https://codereview.chromium.org/2741183002 then uncomment below 2 lines and remove rest
# of comments below those 2 lines.
# 'src/third_party/webrtc':
# (Var("chromium_git")) + '/external/webrtc/trunk/webrtc.git@256ade59023c75dcf2135a4d99a371c09d07e0fe',
# TODO(terry): Above is correct commit - below is a commit that exists on the mirrors.
#
# To work around comment the above SHA and enable the below SHA
# do a gclient sync then after that do this:
#
# > git fetch origin refs/branch-heads/50
# > git checkout -b webrtc_roll_50 256ade59023c75dcf2135a4d99a371c09d07e0
#
# then comment the below SHA and enable the above SHA line.
#
# then gclient sync again, everything will now work locally.
#
# (Var("chromium_git")) + '/external/webrtc/trunk/webrtc.git@780d506ddf7bcba4a3dc04cfe2240c1ae80880f2',
'src/third_party/yasm/source/patched-yasm':
(Var("chromium_git")) + '/chromium/deps/yasm/patched-yasm.git@7da28c6c7c6a1387217352ce02b31754deb54d2a',
'src/tools/gyp':
(Var("chromium_git")) + '/external/gyp.git@ed163ce233f76a950dce1751ac851dbe4b1c00cc',
'src/tools/page_cycler/acid3':
(Var("chromium_git")) + '/chromium/deps/acid3.git@6be0a66a1ebd7ebc5abc1b2f405a945f6d871521',
'src/tools/swarming_client':
(Var("chromium_git")) + '/external/swarming.client.git@a72f46e42dba1335e8001499b4621acad2d26728',
'src/v8':
(Var("chromium_git")) + '/v8/v8.git@45a71919836046560ba8eb349eaf9172857ffe6f',
# Start of Dartium specific deps
"src":
Var("chromium_git") + "/dart/dartium/src.git" + "@" +
Var("dartium_chromium_commit"),
"src/dart/third_party/pkg/args":
(Var("github_mirror") % "args") + Var("args_tag"),
"src/dart/third_party/pkg/barback":
(Var("github_mirror") % "barback") + Var("barback_rev"),
"src/dart/third_party/pkg/charcode":
(Var("github_mirror") % "charcode") + Var("charcode_tag"),
"src/dart/third_party/pkg/crypto":
(Var("github_mirror") % "crypto") + Var("crypto_rev"),
"src/dart/third_party/pkg/csslib":
(Var("github_mirror") % "csslib") + Var("csslib_tag"),
"src/dart/third_party/pkg/dart2js_info":
(Var("github_mirror") % "dart2js_info") + Var("dart2js_info_tag"),
"src/dart/third_party/pkg/collection":
(Var("github_mirror") % "collection") + Var("collection_tag"),
"src/dart/third_party/pkg/glob":
(Var("github_mirror") % "glob") + Var("glob_rev"),
"src/dart/third_party/pkg/html":
(Var("github_mirror") % "html") + Var("html_tag"),
"src/dart/third_party/pkg/json_rpc_2":
(Var("github_mirror") % "json_rpc_2") + Var("json_rpc_2_rev"),
"src/dart/third_party/pkg/http":
(Var("github_mirror") % "http") + Var("http_rev"),
"src/dart/third_party/pkg/http_multi_server":
(Var("github_mirror") % "http_multi_server") +
Var("http_multi_server_tag"),
"src/dart/third_party/pkg/http_parser":
(Var("github_mirror") % "http_parser") + Var("http_parser_rev"),
"src/dart/third_party/pkg/http_throttle":
(Var("github_mirror") % "http_throttle") + Var("http_throttle_rev"),
"src/dart/third_party/pkg/logging":
(Var("github_mirror") % "logging") + Var("logging_rev"),
"src/dart/third_party/pkg/matcher":
(Var("github_mirror") % "matcher") + Var("matcher_tag"),
"src/dart/third_party/pkg/metatest":
(Var("github_mirror") % "metatest") + Var("metatest_rev"),
"src/dart/third_party/pkg/mime":
(Var("github_mirror") % "mime") + Var("mime_rev"),
"src/dart/third_party/pkg/oauth2":
(Var("github_mirror") % "oauth2") + Var("oauth2_rev"),
"src/dart/third_party/observatory_pub_packages":
(Var("github_mirror") % "observatory_pub_packages") +
Var("observatory_pub_packages_rev"),
"src/dart/third_party/pkg_tested/package_config":
(Var("github_mirror") % "package_config") + Var("package_config_rev"),
"src/dart/third_party/pkg_tested/package_resolver":
"https://github.com/dart-lang/package_resolver.git" +
Var("package_resolver_tag"),
"src/dart/third_party/pkg/path":
(Var("github_mirror") % "path") + Var("path_rev"),
"src/dart/third_party/pkg/plugin":
(Var("github_mirror") % "plugin") + Var("plugin_tag"),
"src/dart/third_party/pkg/pool":
(Var("github_mirror") % "pool") + Var("pool_rev"),
"src/dart/third_party/pkg/pub":
(Var("github_mirror") % "pub") + Var("pub_rev"),
"src/dart/third_party/pkg/pub_semver":
(Var("github_mirror") % "pub_semver") + Var("pub_semver_tag"),
"src/dart/third_party/pkg/quiver":
Var("chromium_git")
+ "/external/github.com/google/quiver-dart.git"
+ Var("quiver_tag"),
"src/dart/third_party/root_certificates":
(Var("github_mirror") % "root_certificates")
+ Var("root_certificates_rev"),
"src/dart/third_party/pkg/shelf":
(Var("github_mirror") % "shelf") + Var("shelf_rev"),
"src/dart/third_party/pkg/shelf_web_socket":
(Var("github_mirror") % "shelf_web_socket") + Var("shelf_web_socket_rev"),
"src/dart/third_party/pkg/source_span":
(Var("github_mirror") % "source_span") + Var("source_span_rev"),
"src/dart/third_party/pkg/stack_trace":
(Var("github_mirror") % "stack_trace") + Var("stack_trace_tag"),
"src/dart/third_party/pkg/string_scanner":
(Var("github_mirror") % "string_scanner") + Var("string_scanner_rev"),
"src/dart/third_party/pkg/test":
(Var("github_mirror") % "test") + Var("test_tag"),
"src/dart/third_party/pkg/utf":
(Var("github_mirror") % "utf") + Var("utf_rev"),
"src/dart/third_party/pkg/watcher":
(Var("github_mirror") % "watcher") + Var("watcher_tag"),
"src/dart/third_party/pkg/web_components":
(Var("github_mirror") % "web-components") + Var("web_components_rev"),
"src/dart/third_party/pkg/yaml":
(Var("github_mirror") % "yaml") + Var("yaml_rev"),
# TODO(sigmund): should be src/dart/third_party/pkg/unittest (dartbug.com/21949)
"src/dart/pkg/unittest":
(Var("github_mirror") % "test") + Var("unittest_tag"),
"src/dart/third_party/WebCore":
"https://github.com/dart-lang/webcore.git" + Var("WebCore_rev"),
"src/dart/tests/co19/src":
(Var("github_mirror") % "co19") + Var("co19_rev"),
"src/dart/third_party/zlib":
Var("chromium_git") + "/chromium/src/third_party/zlib.git" +
Var("zlib_rev"),
# End of Dartium deps
}
deps_os = {
'android': {
'src/third_party/android_protobuf/src':
(Var("chromium_git")) + '/external/android_protobuf.git@999188d0dc72e97f7fe08bb756958a2cf090f4e7',
'src/third_party/android_tools':
(Var("chromium_git")) + '/android_tools.git@f4c36ad89b2696b37d9cd7ca7d984b691888b188',
'src/third_party/apache-mime4j':
(Var("chromium_git")) + '/chromium/deps/apache-mime4j.git@28cb1108bff4b6cf0a2e86ff58b3d025934ebe3a',
'src/third_party/apache-portable-runtime/src':
(Var("chromium_git")) + '/external/apache-portable-runtime.git@c76a8c4277e09a82eaa229e35246edea1ee0a6a1',
'src/third_party/appurify-python/src':
(Var("chromium_git")) + '/external/github.com/appurify/appurify-python.git@ee7abd5c5ae3106f72b2a0b9d2cb55094688e867',
'src/third_party/cardboard-java/src':
(Var("chromium_git")) + '/external/github.com/googlesamples/cardboard-java.git@e36ee57e72bbd057ddb53b127954177b50e18df7',
'src/third_party/custom_tabs_client/src':
(Var("chromium_git")) + '/external/github.com/GoogleChrome/custom-tabs-client.git@8ae46d26e739899d2e35f462beeb20e9c194d0ab',
'src/third_party/elfutils/src':
(Var("chromium_git")) + '/external/elfutils.git@249673729a7e5dbd5de4f3760bdcaa3d23d154d7',
'src/third_party/errorprone/lib':
(Var("chromium_git")) + '/chromium/third_party/errorprone.git@0eea83b66343133b9c76b7d3288c30321818ebcf',
'src/third_party/findbugs':
(Var("chromium_git")) + '/chromium/deps/findbugs.git@57f05238d3ac77ea0a194813d3065dd780c6e566',
'src/third_party/freetype-android/src':
(Var("chromium_git")) + '/chromium/src/third_party/freetype2.git@a512b0fe7a8d9db0e5aa9c0a4db1e92cb861722d',
'src/third_party/httpcomponents-client':
(Var("chromium_git")) + '/chromium/deps/httpcomponents-client.git@285c4dafc5de0e853fa845dce5773e223219601c',
'src/third_party/httpcomponents-core':
(Var("chromium_git")) + '/chromium/deps/httpcomponents-core.git@9f7180a96f8fa5cab23f793c14b413356d419e62',
'src/third_party/jarjar':
(Var("chromium_git")) + '/chromium/deps/jarjar.git@2e1ead4c68c450e0b77fe49e3f9137842b8b6920',
'src/third_party/jsr-305/src':
(Var("chromium_git")) + '/external/jsr-305.git@642c508235471f7220af6d5df2d3210e3bfc0919',
'src/third_party/junit/src':
(Var("chromium_git")) + '/external/junit.git@45a44647e7306262162e1346b750c3209019f2e1',
'src/third_party/leakcanary/src':
(Var("chromium_git")) + '/external/github.com/square/leakcanary.git@608ded739e036a3aa69db47ac43777dcee506f8e',
'src/third_party/lss':
(Var("chromium_git")) + '/external/linux-syscall-support/lss.git@4fc942258fe5509549333b9487ec018e3c8c5b10',
'src/third_party/mockito/src':
(Var("chromium_git")) + '/external/mockito/mockito.git@4d987dcd923b81525c42b1333e6c4e07440776c3',
'src/third_party/netty-tcnative/src':
(Var("chromium_git")) + '/external/netty-tcnative.git@12d01332921695e974175870175eb14a889313a1',
'src/third_party/netty4/src':
(Var("chromium_git")) + '/external/netty4.git@e0f26303b4ce635365be19414d0ac81f2ef6ba3c',
'src/third_party/requests/src':
(Var("chromium_git")) + '/external/github.com/kennethreitz/requests.git@f172b30356d821d180fa4ecfa3e71c7274a32de4',
'src/third_party/robolectric/lib':
(Var("chromium_git")) + '/chromium/third_party/robolectric.git@6b63c99a8b6967acdb42cbed0adb067c80efc810',
'src/third_party/ub-uiautomator/lib':
(Var("chromium_git")) + '/chromium/third_party/ub-uiautomator.git@00270549ce3161ae72ceb24712618ea28b4f9434'
},
'ios': {
'src/chrome/test/data/perf/canvas_bench': None,
'src/chrome/test/data/perf/frame_rate/content': None,
'src/ios/third_party/fishhook/src':
(Var("chromium_git")) + '/external/github.com/facebook/fishhook.git@d172d5247aa590c25d0b1885448bae76036ea22c',
'src/ios/third_party/gcdwebserver/src':
(Var("chromium_git")) + '/external/github.com/swisspol/GCDWebServer.git@3d5fd0b8281a7224c057deb2d17709b5bea64836',
'src/ios/third_party/ochamcrest/src':
(Var("chromium_git")) + '/external/github.com/hamcrest/OCHamcrest.git@5b50930c66d1e537918a87eef0943d6750729dc5',
'src/native_client': None,
'src/third_party/class-dump/src':
(Var("chromium_git")) + '/external/github.com/nygard/class-dump.git@978d177ca6f0d2e5e34acf3e8dadc63e3140ebbc',
'src/third_party/ffmpeg': None,
'src/third_party/google_toolbox_for_mac/src':
(Var("chromium_git")) + '/external/github.com/google/google-toolbox-for-mac.git@401878398253074c515c03cb3a3f8bb0cc8da6e9',
'src/third_party/hunspell_dictionaries': None,
'src/third_party/nss':
(Var("chromium_git")) + '/chromium/deps/nss.git@225bfc39c93dfb7c7d0d1162f81e9bb5cd356c30',
'src/third_party/webgl': None
},
'mac': {
'src/chrome/installer/mac/third_party/xz/xz':
(Var("chromium_git")) + '/chromium/deps/xz.git@eecaf55632ca72e90eb2641376bce7cdbc7284f7',
# Dartium deps_os
'src/chrome/tools/test/reference_build/chrome_mac': None,
'src/third_party/google_toolbox_for_mac/src':
(Var("chromium_git")) + '/external/github.com/google/google-toolbox-for-mac.git@401878398253074c515c03cb3a3f8bb0cc8da6e9',
'src/third_party/lighttpd':
(Var("chromium_git")) + '/chromium/deps/lighttpd.git@9dfa55d15937a688a92cbf2b7a8621b0927d06eb',
'src/third_party/nss':
(Var("chromium_git")) + '/chromium/deps/nss.git@225bfc39c93dfb7c7d0d1162f81e9bb5cd356c30',
'src/third_party/pdfsqueeze':
(Var("chromium_git")) + '/external/pdfsqueeze.git@5936b871e6a087b7e50d4cbcb122378d8a07499f'
},
'unix': {
# Dartium deps_os
'src/chrome/tools/test/reference_build/chrome_linux': None,
'src/third_party/chromite':
(Var("chromium_git")) + '/chromiumos/chromite.git@e19f83ba227bf1ec0077f5d3a816a415f1dd88d0',
'src/third_party/cros_system_api':
(Var("chromium_git")) + '/chromiumos/platform/system_api.git@7d0047203cf4263940e92d50b0725d0faf4d9281',
'src/third_party/deqp/src':
'https://android.googlesource.com/platform/external/deqp@cc0ded6c77267bbb14d21aac358fc5d9690c07f8',
'src/third_party/fontconfig/src':
(Var("chromium_git")) + '/external/fontconfig.git@f16c3118e25546c1b749f9823c51827a60aeb5c1',
'src/third_party/freetype-android/src':
(Var("chromium_git")) + '/chromium/src/third_party/freetype2.git@a512b0fe7a8d9db0e5aa9c0a4db1e92cb861722d',
'src/third_party/freetype2/src':
(Var("chromium_git")) + '/chromium/src/third_party/freetype2.git@fc1532a7c4c592f24a4c1a0261d2845524ca5cff',
'src/third_party/liblouis/src':
(Var("chromium_git")) + '/external/liblouis-github.git@5f9c03f2a3478561deb6ae4798175094be8a26c2',
'src/third_party/lss':
(Var("chromium_git")) + '/external/linux-syscall-support/lss.git@4fc942258fe5509549333b9487ec018e3c8c5b10',
'src/third_party/minigbm/src':
(Var("chromium_git")) + '/chromiumos/platform/minigbm.git@f9d2ab79a15a1bb6a1307f3b608964c81c27791b',
'src/third_party/pyelftools':
(Var("chromium_git")) + '/chromiumos/third_party/pyelftools.git@bdc1d380acd88d4bfaf47265008091483b0d614e',
'src/third_party/wayland-protocols/src':
(Var("chromium_git")) + '/external/anongit.freedesktop.org/git/wayland/wayland-protocols.git@596dfda882a51c05699bcb28a8459ce936a138db',
'src/third_party/wayland/src':
(Var("chromium_git")) + '/external/anongit.freedesktop.org/git/wayland/wayland.git@7ed00c1de77afbab23f4908fbd9d60ec070c209b',
'src/third_party/wds/src':
(Var("chromium_git")) + '/external/github.com/01org/wds@f187dda5fccaad08e168dc6657109325f42c648e',
'src/third_party/xdg-utils':
(Var("chromium_git")) + '/chromium/deps/xdg-utils.git@d80274d5869b17b8c9067a1022e4416ee7ed5e0d'
},
'win': {
# Dartium deps_os
'src/chrome/tools/test/reference_build/chrome_win': None,
'src/third_party/bison':
(Var("chromium_git")) + '/chromium/deps/bison.git@083c9a45e4affdd5464ee2b224c2df649c6e26c3',
'src/third_party/cygwin':
(Var("chromium_git")) + '/chromium/deps/cygwin.git@c89e446b273697fadf3a10ff1007a97c0b7de6df',
'src/third_party/deqp/src':
'https://android.googlesource.com/platform/external/deqp@cc0ded6c77267bbb14d21aac358fc5d9690c07f8',
'src/third_party/gnu_binutils':
(Var("chromium_git")) + '/native_client/deps/third_party/gnu_binutils.git@f4003433b61b25666565690caf3d7a7a1a4ec436',
'src/third_party/gperf':
(Var("chromium_git")) + '/chromium/deps/gperf.git@d892d79f64f9449770443fb06da49b5a1e5d33c1',
'src/third_party/lighttpd':
(Var("chromium_git")) + '/chromium/deps/lighttpd.git@9dfa55d15937a688a92cbf2b7a8621b0927d06eb',
'src/third_party/mingw-w64/mingw/bin':
(Var("chromium_git")) + '/native_client/deps/third_party/mingw-w64/mingw/bin.git@3cc8b140b883a9fe4986d12cfd46c16a093d3527',
'src/third_party/nacl_sdk_binaries':
(Var("chromium_git")) + '/chromium/deps/nacl_sdk_binaries.git@759dfca03bdc774da7ecbf974f6e2b84f43699a5',
'src/third_party/nss':
(Var("chromium_git")) + '/chromium/deps/nss.git@225bfc39c93dfb7c7d0d1162f81e9bb5cd356c30',
'src/third_party/pefile':
(Var("chromium_git")) + '/external/pefile.git@72c6ae42396cb913bcab63c15585dc3b5c3f92f1',
'src/third_party/perl':
(Var("chromium_git")) + '/chromium/deps/perl.git@ac0d98b5cee6c024b0cffeb4f8f45b6fc5ccdb78',
'src/third_party/psyco_win32':
(Var("chromium_git")) + '/chromium/deps/psyco_win32.git@f5af9f6910ee5a8075bbaeed0591469f1661d868',
'src/third_party/yasm/binaries':
(Var("chromium_git")) + '/chromium/deps/yasm/binaries.git@52f9b3f4b0aa06da24ef8b123058bb61ee468881'
}
}
hooks = [
{
# Dartium hooks start
'action': ['python', 'src/dart/tools/dartium/generate_dart_vm_version.py'],
'pattern': 'dart',
# Dartium hooks end
'name':
'landmines'
},
{
'action': [
'python',
'src/build/download_nacl_toolchains.py',
'--mode',
'nacl_core_sdk',
'sync',
'--extract'
],
'pattern':
'.',
'name':
'nacltools'
},
{
'action': [
'python',
'src/build/android/play_services/update.py',
'download'
],
'pattern':
'.',
'name':
'sdkextras'
},
{
'action': [
'python',
'src/build/linux/sysroot_scripts/install-sysroot.py',
'--running-as-hook'
],
'pattern':
'.',
'name':
'sysroot'
},
{
'action': [
'python',
'src/build/vs_toolchain.py',
'update'
],
'pattern':
'.',
'name':
'win_toolchain'
},
{
'action': [
'python',
'src/third_party/binutils/download.py'
],
'pattern':
'src/third_party/binutils',
'name':
'binutils'
},
{
'action': [
'python',
'src/tools/clang/scripts/update.py',
'--if-needed'
],
'pattern':
'.',
'name':
'clang'
},
{
'action': [
'python',
'src/build/util/lastchange.py',
'-o',
'src/build/util/LASTCHANGE'
],
'pattern':
'.',
'name':
'lastchange'
},
{
'action': [
'python',
'src/build/util/lastchange.py',
'--git-hash-only',
'-s',
'src/third_party/WebKit',
'-o',
'src/build/util/LASTCHANGE.blink'
],
'pattern':
'.',
'name':
'lastchange_blink'
},
{
'action': [
'download_from_google_storage',
'--no_resume',
'--platform=win32',
'--no_auth',
'--bucket',
'chromium-gn',
'-s',
'src/buildtools/win/gn.exe.sha1'
],
'pattern':
'.',
'name':
'gn_win'
},
{
'action': [
'download_from_google_storage',
'--no_resume',
'--platform=darwin',
'--no_auth',
'--bucket',
'chromium-gn',
'-s',
'src/buildtools/mac/gn.sha1'
],
'pattern':
'.',
'name':
'gn_mac'
},
{
'action': [
'download_from_google_storage',
'--no_resume',
'--platform=linux*',
'--no_auth',
'--bucket',
'chromium-gn',
'-s',
'src/buildtools/linux64/gn.sha1'
],
'pattern':
'.',
'name':
'gn_linux64'
},
{
'action': [
'download_from_google_storage',
'--no_resume',
'--platform=win32',
'--no_auth',
'--bucket',
'chromium-clang-format',
'-s',
'src/buildtools/win/clang-format.exe.sha1'
],
'pattern':
'.',
'name':
'clang_format_win'
},
{
'action': [
'download_from_google_storage',
'--no_resume',
'--platform=darwin',
'--no_auth',
'--bucket',
'chromium-clang-format',
'-s',
'src/buildtools/mac/clang-format.sha1'
],
'pattern':
'.',
'name':
'clang_format_mac'
},
{
'action': [
'download_from_google_storage',
'--no_resume',
'--platform=linux*',
'--no_auth',
'--bucket',
'chromium-clang-format',
'-s',
'src/buildtools/linux64/clang-format.sha1'
],
'pattern':
'.',
'name':
'clang_format_linux'
},
{
'action': [
'download_from_google_storage',
'--no_resume',
'--platform=darwin',
'--no_auth',
'--bucket',
'chromium-libcpp',
'-s',
'src/third_party/libc++-static/libc++.a.sha1'
],
'pattern':
'.',
'name':
'libcpp_mac'
},
{
'action': [
'download_from_google_storage',
'--no_resume',
'--platform=win32',
'--no_auth',
'--bucket',
'chromium-luci',
'-d',
'src/tools/luci-go/win64'
],
'pattern':
'.',
'name':
'luci-go_win'
},
{
'action': [
'download_from_google_storage',
'--no_resume',
'--platform=darwin',
'--no_auth',
'--bucket',
'chromium-luci',
'-d',
'src/tools/luci-go/mac64'
],
'pattern':
'.',
'name':
'luci-go_mac'
},
{
'action': [
'download_from_google_storage',
'--no_resume',
'--platform=linux*',
'--no_auth',
'--bucket',
'chromium-luci',
'-d',
'src/tools/luci-go/linux64'
],
'pattern':
'.',
'name':
'luci-go_linux'
},
{
'action': [
'download_from_google_storage',
'--no_resume',
'--platform=linux*',
'--no_auth',
'--bucket',
'chromium-eu-strip',
'-s',
'src/build/linux/bin/eu-strip.sha1'
],
'pattern':
'.',
'name':
'eu-strip'
},
{
'action': [
'download_from_google_storage',
'--no_resume',
'--platform=win32',
'--no_auth',
'--bucket',
'chromium-drmemory',
'-s',
'src/third_party/drmemory/drmemory-windows-sfx.exe.sha1'
],
'pattern':
'.',
'name':
'drmemory'
},
{
'action': [
'python',
'src/build/get_syzygy_binaries.py',
'--output-dir=src/third_party/syzygy/binaries',
'--revision=2d774f05a05cbc2f0dd929170c7a62fd549b2c5f',
'--overwrite'
],
'pattern':
'.',
'name':
'syzygy-binaries'
},
{
'action': [
'python',
'src/build/get_syzygy_binaries.py',
'--output-dir=src/third_party/kasko/binaries',
'--revision=266a18d9209be5ca5c5dcd0620942b82a2d238f3',
'--resource=kasko.zip',
'--resource=kasko_symbols.zip',
'--overwrite'
],
'pattern':
'.',
'name':
'kasko'
},
{
'action': [
'download_from_google_storage',
'--no_resume',
'--platform=win32',
'--directory',
'--recursive',
'--no_auth',
'--num_threads=16',
'--bucket',
'chromium-apache-win32',
'src/third_party/apache-win32'
],
'pattern':
'\\.sha1',
'name':
'apache_win32'
},
{
'action': [
'python',
'src/third_party/instrumented_libraries/scripts/download_binaries.py'
],
'pattern':
'\\.sha1',
'name':
'instrumented_libraries'
},
{
'action': [
'python',
'src/tools/remove_stale_pyc_files.py',
'src/android_webview/tools',
'src/gpu/gles2_conform_support',
'src/infra',
'src/ppapi',
'src/printing',
'src/third_party/closure_compiler/build',
'src/tools'
],
'pattern':
'.',
'name':
'remove_stale_pyc_files'
},
{
'action': [
'python',
'src/build/gyp_chromium'
],
'pattern':
'.',
'name':
'gyp'
},
# Dartium hooks start
{
"name": "checked_in_dart_sdks",
"pattern": ".",
"action": [
"download_from_google_storage",
"--no_auth",
"--no_resume",
"--bucket",
"dart-dependencies",
"--recursive",
"--auto_platform",
"--extract",
"--directory",
"src/dart/tools/sdks",
],
},
{
"name": "unittest",
# Unittest is an early version, 0.11.6, of the package "test"
# Do not use it in any new tests.
"pattern": ".",
"action": [
"download_from_google_storage",
"--no_auth",
"--no_resume",
"--bucket",
"dart-dependencies",
"--extract",
"-s",
"src/dart/third_party/pkg/unittest.tar.gz.sha1",
],
}
# Dartium hooks end
]
include_rules = [
'+base',
'+build',
'+ipc',
'+library_loaders',
'+testing',
'+third_party/icu/source/common/unicode',
'+third_party/icu/source/i18n/unicode',
'+url'
]
skip_child_includes = [
'breakpad',
'native_client_sdk',
'out',
'sdch',
'skia',
'testing',
'v8',
'win8'
]
# END OF IMPORTED CHROMIUM DEPS

View file

@ -1,735 +0,0 @@
vars = {
'angle_revision':
'4d76061e2be5b8b005afba8e0c145592c3b04527',
'boringssl_revision':
'6d49157929abdefb155daf2751dc03fd9eb4240c',
'buildspec_platforms':
'chromeos,',
'buildtools_revision':
'14288a03a92856fe1fc296d39e6a25c2d83cd6cf',
'chromium_git':
'https://chromium.googlesource.com',
'deqp_revision':
'cc0ded6c77267bbb14d21aac358fc5d9690c07f8',
'deqp_url':
'https://android.googlesource.com/platform/external/deqp',
'freetype_android_revision':
'a512b0fe7a8d9db0e5aa9c0a4db1e92cb861722d',
'google_toolbox_for_mac_revision':
'401878398253074c515c03cb3a3f8bb0cc8da6e9',
'googlecode_url':
'http://%s.googlecode.com/svn',
'lighttpd_revision':
'9dfa55d15937a688a92cbf2b7a8621b0927d06eb',
'lss_revision':
'4fc942258fe5509549333b9487ec018e3c8c5b10',
'nacl_revision':
'd182b0a028d44ba9767ae25b30cf3986a7e72e99',
'nss_revision':
'225bfc39c93dfb7c7d0d1162f81e9bb5cd356c30',
'openmax_dl_revision':
'6670e52d32351145a6b6c198dab3f6a536edf3db',
'pdfium_revision':
'8ba5b59356d506d3b9e976e7422e69bbd5bec8d6',
'sfntly_revision':
'130f832eddf98467e6578b548cb74ce17d04a26d',
'skia_revision':
'82e26bf23923f20828c850d1a0e01d8bde69cfff',
'swarming_revision':
'a72f46e42dba1335e8001499b4621acad2d26728',
'v8_revision':
'ad16e6c2cbd2c6b0f2e8ff944ac245561c682ac2'
}
allowed_hosts = [
'android.googlesource.com',
'boringssl.googlesource.com',
'chromium.googlesource.com',
'pdfium.googlesource.com'
]
deps = {
'src/breakpad/src':
(Var("chromium_git")) + '/breakpad/breakpad/src.git@481608d284106df9400d447e95574799670cabaf',
'src/buildtools':
(Var("chromium_git")) + '/chromium/buildtools.git@14288a03a92856fe1fc296d39e6a25c2d83cd6cf',
'src/chrome/test/data/perf/canvas_bench':
(Var("chromium_git")) + '/chromium/canvas_bench.git@a7b40ea5ae0239517d78845a5fc9b12976bfc732',
'src/chrome/test/data/perf/frame_rate/content':
(Var("chromium_git")) + '/chromium/frame_rate/content.git@c10272c88463efeef6bb19c9ec07c42bc8fe22b9',
'src/media/cdm/api':
(Var("chromium_git")) + '/chromium/cdm.git@1dea7088184dec2ebe4a8b3800aabb0afbb4b88a',
'src/native_client':
(Var("chromium_git")) + '/native_client/src/native_client.git@fb00463cb1ebd46a46c050101f8b6a6c999d5dc1',
'src/sdch/open-vcdiff':
(Var("chromium_git")) + '/external/github.com/google/open-vcdiff.git@21d7d0b9c3d0c3ccbdb221c85ae889373f0a2a58',
'src/testing/gmock':
(Var("chromium_git")) + '/external/googlemock.git@0421b6f358139f02e102c9c332ce19a33faf75be',
'src/testing/gtest':
(Var("chromium_git")) + '/external/github.com/google/googletest.git@6f8a66431cb592dad629028a50b3dd418a408c87',
'src/third_party/angle':
(Var("chromium_git")) + '/angle/angle.git@c46018b8598dad46f6834411f27e12e90bb62a56',
'src/third_party/bidichecker':
(Var("chromium_git")) + '/external/bidichecker/lib.git@97f2aa645b74c28c57eca56992235c79850fa9e0',
'src/third_party/boringssl/src':
'https://boringssl.googlesource.com/boringssl.git@c880e42ba1c8032d4cdde2aba0541d8a9d9fa2e9',
'src/third_party/catapult':
(Var("chromium_git")) + '/external/github.com/catapult-project/catapult.git@a489be785184f64356555a8170452a6d6880cc5d',
'src/third_party/cld_2/src':
(Var("chromium_git")) + '/external/github.com/CLD2Owners/cld2.git@84b58a5d7690ebf05a91406f371ce00c3daf31c0',
'src/third_party/colorama/src':
(Var("chromium_git")) + '/external/colorama.git@799604a1041e9b3bc5d2789ecbd7e8db2e18e6b8',
'src/third_party/dom_distiller_js/dist':
(Var("chromium_git")) + '/external/github.com/chromium/dom-distiller-dist.git@e21fe06cb71327ec62431f823e783d7b02f97b26',
'src/third_party/ffmpeg':
(Var("chromium_git")) + '/chromium/third_party/ffmpeg.git@b828a1bc02572754455e97508e4b78fc06d5e6fa',
'src/third_party/flac':
(Var("chromium_git")) + '/chromium/deps/flac.git@2c4b86af352b23498315c016dc207e3fb2733fc0',
'src/third_party/hunspell_dictionaries':
(Var("chromium_git")) + '/chromium/deps/hunspell_dictionaries.git@c106afdcec5d3de2622e19f1b3294c47bbd8bd72',
'src/third_party/icu':
(Var("chromium_git")) + '/chromium/deps/icu.git@052cebbb5f0695b797b0053cb302a2ca29b8044a',
'src/third_party/jsoncpp/source':
(Var("chromium_git")) + '/external/github.com/open-source-parsers/jsoncpp.git@f572e8e42e22cfcf5ab0aea26574f408943edfa4',
'src/third_party/leveldatabase/src':
(Var("chromium_git")) + '/external/leveldb.git@706b7f8d43b0aecdc75c5ee49d3e4ef5f27b9faf',
'src/third_party/libaddressinput/src':
(Var("chromium_git")) + '/external/libaddressinput.git@5eeeb797e79fa01503fcdcbebdc50036fac023ef',
'src/third_party/libexif/sources':
(Var("chromium_git")) + '/chromium/deps/libexif/sources.git@9d467f7d21e4749ee22ee7520e561ac7b38484b9',
'src/third_party/libjingle/source/talk':
(Var("chromium_git")) + '/external/webrtc/trunk/talk.git@a4cc90bc9bfb5cc932075aebccb734e38932b107',
# TODO(terry): Hash different between original and git mirror above is new hash below is original hash. Some CL though.
# (Var("chromium_git")) + '/external/webrtc/trunk/talk.git@04170d694b177d0e4b2c4f191daad36e88f765b2',
'src/third_party/libjpeg_turbo':
(Var("chromium_git")) + '/chromium/deps/libjpeg_turbo.git@e4e75037f29745f1546b6ebf5cf532e841c04c2c',
'src/third_party/libphonenumber/src/phonenumbers':
(Var("chromium_git")) + '/external/libphonenumber/cpp/src/phonenumbers.git@0d6e3e50e17c94262ad1ca3b7d52b11223084bca',
'src/third_party/libphonenumber/src/resources':
(Var("chromium_git")) + '/external/libphonenumber/resources.git@b6dfdc7952571ff7ee72643cd88c988cbe966396',
'src/third_party/libphonenumber/src/test':
(Var("chromium_git")) + '/external/libphonenumber/cpp/test.git@f351a7e007f9c9995494499120bbc361ca808a16',
'src/third_party/libsrtp':
(Var("chromium_git")) + '/chromium/deps/libsrtp.git@8eecac0feef4c65e2debb42718a10eab91551f35',
'src/third_party/libvpx_new/source/libvpx':
(Var("chromium_git")) + '/webm/libvpx.git@89cc68252846478fa7f2d570d96ff93776cefac6',
'src/third_party/libwebm/source':
(Var("chromium_git")) + '/webm/libwebm.git@75a6d2da8b63e0c446ec0ce1ac942c2962d959d7',
'src/third_party/libyuv':
(Var("chromium_git")) + '/libyuv/libyuv.git@20343f45c612e485cd898aeaae2250df2d0b2d2d',
'src/third_party/mesa/src':
(Var("chromium_git")) + '/chromium/deps/mesa.git@ef811c6bd4de74e13e7035ca882cc77f85793fef',
'src/third_party/openh264/src':
(Var("chromium_git")) + '/external/github.com/cisco/openh264@b37cda248234162033e3e11b0335f3131cdfe488',
'src/third_party/openmax_dl':
(Var("chromium_git")) + '/external/webrtc/deps/third_party/openmax.git@6670e52d32351145a6b6c198dab3f6a536edf3db',
'src/third_party/opus/src':
(Var("chromium_git")) + '/chromium/deps/opus.git@655cc54c564b84ef2827f0b2152ce3811046201e',
'src/third_party/pdfium':
'https://pdfium.googlesource.com/pdfium.git@58340b0f837343671f1eb033371a41441eae80cd',
'src/third_party/py_trace_event/src':
(Var("chromium_git")) + '/external/py_trace_event.git@dd463ea9e2c430de2b9e53dea57a77b4c3ac9b30',
'src/third_party/pyftpdlib/src':
(Var("chromium_git")) + '/external/pyftpdlib.git@2be6d65e31c7ee6320d059f581f05ae8d89d7e45',
'src/third_party/pywebsocket/src':
(Var("chromium_git")) + '/external/github.com/google/pywebsocket.git@2d7b73c3acbd0f41dcab487ae5c97c6feae06ce2',
'src/third_party/re2/src':
(Var("chromium_git")) + '/external/github.com/google/re2.git@dba3349aba83b5588e85e5ecf2b56c97f2d259b7',
'src/third_party/safe_browsing/testing':
(Var("chromium_git")) + '/external/google-safe-browsing/testing.git@9d7e8064f3ca2e45891470c9b5b1dce54af6a9d6',
'src/third_party/scons-2.0.1':
(Var("chromium_git")) + '/native_client/src/third_party/scons-2.0.1.git@1c1550e17fc26355d08627fbdec13d8291227067',
'src/third_party/sfntly/src':
(Var("chromium_git")) + '/external/github.com/googlei18n/sfntly.git@130f832eddf98467e6578b548cb74ce17d04a26d',
'src/third_party/skia':
(Var("chromium_git")) + '/skia.git@b95c8954fceebf67629d894d26cf57a170507612',
'src/third_party/smhasher/src':
(Var("chromium_git")) + '/external/smhasher.git@e87738e57558e0ec472b2fc3a643b838e5b6e88f',
'src/third_party/snappy/src':
(Var("chromium_git")) + '/external/snappy.git@762bb32f0c9d2f31ba4958c7c0933d22e80c20bf',
'src/third_party/usrsctp/usrsctplib':
(Var("chromium_git")) + '/external/github.com/sctplab/usrsctp@c60ec8b35c3fe6027d7a3faae89d1c8d7dd3ce98',
'src/third_party/webdriver/pylib':
(Var("chromium_git")) + '/external/selenium/py.git@5fd78261a75fe08d27ca4835fb6c5ce4b42275bd',
'src/third_party/webgl/src':
(Var("chromium_git")) + '/external/khronosgroup/webgl.git@1012e1f8baea808f3bc9fcef945d66b5f740c32b',
'src/third_party/webpagereplay':
(Var("chromium_git")) + '/external/github.com/chromium/web-page-replay.git@7564939bdf6482d57b9bd5e9c931679f96d8cf75',
# TODO(terry): below directory to enlist temporary commented out to explicitly pull in src/third_party/webrtc
# at SHA commit 256ade59023c75dcf2135a4d99a371c09d07e0fe (need to revert src checkin
# https://codereview.chromium.org/2741183002 then uncomment below 2 lines and remove rest
# of comments below those 2 lines.
# 'src/third_party/webrtc':
# (Var("chromium_git")) + '/external/webrtc/trunk/webrtc.git@256ade59023c75dcf2135a4d99a371c09d07e0fe',
# TODO(terry): Above is correct commit - below is a commit that exists on the mirrors.
#
# To work around comment the above SHA and enable the below SHA
# do a gclient sync then after that do this:
#
# > git fetch origin refs/branch-heads/50
# > git checkout -b webrtc_roll_50 256ade59023c75dcf2135a4d99a371c09d07e0
#
# then comment the below SHA and enable the above SHA line.
#
# then gclient sync again, everything will now work locally.
#
# (Var("chromium_git")) + '/external/webrtc/trunk/webrtc.git@780d506ddf7bcba4a3dc04cfe2240c1ae80880f2',
'src/third_party/yasm/source/patched-yasm':
(Var("chromium_git")) + '/chromium/deps/yasm/patched-yasm.git@7da28c6c7c6a1387217352ce02b31754deb54d2a',
'src/tools/gyp':
(Var("chromium_git")) + '/external/gyp.git@ed163ce233f76a950dce1751ac851dbe4b1c00cc',
'src/tools/page_cycler/acid3':
(Var("chromium_git")) + '/chromium/deps/acid3.git@6be0a66a1ebd7ebc5abc1b2f405a945f6d871521',
'src/tools/swarming_client':
(Var("chromium_git")) + '/external/swarming.client.git@a72f46e42dba1335e8001499b4621acad2d26728',
'src/v8':
(Var("chromium_git")) + '/v8/v8.git@45a71919836046560ba8eb349eaf9172857ffe6f'
}
deps_os = {
'android': {
'src/third_party/android_protobuf/src':
(Var("chromium_git")) + '/external/android_protobuf.git@999188d0dc72e97f7fe08bb756958a2cf090f4e7',
'src/third_party/android_tools':
(Var("chromium_git")) + '/android_tools.git@f4c36ad89b2696b37d9cd7ca7d984b691888b188',
'src/third_party/apache-mime4j':
(Var("chromium_git")) + '/chromium/deps/apache-mime4j.git@28cb1108bff4b6cf0a2e86ff58b3d025934ebe3a',
'src/third_party/apache-portable-runtime/src':
(Var("chromium_git")) + '/external/apache-portable-runtime.git@c76a8c4277e09a82eaa229e35246edea1ee0a6a1',
'src/third_party/appurify-python/src':
(Var("chromium_git")) + '/external/github.com/appurify/appurify-python.git@ee7abd5c5ae3106f72b2a0b9d2cb55094688e867',
'src/third_party/cardboard-java/src':
(Var("chromium_git")) + '/external/github.com/googlesamples/cardboard-java.git@e36ee57e72bbd057ddb53b127954177b50e18df7',
'src/third_party/custom_tabs_client/src':
(Var("chromium_git")) + '/external/github.com/GoogleChrome/custom-tabs-client.git@8ae46d26e739899d2e35f462beeb20e9c194d0ab',
'src/third_party/elfutils/src':
(Var("chromium_git")) + '/external/elfutils.git@249673729a7e5dbd5de4f3760bdcaa3d23d154d7',
'src/third_party/errorprone/lib':
(Var("chromium_git")) + '/chromium/third_party/errorprone.git@0eea83b66343133b9c76b7d3288c30321818ebcf',
'src/third_party/findbugs':
(Var("chromium_git")) + '/chromium/deps/findbugs.git@57f05238d3ac77ea0a194813d3065dd780c6e566',
'src/third_party/freetype-android/src':
(Var("chromium_git")) + '/chromium/src/third_party/freetype2.git@a512b0fe7a8d9db0e5aa9c0a4db1e92cb861722d',
'src/third_party/httpcomponents-client':
(Var("chromium_git")) + '/chromium/deps/httpcomponents-client.git@285c4dafc5de0e853fa845dce5773e223219601c',
'src/third_party/httpcomponents-core':
(Var("chromium_git")) + '/chromium/deps/httpcomponents-core.git@9f7180a96f8fa5cab23f793c14b413356d419e62',
'src/third_party/jarjar':
(Var("chromium_git")) + '/chromium/deps/jarjar.git@2e1ead4c68c450e0b77fe49e3f9137842b8b6920',
'src/third_party/jsr-305/src':
(Var("chromium_git")) + '/external/jsr-305.git@642c508235471f7220af6d5df2d3210e3bfc0919',
'src/third_party/junit/src':
(Var("chromium_git")) + '/external/junit.git@45a44647e7306262162e1346b750c3209019f2e1',
'src/third_party/leakcanary/src':
(Var("chromium_git")) + '/external/github.com/square/leakcanary.git@608ded739e036a3aa69db47ac43777dcee506f8e',
'src/third_party/lss':
(Var("chromium_git")) + '/external/linux-syscall-support/lss.git@4fc942258fe5509549333b9487ec018e3c8c5b10',
'src/third_party/mockito/src':
(Var("chromium_git")) + '/external/mockito/mockito.git@4d987dcd923b81525c42b1333e6c4e07440776c3',
'src/third_party/netty-tcnative/src':
(Var("chromium_git")) + '/external/netty-tcnative.git@12d01332921695e974175870175eb14a889313a1',
'src/third_party/netty4/src':
(Var("chromium_git")) + '/external/netty4.git@e0f26303b4ce635365be19414d0ac81f2ef6ba3c',
'src/third_party/requests/src':
(Var("chromium_git")) + '/external/github.com/kennethreitz/requests.git@f172b30356d821d180fa4ecfa3e71c7274a32de4',
'src/third_party/robolectric/lib':
(Var("chromium_git")) + '/chromium/third_party/robolectric.git@6b63c99a8b6967acdb42cbed0adb067c80efc810',
'src/third_party/ub-uiautomator/lib':
(Var("chromium_git")) + '/chromium/third_party/ub-uiautomator.git@00270549ce3161ae72ceb24712618ea28b4f9434'
},
'ios': {
'src/chrome/test/data/perf/canvas_bench': None,
'src/chrome/test/data/perf/frame_rate/content': None,
'src/ios/third_party/fishhook/src':
(Var("chromium_git")) + '/external/github.com/facebook/fishhook.git@d172d5247aa590c25d0b1885448bae76036ea22c',
'src/ios/third_party/gcdwebserver/src':
(Var("chromium_git")) + '/external/github.com/swisspol/GCDWebServer.git@3d5fd0b8281a7224c057deb2d17709b5bea64836',
'src/ios/third_party/ochamcrest/src':
(Var("chromium_git")) + '/external/github.com/hamcrest/OCHamcrest.git@5b50930c66d1e537918a87eef0943d6750729dc5',
'src/native_client': None,
'src/third_party/class-dump/src':
(Var("chromium_git")) + '/external/github.com/nygard/class-dump.git@978d177ca6f0d2e5e34acf3e8dadc63e3140ebbc',
'src/third_party/ffmpeg': None,
'src/third_party/google_toolbox_for_mac/src':
(Var("chromium_git")) + '/external/github.com/google/google-toolbox-for-mac.git@401878398253074c515c03cb3a3f8bb0cc8da6e9',
'src/third_party/hunspell_dictionaries': None,
'src/third_party/nss':
(Var("chromium_git")) + '/chromium/deps/nss.git@225bfc39c93dfb7c7d0d1162f81e9bb5cd356c30',
'src/third_party/webgl': None
},
'mac': {
'src/chrome/installer/mac/third_party/xz/xz':
(Var("chromium_git")) + '/chromium/deps/xz.git@eecaf55632ca72e90eb2641376bce7cdbc7284f7',
'src/chrome/tools/test/reference_build/chrome_mac':
(Var("chromium_git")) + '/chromium/reference_builds/chrome_mac.git@8dc181329e7c5255f83b4b85dc2f71498a237955',
'src/third_party/google_toolbox_for_mac/src':
(Var("chromium_git")) + '/external/github.com/google/google-toolbox-for-mac.git@401878398253074c515c03cb3a3f8bb0cc8da6e9',
'src/third_party/lighttpd':
(Var("chromium_git")) + '/chromium/deps/lighttpd.git@9dfa55d15937a688a92cbf2b7a8621b0927d06eb',
'src/third_party/nss':
(Var("chromium_git")) + '/chromium/deps/nss.git@225bfc39c93dfb7c7d0d1162f81e9bb5cd356c30',
'src/third_party/pdfsqueeze':
(Var("chromium_git")) + '/external/pdfsqueeze.git@5936b871e6a087b7e50d4cbcb122378d8a07499f'
},
'unix': {
'src/chrome/tools/test/reference_build/chrome_linux':
(Var("chromium_git")) + '/chromium/reference_builds/chrome_linux64.git@033d053a528e820e1de3e2db766678d862a86b36',
'src/third_party/chromite':
(Var("chromium_git")) + '/chromiumos/chromite.git@e19f83ba227bf1ec0077f5d3a816a415f1dd88d0',
'src/third_party/cros_system_api':
(Var("chromium_git")) + '/chromiumos/platform/system_api.git@7d0047203cf4263940e92d50b0725d0faf4d9281',
'src/third_party/deqp/src':
'https://android.googlesource.com/platform/external/deqp@cc0ded6c77267bbb14d21aac358fc5d9690c07f8',
'src/third_party/fontconfig/src':
(Var("chromium_git")) + '/external/fontconfig.git@f16c3118e25546c1b749f9823c51827a60aeb5c1',
'src/third_party/freetype-android/src':
(Var("chromium_git")) + '/chromium/src/third_party/freetype2.git@a512b0fe7a8d9db0e5aa9c0a4db1e92cb861722d',
'src/third_party/freetype2/src':
(Var("chromium_git")) + '/chromium/src/third_party/freetype2.git@fc1532a7c4c592f24a4c1a0261d2845524ca5cff',
'src/third_party/liblouis/src':
(Var("chromium_git")) + '/external/liblouis-github.git@5f9c03f2a3478561deb6ae4798175094be8a26c2',
'src/third_party/lss':
(Var("chromium_git")) + '/external/linux-syscall-support/lss.git@4fc942258fe5509549333b9487ec018e3c8c5b10',
'src/third_party/minigbm/src':
(Var("chromium_git")) + '/chromiumos/platform/minigbm.git@f9d2ab79a15a1bb6a1307f3b608964c81c27791b',
'src/third_party/pyelftools':
(Var("chromium_git")) + '/chromiumos/third_party/pyelftools.git@bdc1d380acd88d4bfaf47265008091483b0d614e',
'src/third_party/wayland-protocols/src':
(Var("chromium_git")) + '/external/anongit.freedesktop.org/git/wayland/wayland-protocols.git@596dfda882a51c05699bcb28a8459ce936a138db',
'src/third_party/wayland/src':
(Var("chromium_git")) + '/external/anongit.freedesktop.org/git/wayland/wayland.git@7ed00c1de77afbab23f4908fbd9d60ec070c209b',
'src/third_party/wds/src':
(Var("chromium_git")) + '/external/github.com/01org/wds@f187dda5fccaad08e168dc6657109325f42c648e',
'src/third_party/xdg-utils':
(Var("chromium_git")) + '/chromium/deps/xdg-utils.git@d80274d5869b17b8c9067a1022e4416ee7ed5e0d'
},
'win': {
'src/chrome/tools/test/reference_build/chrome_win':
(Var("chromium_git")) + '/chromium/reference_builds/chrome_win.git@f8a3a845dfc845df6b14280f04f86a61959357ef',
'src/third_party/bison':
(Var("chromium_git")) + '/chromium/deps/bison.git@083c9a45e4affdd5464ee2b224c2df649c6e26c3',
'src/third_party/cygwin':
(Var("chromium_git")) + '/chromium/deps/cygwin.git@c89e446b273697fadf3a10ff1007a97c0b7de6df',
'src/third_party/deqp/src':
'https://android.googlesource.com/platform/external/deqp@cc0ded6c77267bbb14d21aac358fc5d9690c07f8',
'src/third_party/gnu_binutils':
(Var("chromium_git")) + '/native_client/deps/third_party/gnu_binutils.git@f4003433b61b25666565690caf3d7a7a1a4ec436',
'src/third_party/gperf':
(Var("chromium_git")) + '/chromium/deps/gperf.git@d892d79f64f9449770443fb06da49b5a1e5d33c1',
'src/third_party/lighttpd':
(Var("chromium_git")) + '/chromium/deps/lighttpd.git@9dfa55d15937a688a92cbf2b7a8621b0927d06eb',
'src/third_party/mingw-w64/mingw/bin':
(Var("chromium_git")) + '/native_client/deps/third_party/mingw-w64/mingw/bin.git@3cc8b140b883a9fe4986d12cfd46c16a093d3527',
'src/third_party/nacl_sdk_binaries':
(Var("chromium_git")) + '/chromium/deps/nacl_sdk_binaries.git@759dfca03bdc774da7ecbf974f6e2b84f43699a5',
'src/third_party/nss':
(Var("chromium_git")) + '/chromium/deps/nss.git@225bfc39c93dfb7c7d0d1162f81e9bb5cd356c30',
'src/third_party/pefile':
(Var("chromium_git")) + '/external/pefile.git@72c6ae42396cb913bcab63c15585dc3b5c3f92f1',
'src/third_party/perl':
(Var("chromium_git")) + '/chromium/deps/perl.git@ac0d98b5cee6c024b0cffeb4f8f45b6fc5ccdb78',
'src/third_party/psyco_win32':
(Var("chromium_git")) + '/chromium/deps/psyco_win32.git@f5af9f6910ee5a8075bbaeed0591469f1661d868',
'src/third_party/yasm/binaries':
(Var("chromium_git")) + '/chromium/deps/yasm/binaries.git@52f9b3f4b0aa06da24ef8b123058bb61ee468881'
}
}
hooks = [
{
'action': [
'python',
'src/build/landmines.py'
],
'pattern':
'.',
'name':
'landmines'
},
{
'action': [
'python',
'src/build/download_nacl_toolchains.py',
'--mode',
'nacl_core_sdk',
'sync',
'--extract'
],
'pattern':
'.',
'name':
'nacltools'
},
{
'action': [
'python',
'src/build/android/play_services/update.py',
'download'
],
'pattern':
'.',
'name':
'sdkextras'
},
{
'action': [
'python',
'src/build/linux/sysroot_scripts/install-sysroot.py',
'--running-as-hook'
],
'pattern':
'.',
'name':
'sysroot'
},
{
'action': [
'python',
'src/build/vs_toolchain.py',
'update'
],
'pattern':
'.',
'name':
'win_toolchain'
},
{
'action': [
'python',
'src/third_party/binutils/download.py'
],
'pattern':
'src/third_party/binutils',
'name':
'binutils'
},
{
'action': [
'python',
'src/tools/clang/scripts/update.py',
'--if-needed'
],
'pattern':
'.',
'name':
'clang'
},
{
'action': [
'python',
'src/build/util/lastchange.py',
'-o',
'src/build/util/LASTCHANGE'
],
'pattern':
'.',
'name':
'lastchange'
},
{
'action': [
'python',
'src/build/util/lastchange.py',
'--git-hash-only',
'-s',
'src/third_party/WebKit',
'-o',
'src/build/util/LASTCHANGE.blink'
],
'pattern':
'.',
'name':
'lastchange_blink'
},
{
'action': [
'download_from_google_storage',
'--no_resume',
'--platform=win32',
'--no_auth',
'--bucket',
'chromium-gn',
'-s',
'src/buildtools/win/gn.exe.sha1'
],
'pattern':
'.',
'name':
'gn_win'
},
{
'action': [
'download_from_google_storage',
'--no_resume',
'--platform=darwin',
'--no_auth',
'--bucket',
'chromium-gn',
'-s',
'src/buildtools/mac/gn.sha1'
],
'pattern':
'.',
'name':
'gn_mac'
},
{
'action': [
'download_from_google_storage',
'--no_resume',
'--platform=linux*',
'--no_auth',
'--bucket',
'chromium-gn',
'-s',
'src/buildtools/linux64/gn.sha1'
],
'pattern':
'.',
'name':
'gn_linux64'
},
{
'action': [
'download_from_google_storage',
'--no_resume',
'--platform=win32',
'--no_auth',
'--bucket',
'chromium-clang-format',
'-s',
'src/buildtools/win/clang-format.exe.sha1'
],
'pattern':
'.',
'name':
'clang_format_win'
},
{
'action': [
'download_from_google_storage',
'--no_resume',
'--platform=darwin',
'--no_auth',
'--bucket',
'chromium-clang-format',
'-s',
'src/buildtools/mac/clang-format.sha1'
],
'pattern':
'.',
'name':
'clang_format_mac'
},
{
'action': [
'download_from_google_storage',
'--no_resume',
'--platform=linux*',
'--no_auth',
'--bucket',
'chromium-clang-format',
'-s',
'src/buildtools/linux64/clang-format.sha1'
],
'pattern':
'.',
'name':
'clang_format_linux'
},
{
'action': [
'download_from_google_storage',
'--no_resume',
'--platform=darwin',
'--no_auth',
'--bucket',
'chromium-libcpp',
'-s',
'src/third_party/libc++-static/libc++.a.sha1'
],
'pattern':
'.',
'name':
'libcpp_mac'
},
{
'action': [
'download_from_google_storage',
'--no_resume',
'--platform=win32',
'--no_auth',
'--bucket',
'chromium-luci',
'-d',
'src/tools/luci-go/win64'
],
'pattern':
'.',
'name':
'luci-go_win'
},
{
'action': [
'download_from_google_storage',
'--no_resume',
'--platform=darwin',
'--no_auth',
'--bucket',
'chromium-luci',
'-d',
'src/tools/luci-go/mac64'
],
'pattern':
'.',
'name':
'luci-go_mac'
},
{
'action': [
'download_from_google_storage',
'--no_resume',
'--platform=linux*',
'--no_auth',
'--bucket',
'chromium-luci',
'-d',
'src/tools/luci-go/linux64'
],
'pattern':
'.',
'name':
'luci-go_linux'
},
{
'action': [
'download_from_google_storage',
'--no_resume',
'--platform=linux*',
'--no_auth',
'--bucket',
'chromium-eu-strip',
'-s',
'src/build/linux/bin/eu-strip.sha1'
],
'pattern':
'.',
'name':
'eu-strip'
},
{
'action': [
'download_from_google_storage',
'--no_resume',
'--platform=win32',
'--no_auth',
'--bucket',
'chromium-drmemory',
'-s',
'src/third_party/drmemory/drmemory-windows-sfx.exe.sha1'
],
'pattern':
'.',
'name':
'drmemory'
},
{
'action': [
'python',
'src/build/get_syzygy_binaries.py',
'--output-dir=src/third_party/syzygy/binaries',
'--revision=2d774f05a05cbc2f0dd929170c7a62fd549b2c5f',
'--overwrite'
],
'pattern':
'.',
'name':
'syzygy-binaries'
},
{
'action': [
'python',
'src/build/get_syzygy_binaries.py',
'--output-dir=src/third_party/kasko/binaries',
'--revision=266a18d9209be5ca5c5dcd0620942b82a2d238f3',
'--resource=kasko.zip',
'--resource=kasko_symbols.zip',
'--overwrite'
],
'pattern':
'.',
'name':
'kasko'
},
{
'action': [
'download_from_google_storage',
'--no_resume',
'--platform=win32',
'--directory',
'--recursive',
'--no_auth',
'--num_threads=16',
'--bucket',
'chromium-apache-win32',
'src/third_party/apache-win32'
],
'pattern':
'\\.sha1',
'name':
'apache_win32'
},
{
'action': [
'python',
'src/third_party/instrumented_libraries/scripts/download_binaries.py'
],
'pattern':
'\\.sha1',
'name':
'instrumented_libraries'
},
{
'action': [
'python',
'src/tools/remove_stale_pyc_files.py',
'src/android_webview/tools',
'src/gpu/gles2_conform_support',
'src/infra',
'src/ppapi',
'src/printing',
'src/third_party/closure_compiler/build',
'src/tools'
],
'pattern':
'.',
'name':
'remove_stale_pyc_files'
},
{
'action': [
'python',
'src/build/gyp_chromium'
],
'pattern':
'.',
'name':
'gyp'
}
]
include_rules = [
'+base',
'+build',
'+ipc',
'+library_loaders',
'+testing',
'+third_party/icu/source/common/unicode',
'+third_party/icu/source/i18n/unicode',
'+url'
]
skip_child_includes = [
'breakpad',
'native_client_sdk',
'out',
'sdch',
'skia',
'testing',
'v8',
'win8'
]