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

Side by Side Diff: scripts/slave/recipes/dart/dartium_build.py

Issue 1917243002: Revert "build: roll infra_paths changes" (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 DEPS = [ 5 DEPS = [
6 'chromium', 6 'chromium',
7 'depot_tools/gclient', 7 'depot_tools/gclient',
8 'depot_tools/infra_paths',
9 'recipe_engine/path', 8 'recipe_engine/path',
10 'recipe_engine/platform', 9 'recipe_engine/platform',
11 'recipe_engine/properties', 10 'recipe_engine/properties',
12 'recipe_engine/python', 11 'recipe_engine/python',
13 ] 12 ]
14 13
15 def RunSteps(api): 14 def RunSteps(api):
16 config_vals = {} 15 config_vals = {}
17 config_vals.update( 16 config_vals.update(
18 dict((str(k), v) for k, v in api.properties.iteritems() if k.isupper()) 17 dict((str(k), v) for k, v in api.properties.iteritems() if k.isupper())
(...skipping 21 matching lines...) Expand all
40 api.gclient.c.got_revision_mapping.pop('src', None) 39 api.gclient.c.got_revision_mapping.pop('src', None)
41 api.gclient.c.got_revision_mapping['src/dart'] = 'got_revision' 40 api.gclient.c.got_revision_mapping['src/dart'] = 'got_revision'
42 if USE_MIRROR: 41 if USE_MIRROR:
43 s.custom_vars.update({ 42 s.custom_vars.update({
44 'dartium_base': 'svn://svn-mirror.golo.chromium.org'}) 43 'dartium_base': 'svn://svn-mirror.golo.chromium.org'})
45 44
46 api.gclient.checkout() 45 api.gclient.checkout()
47 46
48 # gclient api incorrectly sets Path('[CHECKOUT]') to build/src/dartium.deps 47 # gclient api incorrectly sets Path('[CHECKOUT]') to build/src/dartium.deps
49 # because Dartium has its DEPS file in dartium.deps, not directly in src. 48 # because Dartium has its DEPS file in dartium.deps, not directly in src.
50 api.path['checkout'] = api.infra_paths['slave_build'].join('src') 49 api.path['checkout'] = api.path['slave_build'].join('src')
51 50
52 api.chromium.runhooks() 51 api.chromium.runhooks()
53 api.chromium.compile() 52 api.chromium.compile()
54 api.python('archive_build', 53 api.python('archive_build',
55 api.infra_paths['slave_build'].join( 54 api.path['slave_build'].join(
56 'src', 'dart', 'tools', 'dartium', 'multivm_archive.py'), 55 'src', 'dart', 'tools', 'dartium', 'multivm_archive.py'),
57 [s.revision]) 56 [s.revision])
58 57
59 58
60 def GenTests(api): 59 def GenTests(api):
61 for plat in ('win', 'mac', 'linux'): 60 for plat in ('win', 'mac', 'linux'):
62 for bits in (64,): 61 for bits in (64,):
63 for use_mirror in (True, False): 62 for use_mirror in (True, False):
64 yield ( 63 yield (
65 api.test('basic_%s_%s_Mirror%s' % (plat, bits, use_mirror)) + 64 api.test('basic_%s_%s_Mirror%s' % (plat, bits, use_mirror)) +
66 api.properties.generic( 65 api.properties.generic(
67 TARGET_BITS=bits, 66 TARGET_BITS=bits,
68 USE_MIRROR=use_mirror, 67 USE_MIRROR=use_mirror,
69 deps='dartium.deps', 68 deps='dartium.deps',
70 revision='12345') + 69 revision='12345') +
71 api.platform(plat, bits) 70 api.platform(plat, bits)
72 ) 71 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698