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

Side by Side Diff: dart/tools/compiler_scripts/generate_my_projects.py

Issue 20722006: Removed compiler/ directory from repository (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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
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 dart_dir = normjoin(__file__, '..', '..', '..')
15 editor = normjoin(compiler, os.pardir, 'editor') 15 compiler_scripts = normjoin(dart_dir, 'tools', 'compiler_scripts')
16 editor = normjoin(dart_dir, 'editor')
16 17
17 locations = { 18 locations = {
18 'compiler': compiler, 19 'compiler_scripts': compiler_scripts,
19 'editor': editor, 20 'editor': editor,
20 } 21 }
21 22
22 generate_source_list_calls = [ 23 generate_source_list_calls = [
23 # The paths are relative to dart/compiler/
24 {
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/ 24 # The paths are relative to dart/editor/
35 { 25 {
36 "name" : "plugin_engine_java", 26 "name" : "plugin_engine_java",
37 "output" : "%(editor)s/plugin_engine_sources" % locations, 27 "output" : "%(editor)s/plugin_engine_sources" % locations,
38 "path" : "tools/plugins/com.google.dart.engine", 28 "path" : "tools/plugins/com.google.dart.engine",
39 }, 29 },
40 { 30 {
41 "name" : "plugin_command_analyze_java", 31 "name" : "plugin_command_analyze_java",
42 "output" : "%(editor)s/plugin_command_analyze_sources" % locations, 32 "output" : "%(editor)s/plugin_command_analyze_sources" % locations,
43 "path" : "tools/plugins/com.google.dart.command.analyze", 33 "path" : "tools/plugins/com.google.dart.command.analyze",
44 }, 34 },
45 ] 35 ]
46 36
47 for call_options in generate_source_list_calls: 37 for call_options in generate_source_list_calls:
48 command = ("python %(compiler)s/generate_source_list.py " % locations + 38 command = ("python %(compiler_scripts)s/generate_source_list.py " % location s +
ricow1 2013/08/02 07:30:33 long line
49 "%(name)s %(output)s %(path)s" % call_options) 39 "%(name)s %(output)s %(path)s" % call_options)
50 exit_code = os.system(command) 40 exit_code = os.system(command)
51 if exit_code: 41 if exit_code:
52 return exit_code 42 return exit_code
53 43
54 if '--no-gyp' in sys.argv: 44 if '--no-gyp' in sys.argv:
55 print '--no-gyp is deprecated.' 45 print '--no-gyp is deprecated.'
56 46
57 return 0 47 return 0
58 48
59 49
60 if __name__ == '__main__': 50 if __name__ == '__main__':
61 sys.exit(Main()) 51 sys.exit(Main())
OLDNEW
« no previous file with comments | « dart/tools/compiler_scripts/dart_analyzer.sh ('k') | dart/tools/compiler_scripts/generate_source_list.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698