Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(867)

Unified Diff: recipes/v8.py

Issue 225743005: Add recipe for v8 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: updates Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gclient_scm.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipes/v8.py
diff --git a/recipes/depot_tools.py b/recipes/v8.py
similarity index 54%
copy from recipes/depot_tools.py
copy to recipes/v8.py
index 1c9f7eee06cc010f775bfad1f4b0049febc526ac..3fc60d7ef28be4527ee162a6da6e971b3ec50482 100644
--- a/recipes/depot_tools.py
+++ b/recipes/v8.py
@@ -1,4 +1,4 @@
-# Copyright 2014 The Chromium Authors. All rights reserved.
+# 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.
@@ -9,13 +9,14 @@ import recipe_util # pylint: disable=F0401
# This class doesn't need an __init__ method, so we disable the warning
# pylint: disable=W0232
-class DepotTools(recipe_util.Recipe):
- """Basic Recipe class for DepotTools."""
+class V8(recipe_util.Recipe):
+ """Basic Recipe class for V8."""
@staticmethod
def fetch_spec(props):
- url = 'https://chromium.googlesource.com/chromium/tools/depot_tools.git'
- solution = { 'name' :'src',
+ ref = 'branch-heads/bleeding_edge'
+ url = 'https://chromium.googlesource.com/external/v8.git@%s' % ref
+ solution = { 'name' :'v8',
'url' : url,
'deps_file': '.DEPS.git',
'managed' : False,
@@ -24,16 +25,12 @@ class DepotTools(recipe_util.Recipe):
}
spec = {
'solutions': [solution],
- 'svn_url': 'svn://svn.chromium.org/chrome',
- 'svn_branch': 'trunk/tools/depot_tools',
- 'svn_ref': 'master',
+ 'svn_url': 'https://v8.googlecode.com/svn',
+ 'svn_branch': 'branches/bleeding_edge',
+ 'svn_ref': 'bleeding_edge',
+ 'svn_prefix': 'branch-heads/',
+ 'with_branch_heads': True,
}
- if props.get('submodule_git_svn_spec'):
- spec['submodule_git_svn_spec'] = props['submodule_git_svn_spec']
- if props.get('target_os'):
- spec['target_os'] = props['target_os'].split(',')
- if props.get('target_os_only'):
- spec['target_os_only'] = props['target_os_only']
checkout_type = 'gclient_git_svn'
if props.get('nosvn'):
checkout_type = 'gclient_git'
@@ -45,11 +42,11 @@ class DepotTools(recipe_util.Recipe):
@staticmethod
def expected_root(_props):
- return 'src'
+ return 'v8'
def main(argv=None):
- return DepotTools().handle_args(argv)
+ return V8().handle_args(argv)
if __name__ == '__main__':
« no previous file with comments | « gclient_scm.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698