mirror of
https://github.com/dart-lang/sdk
synced 2024-11-05 18:22:09 +00:00
4d6fc3b482
Review URL: https://codereview.chromium.org//11184008 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13702 260f80e4-7a28-3924-810f-c04153c831b5
32 lines
780 B
Python
32 lines
780 B
Python
#!/usr/bin/env python
|
|
|
|
# Copyright (c) 2012 The Dart Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
"""
|
|
Invoke gyp to generate build files for building the Dart VM.
|
|
"""
|
|
|
|
import os
|
|
import subprocess
|
|
import sys
|
|
|
|
def execute(args):
|
|
process = subprocess.Popen(args)
|
|
process.wait()
|
|
return process.returncode
|
|
|
|
def main():
|
|
args = ['python', 'dart/third_party/gyp/gyp', '--depth=dart',
|
|
'-Idart/tools/gyp/all.gypi', 'dart/dart.gyp']
|
|
|
|
if sys.platform == 'win32':
|
|
# Generate Visual Studio 2010 compatible files by default.
|
|
if not os.environ.get('GYP_MSVS_VERSION'):
|
|
args.extend(['-G', 'msvs_version=2010'])
|
|
|
|
sys.exit(execute(args))
|
|
|
|
if __name__ == '__main__':
|
|
main()
|