mirror of
https://github.com/dart-lang/sdk
synced 2024-09-18 21:21:18 +00:00
53ab9b1cfb
Golem really should be updated to use gclient instead but doing this to get the builder going again. R=whesse@google.com BUG= TEST= Review URL: http://codereview.chromium.org//8633009 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1736 260f80e4-7a28-3924-810f-c04153c831b5
30 lines
920 B
Python
Executable file
30 lines
920 B
Python
Executable file
#!/usr/bin/env python
|
|
|
|
# Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
|
|
# for details. All rights reserved. Use of this source code is governed by a
|
|
# BSD-style license that can be found in the LICENSE file.
|
|
|
|
import os
|
|
import sys
|
|
|
|
# Change into the dart directory as we want the project to be rooted here.
|
|
runtime_src = os.path.join(os.path.dirname(sys.argv[0]), os.pardir)
|
|
gclient_src = os.path.join(runtime_src, os.pardir)
|
|
project_src = os.path.join(gclient_src, sys.argv[1])
|
|
os.chdir(project_src)
|
|
|
|
# Add gyp to the imports and if needed get it from the third_party location
|
|
# inside the standalone dart gclient checkout.
|
|
try:
|
|
import gyp
|
|
except ImportError, e:
|
|
sys.path.append(os.path.join(os.pardir, 'third_party', 'gyp', 'pylib'))
|
|
import gyp
|
|
|
|
if __name__ == '__main__':
|
|
args = ['--depth', '.']
|
|
args += ['dart-runtime.gyp']
|
|
|
|
# Generate the projects.
|
|
sys.exit(gyp.main(args))
|