OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 | 2 |
3 # Copyright (c) 2012 The Dart Authors. All rights reserved. | 3 # Copyright (c) 2012 The Dart Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 """ | 7 """ |
8 Invoke gyp to generate build files for building the Dart VM. | 8 Invoke gyp to generate build files for building the Dart VM. |
9 """ | 9 """ |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 component = sys.argv[1] | 26 component = sys.argv[1] |
27 | 27 |
28 component_gyp_files = { | 28 component_gyp_files = { |
29 'all' : 'dart.gyp', | 29 'all' : 'dart.gyp', |
30 'runtime' : 'runtime/dart-runtime.gyp', | 30 'runtime' : 'runtime/dart-runtime.gyp', |
31 } | 31 } |
32 args = ['python', '-S', 'third_party/gyp/gyp_main.py', | 32 args = ['python', '-S', 'third_party/gyp/gyp_main.py', |
33 '--depth=.', '-Itools/gyp/all.gypi', | 33 '--depth=.', '-Itools/gyp/all.gypi', |
34 component_gyp_files[component]] | 34 component_gyp_files[component]] |
35 | 35 |
36 if sys.platform == 'win32': | |
37 # Generate Visual Studio 2010 compatible files by default. | |
38 if not os.environ.get('GYP_MSVS_VERSION'): | |
39 args.extend(['-G', 'msvs_version=2010']) | |
40 | |
41 sys.exit(execute(args)) | 36 sys.exit(execute(args)) |
42 | 37 |
43 if __name__ == '__main__': | 38 if __name__ == '__main__': |
44 main() | 39 main() |
OLD | NEW |