Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(222)

Side by Side Diff: tools/gyp_dart.py

Issue 1267633003: Don't force msvs 2010 version when running gyp (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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()
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698