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

Side by Side Diff: tools/gyp_dart.py

Issue 12672003: Use the lowest MacOS SDK available on a system (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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
« tools/gyp/xcode.gypi ('K') | « tools/gyp/xcode.gypi ('k') | 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
11 import os 11 import os
12 import subprocess 12 import subprocess
13 import sys 13 import sys
14 14
15 import os.path as path
15 def execute(args): 16 def execute(args):
16 process = subprocess.Popen(args) 17 process = subprocess.Popen(args)
17 process.wait() 18 process.wait()
18 return process.returncode 19 return process.returncode
19 20
20 def main(): 21 def main():
21 args = ['python', 'dart/third_party/gyp/gyp', '--depth=dart', 22 dart_root = os.path.dirname(os.path.abspath(os.path.dirname(__file__)))
22 '-Idart/tools/gyp/all.gypi', 'dart/dart.gyp'] 23 args = ['python', 'dart/third_party/gyp/gyp', '--depth=dart', '-D',
24 'DART_ROOT=' + dart_root, '-Idart/tools/gyp/all.gypi',
Ivan Posva 2013/03/13 09:44:40 ditto.
25 'dart/dart.gyp']
23 26
24 if sys.platform == 'win32': 27 if sys.platform == 'win32':
25 # Generate Visual Studio 2010 compatible files by default. 28 # Generate Visual Studio 2010 compatible files by default.
26 if not os.environ.get('GYP_MSVS_VERSION'): 29 if not os.environ.get('GYP_MSVS_VERSION'):
27 args.extend(['-G', 'msvs_version=2010']) 30 args.extend(['-G', 'msvs_version=2010'])
28 31
29 sys.exit(execute(args)) 32 sys.exit(execute(args))
30 33
31 if __name__ == '__main__': 34 if __name__ == '__main__':
32 main() 35 main()
OLDNEW
« tools/gyp/xcode.gypi ('K') | « tools/gyp/xcode.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698