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 'includes' : [ | |
7 # These files are generated by 'gclient runhooks'. | |
8 'plugin_command_analyze_sources.gypi', | |
9 'plugin_engine_sources.gypi', | |
10 ], | |
11 'variables': { | |
12 'analyzer_name': 'dartanalyzer', | |
13 # When changing the jar files that we depend on please change the list | |
14 # below. | |
15 'dependent_jar_files': [ | |
16 '../third_party/commons-lang/3.2.1/commons-lang3-3.2.1.jar', | |
17 '../third_party/json/r2_20080312/json.jar', | |
18 '../third_party/guava/r13/guava-13.0.1.jar', | |
19 '../third_party/args4j/2.0.12/args4j-2.0.12.jar' | |
20 ], | |
21 }, | |
22 'targets': [ | |
23 { | |
24 'target_name': 'analyzer', | |
25 'type': 'none', | |
26 'variables': { | |
27 # The file where we write the class path to be used in the manifest. | |
28 'class_path_file': '<(PRODUCT_DIR)/<(analyzer_name)/classpath_file', | |
29 }, | |
30 'actions': [ | |
31 { | |
32 'action_name': 'create_analyzer', | |
33 'inputs': [ | |
34 '<@(plugin_command_analyze_java_sources)', | |
35 '<@(plugin_engine_java_sources)', | |
36 '<@(dependent_jar_files)', | |
37 'tools/compile_analyzer.py', | |
38 'plugin_command_analyze_sources.gypi', | |
39 'plugin_engine_sources.gypi', | |
40 '../tools/VERSION', | |
41 ], | |
42 'outputs': [ | |
43 '<(PRODUCT_DIR)/<(analyzer_name)/<(analyzer_name).jar', | |
44 ], | |
45 'action': [ | |
46 'python', | |
47 'tools/compile_analyzer.py', | |
48 '--output_dir', '<(PRODUCT_DIR)/<(analyzer_name)/', | |
49 '--jar_file_name', '<(analyzer_name).jar', | |
50 '--jar_entry_directory', 'com', | |
51 '--dependent_jar_files', '"<@(dependent_jar_files)"', | |
52 '--entry_point', 'com.google.dart.command.analyze.AnalyzerMain', | |
53 '--class_path_file', 'classpath_file', | |
54 # These files are generated by 'gclient runhooks'. | |
55 # The '@filename' will instruct javac to read 'filename' and treat | |
56 # every line as an additional commandline argument. | |
57 '@plugin_command_analyze_sources.txt', | |
58 '@plugin_engine_sources.txt', | |
59 ], | |
60 'message': 'Creating <(_outputs).', | |
61 }, | |
62 ], | |
63 }, | |
64 ] | |
65 } | |
OLD | NEW |