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

Side by Side Diff: compiler/scripts/generate_my_projects.py

Issue 13982010: Use intermediate file containing javac arguments to overcome windows limitations (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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
« no previous file with comments | « compiler/generate_source_list.py ('k') | editor/.gitignore » ('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 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3 # for details. All rights reserved. Use of this source code is governed by a 3 # for details. All rights reserved. Use of this source code is governed by a
4 # BSD-style license that can be found in the LICENSE file. 4 # BSD-style license that can be found in the LICENSE file.
5 5
6 import os 6 import os
7 import sys 7 import sys
8 8
9 9
10 def Main(): 10 def Main():
11 def normjoin(*args): 11 def normjoin(*args):
12 return os.path.normpath(os.path.join(*args)) 12 return os.path.normpath(os.path.join(*args))
13 13
14 compiler = normjoin(sys.argv[0], os.pardir, os.pardir) 14 compiler = normjoin(sys.argv[0], os.pardir, os.pardir)
15 tools = normjoin(compiler, os.pardir, 'tools') 15 editor = normjoin(compiler, os.pardir, 'editor')
16
16 locations = { 17 locations = {
17 'compiler': compiler, 18 'compiler': compiler,
18 'tools': tools, 19 'editor': editor,
19 } 20 }
20 21
21 exit_code = os.system("python %(compiler)s/generate_source_list.py " 22 generate_source_list_calls = [
22 "java %(compiler)s/sources java" % locations) 23 # The paths are relative to dart/compiler/
23 if exit_code: 24 {
24 return exit_code 25 "name" : "java",
26 "output" : "%(compiler)s/sources" % locations,
27 "path" : "java",
28 },
29 {
30 "name" : "javatests",
31 "output" : "%(compiler)s/test_sources" % locations,
32 "path" : "javatests",
33 },
34 # The paths are relative to dart/editor/
35 {
36 "name" : "plugin_engine_java",
37 "output" : "%(editor)s/plugin_engine_sources" % locations,
38 "path" : "tools/plugins/com.google.dart.engine",
39 },
40 {
41 "name" : "plugin_command_analyze_java",
42 "output" : "%(editor)s/plugin_command_analyze_sources" % locations,
43 "path" : "tools/plugins/com.google.dart.command.analyze",
44 },
45 ]
25 46
26 47 for call_options in generate_source_list_calls:
27 exit_code = os.system("python %(compiler)s/generate_source_list.py " 48 command = ("python %(compiler)s/generate_source_list.py " % locations +
28 "javatests %(compiler)s/test_sources javatests" 49 "%(name)s %(output)s %(path)s" % call_options)
29 % locations) 50 exit_code = os.system(command)
30 if exit_code: 51 if exit_code:
31 return exit_code 52 return exit_code
32 53
33 if '--no-gyp' in sys.argv: 54 if '--no-gyp' in sys.argv:
34 print '--no-gyp is deprecated.' 55 print '--no-gyp is deprecated.'
35 56
36 return exit_code 57 return 0
37 58
38 59
39 if __name__ == '__main__': 60 if __name__ == '__main__':
40 sys.exit(Main()) 61 sys.exit(Main())
OLDNEW
« no previous file with comments | « compiler/generate_source_list.py ('k') | editor/.gitignore » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698