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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 Builds the android target. | 44 Builds the android target. |
45 | 45 |
46 - build_info: the buildInfo object, containing information about what sort of | 46 - build_info: the buildInfo object, containing information about what sort of |
47 build and test to be run. | 47 build and test to be run. |
48 """ | 48 """ |
49 with bot.BuildStep('Build Android'): | 49 with bot.BuildStep('Build Android'): |
50 # TODO(vsm): A temporary hack until we figure out why incremental builds are | 50 # TODO(vsm): A temporary hack until we figure out why incremental builds are |
51 # broken on Android. | 51 # broken on Android. |
52 if os.path.exists('./out/lastHooksTargetOS.txt'): | 52 if os.path.exists('./out/lastHooksTargetOS.txt'): |
53 os.remove('./out/lastHooksTargetOS.txt') | 53 os.remove('./out/lastHooksTargetOS.txt') |
54 targets = ['android_embedder'] | 54 targets = ['samples'] |
55 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, | 55 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, |
56 '--os=android'] + targets | 56 '--os=android'] + targets |
57 print 'Building Android: %s' % (' '.join(args)) | 57 print 'Building Android: %s' % (' '.join(args)) |
58 bot.RunProcess(args) | 58 bot.RunProcess(args) |
59 | 59 |
60 if __name__ == '__main__': | 60 if __name__ == '__main__': |
61 bot.RunBot(AndroidConfig, AndroidSteps, build_step=BuildAndroid) | 61 bot.RunBot(AndroidConfig, AndroidSteps, build_step=BuildAndroid) |
OLD | NEW |