| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 'depot_tools/bot_update', | 6 'depot_tools/bot_update', |
| 7 'depot_tools/gclient', | 7 'depot_tools/gclient', |
| 8 'file', | 8 'file', |
| 9 'recipe_engine/path', | 9 'recipe_engine/path', |
| 10 'recipe_engine/platform', | 10 'recipe_engine/platform', |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 if '-x64-' in builder_name: | 23 if '-x64-' in builder_name: |
| 24 gyp_defines.append('target_arch=x64') | 24 gyp_defines.append('target_arch=x64') |
| 25 api.gclient.set_config('dart') # There is no 'dartium' configuration | 25 api.gclient.set_config('dart') # There is no 'dartium' configuration |
| 26 s = api.gclient.c.solutions[0] | 26 s = api.gclient.c.solutions[0] |
| 27 s.name = 'src/dart' | 27 s.name = 'src/dart' |
| 28 s.url = ('https://chromium.googlesource.com/external/github.com/' + | 28 s.url = ('https://chromium.googlesource.com/external/github.com/' + |
| 29 'dart-lang/sdk.git') | 29 'dart-lang/sdk.git') |
| 30 s.deps_file = 'tools/deps/dartium.deps/DEPS' | 30 s.deps_file = 'tools/deps/dartium.deps/DEPS' |
| 31 s.managed = False | 31 s.managed = False |
| 32 s.revision = api.properties.get('revision') | 32 s.revision = api.properties.get('revision') |
| 33 api.bot_update.ensure_checkout(force=True) | 33 api.bot_update.ensure_checkout() |
| 34 | 34 |
| 35 api.gclient.runhooks(env={'GYP_GENERATORS': 'ninja', | 35 api.gclient.runhooks(env={'GYP_GENERATORS': 'ninja', |
| 36 'GYP_DEFINES': ' '.join(gyp_defines)}) | 36 'GYP_DEFINES': ' '.join(gyp_defines)}) |
| 37 api.gclient.c.got_revision_mapping.pop('src', None) | 37 api.gclient.c.got_revision_mapping.pop('src', None) |
| 38 api.gclient.c.got_revision_mapping['src/dart'] = 'got_revision' | 38 api.gclient.c.got_revision_mapping['src/dart'] = 'got_revision' |
| 39 | 39 |
| 40 # gclient api sets Path('[CHECKOUT]') to build/src/dart. We prefer build/src. | 40 # gclient api sets Path('[CHECKOUT]') to build/src/dart. We prefer build/src. |
| 41 api.path['checkout'] = api.path['slave_build'].join('src') | 41 api.path['checkout'] = api.path['slave_build'].join('src') |
| 42 | 42 |
| 43 with api.step.defer_results(): | 43 with api.step.defer_results(): |
| (...skipping 27 matching lines...) Expand all Loading... |
| 71 buildername='dartium-linux-x64-dev', | 71 buildername='dartium-linux-x64-dev', |
| 72 revision='12345') + | 72 revision='12345') + |
| 73 api.platform('linux', 64)) | 73 api.platform('linux', 64)) |
| 74 yield ( | 74 yield ( |
| 75 api.test('dartium-mac-ia32-inc-stable') + | 75 api.test('dartium-mac-ia32-inc-stable') + |
| 76 api.properties.generic( | 76 api.properties.generic( |
| 77 mastername='client.dart', | 77 mastername='client.dart', |
| 78 buildername='dartium-mac-ia32-inc-stable', | 78 buildername='dartium-mac-ia32-inc-stable', |
| 79 revision='12345') + | 79 revision='12345') + |
| 80 api.platform('mac', 32)) | 80 api.platform('mac', 32)) |
| OLD | NEW |