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

Side by Side Diff: editor/tools/compile_analyzer.py

Issue 12262040: Add support for building the new analyzer using gyp. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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
(Empty)
1 #!/usr/bin/env python
2 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
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.
5 #
6 # Script to compile the analyzer.
7 #
8 # Usage: compile_analyzer.py output_dir class_path files
9 #
10
11 import sys
12 import subprocess
13
14 def main():
15 cmd = ['javac',
16 '-sourcepath', 'foobar',
17 '-source', '6',
18 '-target', '6',
19 '-implicit:none',
20 '-d', sys.argv[1],
21 '-cp', sys.argv[2],
22 ]
23 # Add all the source files.
24 cmd.extend(sys.argv[3:])
25 subprocess.call(cmd)
26
27
28 if __name__=='__main__':
29 main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698