| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env 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 import optparse | 8 import optparse |
| 9 import os | 9 import os |
| 10 import shutil | 10 import shutil |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 'android_sdk_tools=%s' % android_sdk_platform_tools | 182 'android_sdk_tools=%s' % android_sdk_platform_tools |
| 183 ] | 183 ] |
| 184 | 184 |
| 185 os.environ['GYP_DEFINES'] = ' '.join(gypDefinesList) | 185 os.environ['GYP_DEFINES'] = ' '.join(gypDefinesList) |
| 186 | 186 |
| 187 | 187 |
| 188 def Execute(args): | 188 def Execute(args): |
| 189 process = subprocess.Popen(args) | 189 process = subprocess.Popen(args) |
| 190 process.wait() | 190 process.wait() |
| 191 if process.returncode != 0: | 191 if process.returncode != 0: |
| 192 raise Error(args[0] + " failed") | 192 raise Exception(args[0] + " failed") |
| 193 | 193 |
| 194 | 194 |
| 195 def GClientRunHooks(): | 195 def GClientRunHooks(): |
| 196 Execute(['gclient', 'runhooks']) | 196 Execute(['gclient', 'runhooks']) |
| 197 | 197 |
| 198 | 198 |
| 199 def RunhooksIfNeeded(host_os, mode, arch, target_os): | 199 def RunhooksIfNeeded(host_os, mode, arch, target_os): |
| 200 if host_os != 'linux': | 200 if host_os != 'linux': |
| 201 return | 201 return |
| 202 build_root = utils.GetBuildRoot(host_os) | 202 build_root = utils.GetBuildRoot(host_os) |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 process.wait() | 319 process.wait() |
| 320 if process.returncode != 0: | 320 if process.returncode != 0: |
| 321 print "BUILD FAILED" | 321 print "BUILD FAILED" |
| 322 return 1 | 322 return 1 |
| 323 | 323 |
| 324 return 0 | 324 return 0 |
| 325 | 325 |
| 326 | 326 |
| 327 if __name__ == '__main__': | 327 if __name__ == '__main__': |
| 328 sys.exit(Main()) | 328 sys.exit(Main()) |
| OLD | NEW |