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

Side by Side Diff: bleeding_edge/dart/tools/generate_projects.py

Issue 10836101: Update gyp, keep VS 2008 default for Windows builds. (Closed) Base URL: http://dart.googlecode.com/svn/branches/
Patch Set: Created 8 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 | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2011, 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 import os 7 import os
8 import sys 8 import sys
9 import platform 9 import platform
10 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 if platform.system() == 'Linux': 61 if platform.system() == 'Linux':
62 # We need to fiddle with toplevel-dir to work around a GYP bug 62 # We need to fiddle with toplevel-dir to work around a GYP bug
63 # that breaks building v8 from compiler/dart.gyp. 63 # that breaks building v8 from compiler/dart.gyp.
64 args += ['--toplevel-dir', os.curdir] 64 args += ['--toplevel-dir', os.curdir]
65 args += ['--generator-output', project_src] 65 args += ['--generator-output', project_src]
66 else: 66 else:
67 # On at least the Mac, the toplevel-dir should be where the 67 # On at least the Mac, the toplevel-dir should be where the
68 # sources are. Otherwise, Xcode won't show sources correctly. 68 # sources are. Otherwise, Xcode won't show sources correctly.
69 args += ['--toplevel-dir', project_src] 69 args += ['--toplevel-dir', project_src]
70 70
71 if sys.platform == 'win32':
72 # Generate Visual Studio 2008 compatible files by default.
73 if not os.environ.get('GYP_MSVS_VERSION'):
74 args.extend(['-G', 'msvs_version=2008'])
75
71 # Change into the dart directory as we want the project to be rooted here. 76 # Change into the dart directory as we want the project to be rooted here.
72 # Also, GYP is very sensitive to exacly from where it is being run. 77 # Also, GYP is very sensitive to exacly from where it is being run.
73 os.chdir(dart_src) 78 os.chdir(dart_src)
74 79
75 args += [GetProjectGypFile(project_src)] 80 args += [GetProjectGypFile(project_src)]
76 81
77 # Generate the projects. 82 # Generate the projects.
78 sys.exit(gyp.main(args)) 83 sys.exit(gyp.main(args))
OLDNEW
« no previous file with comments | « no previous file | bleeding_edge/dart/tools/gyp_dart.py » ('j') | bleeding_edge/dart/tools/gyp_dart.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698