OLD | NEW |
---|---|
(Empty) | |
1 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | |
2 # for details. All rights reserved. Use of this source code is governed by a | |
3 # BSD-style license that can be found in the LICENSE file. | |
4 | |
5 { | |
6 'targets': [ | |
7 { | |
8 'target_name': 'analyzer', | |
9 'type': 'none', | |
10 'variables': { | |
11 'analyzer_name': 'new_analyzer', | |
12 'java_source_files': [ | |
13 '<!@(["python", "../tools/list_files.py", "\\.java$", "tools/plugins/c om.google.dart.command.analyze"])', | |
14 '<!@(["python", "../tools/list_files.py", "\\.java$", "tools/plugins/c om.google.dart.engine"])', | |
15 ], | |
16 # When changing the jar files that we depend on please change the list | |
17 # below. | |
18 'dependent_jar_files': [ | |
19 '../third_party/commons-lang/3.1/commons-lang3-3.1.jar', | |
20 '../third_party/json/r2_20080312/json.jar', | |
21 '../third_party/guava/r13/guava-13.0.1.jar', | |
22 '../third_party/args4j/2.0.12/args4j-2.0.12.jar' | |
23 ], | |
24 # We simply rely on all the jar files being copied to the output dir. | |
25 'compilation_classpath': '<(PRODUCT_DIR)/<(analyzer_name)/*', | |
26 # The file where we write the class path to be used in the manifest. | |
27 'class_path_file': '<(PRODUCT_DIR)/<(analyzer_name)/classpath_file', | |
28 'compilation_command': [ | |
ahe
2013/02/14 16:34:10
Unused.
ricow1
2013/02/15 12:01:36
Done.
| |
29 'javac', | |
30 '-sourcepath', 'foobar', | |
31 '-source', '6', | |
32 '-target', '6', | |
33 '-implicit:none', | |
34 '-d', '<(PRODUCT_DIR)/<(analyzer_name)/', | |
35 '-cp', | |
36 '<@(compilation_classpath)', | |
37 '<@(java_source_files)', | |
38 ], | |
39 }, | |
40 # Copy all the jar files we depend on to the output directory. | |
41 'copies': [ | |
42 { | |
43 'destination': '<(PRODUCT_DIR)/<(analyzer_name)', | |
44 'files': [ | |
45 '<@(dependent_jar_files)', | |
46 ], | |
47 } | |
48 ], | |
49 'actions': [ | |
50 { | |
51 'action_name': 'create_classpath_file', | |
52 'inputs': [ | |
53 '<@(java_source_files)', | |
54 '<@(dependent_jar_files)', | |
55 'tools/write_class_path_file.py' | |
56 ], | |
57 'outputs': [ | |
58 '<(PRODUCT_DIR)/<(analyzer_name)/classpath_file', | |
59 ], | |
60 'action': [ | |
61 'python', 'tools/write_class_path_file.py', | |
62 '<(class_path_file)', | |
63 '<(PRODUCT_DIR)/<(analyzer_name)', | |
64 '<(analyzer_name)', | |
65 ], | |
66 'message': 'Creating <(_outputs).', | |
67 }, | |
68 { | |
69 'action_name': 'create_analyzer', | |
70 'inputs': [ | |
71 '<@(java_source_files)', | |
72 '<@(dependent_jar_files)', | |
73 'tools/compile_analyzer.py', | |
74 ], | |
75 'outputs': [ | |
76 '<(PRODUCT_DIR)/<(analyzer_name)/com', | |
ahe
2013/02/14 16:34:10
This is a directory dependency. I'm not convinced
ricow1
2013/02/15 12:01:36
I changed this and below to rely on the main file
| |
77 ], | |
78 'action': [ | |
79 'python', | |
80 'tools/compile_analyzer.py', | |
81 '<(PRODUCT_DIR)/<(analyzer_name)/', | |
82 '<@(compilation_classpath)', | |
83 '<@(java_source_files)', | |
84 ], | |
85 'message': 'Creating <(_outputs).', | |
86 }, | |
87 { | |
88 'action_name': 'pack_analyzer', | |
89 'inputs': [ | |
90 '<@(java_source_files)', | |
91 '<@(dependent_jar_files)', | |
92 '<(class_path_file)', | |
93 '<(PRODUCT_DIR)/<(analyzer_name)/com', | |
94 ], | |
95 'outputs': [ | |
96 '<(PRODUCT_DIR)/<(analyzer_name).jar', | |
97 ], | |
98 'action': [ | |
99 'jar', | |
ahe
2013/02/14 16:34:10
Probably needs to be wrapped in a python program.
ricow1
2013/02/15 12:01:36
Done.
| |
100 'cfem', '<(PRODUCT_DIR)/<(analyzer_name).jar', | |
101 'com.google.dart.command.analyze.AnalyzerMain', | |
102 '<(class_path_file)', | |
103 '-C', '<(PRODUCT_DIR)/<(analyzer_name)/', 'com', | |
104 ], | |
105 'message': 'Pack analyzer.', | |
106 }, | |
107 ], | |
108 } | |
109 ] | |
110 } | |
111 | |
112 | |
OLD | NEW |