| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """Entry point for both build and try bots. | 6 """Entry point for both build and try bots. |
| 7 | 7 |
| 8 This script is invoked from XXX, usually without arguments | 8 This script is invoked from XXX, usually without arguments |
| 9 to package an SDK. It automatically determines whether | 9 to package an SDK. It automatically determines whether |
| 10 this SDK is for mac, win, linux. | 10 this SDK is for mac, win, linux. |
| (...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 519 gyp_env['CXX'] = 'arm-linux-gnueabihf-g++' | 519 gyp_env['CXX'] = 'arm-linux-gnueabihf-g++' |
| 520 gyp_env['AR'] = 'arm-linux-gnueabihf-ar' | 520 gyp_env['AR'] = 'arm-linux-gnueabihf-ar' |
| 521 gyp_env['AS'] = 'arm-linux-gnueabihf-as' | 521 gyp_env['AS'] = 'arm-linux-gnueabihf-as' |
| 522 gyp_env['CC_host'] = 'cc' | 522 gyp_env['CC_host'] = 'cc' |
| 523 gyp_env['CXX_host'] = 'c++' | 523 gyp_env['CXX_host'] = 'c++' |
| 524 gyp_defines += ['armv7=1', 'arm_thumb=0', 'arm_neon=1', | 524 gyp_defines += ['armv7=1', 'arm_thumb=0', 'arm_neon=1', |
| 525 'arm_float_abi=hard'] | 525 'arm_float_abi=hard'] |
| 526 if force_arm_gcc: | 526 if force_arm_gcc: |
| 527 gyp_defines.append('nacl_enable_arm_gcc=1') | 527 gyp_defines.append('nacl_enable_arm_gcc=1') |
| 528 if options.no_arm_trusted: | 528 if options.no_arm_trusted: |
| 529 gyp_defines.append('disable_arm_trusted=1') | 529 gyp_defines.append('disable_cross_trusted=1') |
| 530 if getos.GetPlatform() == 'mac': | 530 if getos.GetPlatform() == 'mac': |
| 531 gyp_defines.append('clang=1') | 531 gyp_defines.append('clang=1') |
| 532 | 532 |
| 533 gyp_env['GYP_DEFINES'] = ' '.join(gyp_defines) | 533 gyp_env['GYP_DEFINES'] = ' '.join(gyp_defines) |
| 534 for key in ['GYP_GENERATORS', 'GYP_DEFINES', 'CC']: | 534 for key in ['GYP_GENERATORS', 'GYP_DEFINES', 'CC']: |
| 535 value = gyp_env.get(key) | 535 value = gyp_env.get(key) |
| 536 if value is not None: | 536 if value is not None: |
| 537 print '%s="%s"' % (key, value) | 537 print '%s="%s"' % (key, value) |
| 538 gyp_generator_flags = ['-G', 'output_dir=%s' % (out_dir,)] | 538 gyp_generator_flags = ['-G', 'output_dir=%s' % (out_dir,)] |
| 539 gyp_depth = '--depth=.' | 539 gyp_depth = '--depth=.' |
| (...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1029 BuildStepArchiveSDKTools() | 1029 BuildStepArchiveSDKTools() |
| 1030 | 1030 |
| 1031 return 0 | 1031 return 0 |
| 1032 | 1032 |
| 1033 | 1033 |
| 1034 if __name__ == '__main__': | 1034 if __name__ == '__main__': |
| 1035 try: | 1035 try: |
| 1036 sys.exit(main(sys.argv)) | 1036 sys.exit(main(sys.argv)) |
| 1037 except KeyboardInterrupt: | 1037 except KeyboardInterrupt: |
| 1038 buildbot_common.ErrorExit('build_sdk: interrupted') | 1038 buildbot_common.ErrorExit('build_sdk: interrupted') |
| OLD | NEW |