| 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 re | 10 import re |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 '-target', | 394 '-target', |
| 395 target, | 395 target, |
| 396 '-configuration', | 396 '-configuration', |
| 397 build_config, | 397 build_config, |
| 398 'SYMROOT=%s' % os.path.abspath('xcodebuild') | 398 'SYMROOT=%s' % os.path.abspath('xcodebuild') |
| 399 ] | 399 ] |
| 400 elif HOST_OS == 'win32': | 400 elif HOST_OS == 'win32': |
| 401 project_file = 'dart.sln' | 401 project_file = 'dart.sln' |
| 402 if os.path.exists('dart-%s.gyp' % CurrentDirectoryBaseName()): | 402 if os.path.exists('dart-%s.gyp' % CurrentDirectoryBaseName()): |
| 403 project_file = 'dart-%s.sln' % CurrentDirectoryBaseName() | 403 project_file = 'dart-%s.sln' % CurrentDirectoryBaseName() |
| 404 # Select a platform suffix to pass to devenv. |
| 405 if arch == 'ia32': |
| 406 platform_suffix = 'Win32' |
| 407 elif arch == 'x64': |
| 408 platform_suffix = 'x64' |
| 409 else: |
| 410 print 'Unsupported arch for MSVC build: %s' % arch |
| 411 return 1 |
| 412 config_name = '%s|%s' % (build_config, platform_suffix) |
| 404 if target == 'all': | 413 if target == 'all': |
| 405 args = [options.devenv + os.sep + options.executable, | 414 args = [options.devenv + os.sep + options.executable, |
| 406 '/build', | 415 '/build', |
| 407 build_config, | 416 config_name, |
| 408 project_file | 417 project_file |
| 409 ] | 418 ] |
| 410 else: | 419 else: |
| 411 args = [options.devenv + os.sep + options.executable, | 420 args = [options.devenv + os.sep + options.executable, |
| 412 '/build', | 421 '/build', |
| 413 build_config, | 422 config_name, |
| 414 '/project', | 423 '/project', |
| 415 target, | 424 target, |
| 416 project_file | 425 project_file |
| 417 ] | 426 ] |
| 418 else: | 427 else: |
| 419 make = 'make' | 428 make = 'make' |
| 420 if HOST_OS == 'freebsd': | 429 if HOST_OS == 'freebsd': |
| 421 make = 'gmake' | 430 make = 'gmake' |
| 422 # work around lack of flock | 431 # work around lack of flock |
| 423 os.environ['LINK'] = '$(CXX)' | 432 os.environ['LINK'] = '$(CXX)' |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 464 NotifyBuildDone(build_config, success=False, start=start_time) | 473 NotifyBuildDone(build_config, success=False, start=start_time) |
| 465 return 1 | 474 return 1 |
| 466 else: | 475 else: |
| 467 NotifyBuildDone(build_config, success=True, start=start_time) | 476 NotifyBuildDone(build_config, success=True, start=start_time) |
| 468 | 477 |
| 469 return 0 | 478 return 0 |
| 470 | 479 |
| 471 | 480 |
| 472 if __name__ == '__main__': | 481 if __name__ == '__main__': |
| 473 sys.exit(Main()) | 482 sys.exit(Main()) |
| OLD | NEW |