Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 #!/usr/bin/env python | |
| 2 | |
| 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 | |
| 5 # found in the LICENSE file. | |
| 6 | |
| 7 # This script is wrapper for Dart that adds some support for how GYP | |
| 8 # is invoked by Dart beyond what can be done in the gclient hooks. | |
| 9 | |
| 10 import os | |
| 11 import subprocess | |
| 12 import sys | |
| 13 | |
| 14 def Execute(args): | |
| 15 process = subprocess.Popen(args) | |
| 16 process.wait() | |
| 17 return process.returncode | |
| 18 | |
| 19 if __name__ == '__main__': | |
| 20 args = ['python', "dart/third_party/gyp/gyp", "--depth=dart", | |
| 21 "-Idart/tools/gyp/all.gypi", "dart/dart.gyp"] | |
| 22 | |
| 23 # On Win32 default to Visual Studio 2008 if no version is specified. | |
| 24 | |
|
Emily Fortuna
2012/08/06 17:04:08
nit: remove extra line
| |
| 25 if sys.platform == 'win32': | |
| 26 if not os.environ.get('GYP_MSVS_VERSION'): | |
| 27 args.extend(['-G', 'msvs_version=2008']) | |
| 28 | |
| 29 sys.exit(Execute(args)) | |
| OLD | NEW |