| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 | 2 |
| 3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 4 # for details. All rights reserved. Use of this source code is governed by a | 4 # for details. All rights reserved. Use of this source code is governed by a |
| 5 # BSD-style license that can be found in the LICENSE file. | 5 # BSD-style license that can be found in the LICENSE file. |
| 6 | 6 |
| 7 """ | 7 """ |
| 8 Android buildbot steps. | 8 Android buildbot steps. |
| 9 """ | 9 """ |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 pass | 38 pass |
| 39 | 39 |
| 40 def BuildAndroid(build_info): | 40 def BuildAndroid(build_info): |
| 41 """ | 41 """ |
| 42 Builds the android target. | 42 Builds the android target. |
| 43 | 43 |
| 44 - build_info: the buildInfo object, containing information about what sort of | 44 - build_info: the buildInfo object, containing information about what sort of |
| 45 build and test to be run. | 45 build and test to be run. |
| 46 """ | 46 """ |
| 47 with bot.BuildStep('Build Android'): | 47 with bot.BuildStep('Build Android'): |
| 48 targets = ['dart'] | 48 targets = ['android_embedder'] |
| 49 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, | 49 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, |
| 50 '--os=android ' + ' '.join(targets)] | 50 '--os=android'] + targets |
| 51 print 'Building Android: %s' % (' '.join(args)) | 51 print 'Building Android: %s' % (' '.join(args)) |
| 52 bot.RunProcess(args) | 52 bot.RunProcess(args) |
| 53 | 53 |
| 54 if __name__ == '__main__': | 54 if __name__ == '__main__': |
| 55 bot.RunBot(AndroidConfig, AndroidSteps, build_step=BuildAndroid) | 55 bot.RunBot(AndroidConfig, AndroidSteps, build_step=BuildAndroid) |
| OLD | NEW |