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

Side by Side Diff: runtime/tools/generate_projects.py

Issue 8472007: Fix gclient runhooks on Windows for a full checkout. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 1 month 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
« no previous file with comments | « runtime/bin/bin.gypi ('k') | runtime/vm/vm.gypi » ('j') | 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) 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 9
10 # Change into the dart directory as we want the project to be rooted here. 10 # Change into the dart directory as we want the project to be rooted here.
11 runtime_src = os.path.join(os.path.dirname(sys.argv[0]), os.pardir) 11 runtime_src = os.path.join(os.path.dirname(sys.argv[0]), os.pardir)
12 gclient_src = os.path.join(runtime_src, os.pardir) 12 gclient_src = os.path.join(runtime_src, os.pardir)
13 project_src = os.path.join(gclient_src, sys.argv[1]) 13 project_src = os.path.join(gclient_src, sys.argv[1])
14 os.chdir(project_src) 14 os.chdir(project_src)
15 15
16 # Add gyp to the imports and if needed get it from the third_party location 16 # Add gyp to the imports and if needed get it from the third_party location
17 # inside the standalone dart gclient checkout. 17 # inside the standalone dart gclient checkout.
18 try: 18 try:
19 import gyp 19 import gyp
20 except ImportError, e: 20 except ImportError, e:
21 sys.path.append(os.path.join(os.pardir, 'third_party', 'gyp', 'pylib')) 21 sys.path.append(os.path.join(os.pardir, 'third_party', 'gyp', 'pylib'))
22 import gyp 22 import gyp
23 23
24 if __name__ == '__main__': 24 if __name__ == '__main__':
25 args = ['--depth', '.'] 25 args = ['--depth', '..']
26 args += ['dart-runtime.gyp'] 26 args += ['dart-runtime.gyp']
27 27
28 # Generate the projects. 28 # Generate the projects.
29 sys.exit(gyp.main(args)) 29 sys.exit(gyp.main(args))
OLDNEW
« no previous file with comments | « runtime/bin/bin.gypi ('k') | runtime/vm/vm.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698