Chromium Code Reviews| 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 'variables': { | |
| 7 'analyzer_name': 'new_analyzer', | |
| 8 # When changing the jar files that we depend on please change the list | |
| 9 # below. | |
| 10 'dependent_jar_files': [ | |
| 11 '../third_party/commons-lang/3.1/commons-lang3-3.1.jar', | |
| 12 '../third_party/json/r2_20080312/json.jar', | |
| 13 '../third_party/guava/r13/guava-13.0.1.jar', | |
| 14 '../third_party/args4j/2.0.12/args4j-2.0.12.jar' | |
| 15 ], | |
| 16 }, | |
| 17 'targets': [ | |
| 18 { | |
| 19 'target_name': 'analyzer', | |
| 20 'type': 'none', | |
| 21 'dependencies': [ | |
| 22 'copy_jars', | |
| 23 ], | |
| 24 'variables': { | |
| 25 'java_source_files': [ | |
| 26 '<!@(["python", "../tools/list_files.py", "\\.java$", "tools/plugins/c om.google.dart.command.analyze"])', | |
| 27 '<!@(["python", "../tools/list_files.py", "\\.java$", "tools/plugins/c om.google.dart.engine"])', | |
| 28 ], | |
| 29 # We simply rely on all the jar files being copied to the output dir. | |
| 30 'compilation_classpath': '<(PRODUCT_DIR)/<(analyzer_name)/*', | |
|
ahe
2013/02/19 10:38:38
This means that you expect that the files have bee
ricow1
2013/02/19 10:44:48
I don't expect that, it does not matter, we just r
ricow1
2013/02/19 10:45:58
Yeah, I see why, sorry, will fix
| |
| 31 # The file where we write the class path to be used in the manifest. | |
| 32 'class_path_file': '<(PRODUCT_DIR)/<(analyzer_name)/classpath_file', | |
| 33 }, | |
| 34 'actions': [ | |
| 35 { | |
| 36 'action_name': 'create_classpath_file', | |
| 37 'inputs': [ | |
| 38 '<@(java_source_files)', | |
|
ahe
2013/02/19 10:38:38
I don't understand this input.
ricow1
2013/02/19 10:44:48
Done, that is _not_ a input for this
| |
| 39 '<@(dependent_jar_files)', | |
| 40 'tools/write_class_path_file.py' | |
| 41 ], | |
| 42 'outputs': [ | |
| 43 '<(PRODUCT_DIR)/<(analyzer_name)/classpath_file', | |
| 44 ], | |
| 45 'action': [ | |
| 46 'python', 'tools/write_class_path_file.py', | |
| 47 '<(class_path_file)', | |
| 48 '<(PRODUCT_DIR)/<(analyzer_name)', | |
| 49 '<(analyzer_name)', | |
| 50 ], | |
| 51 'message': 'Creating <(_outputs).', | |
| 52 }, | |
| 53 { | |
| 54 'action_name': 'create_analyzer', | |
| 55 'inputs': [ | |
| 56 '<@(java_source_files)', | |
| 57 '<@(dependent_jar_files)', | |
| 58 '<(PRODUCT_DIR)/<(analyzer_name)/classpath_file', | |
| 59 'tools/compile_analyzer.py', | |
| 60 ], | |
| 61 'outputs': [ | |
| 62 <(PRODUCT_DIR)/<(analyzer_name).jar, | |
| 63 ], | |
| 64 'action': [ | |
| 65 'python', | |
| 66 'tools/compile_analyzer.py', | |
| 67 '--output_dir', '<(PRODUCT_DIR)/<(analyzer_name)/', | |
| 68 '--class_path', '<@(compilation_classpath)', | |
| 69 '--jar_file', '<(PRODUCT_DIR)/<(analyzer_name).jar', | |
| 70 '--jar_entry_directory', 'com', | |
| 71 '--entry_point', 'com.google.dart.command.analyze.AnalyzerMain', | |
| 72 '--class_path_file', '<(PRODUCT_DIR)/<(analyzer_name)/classpath_file ', | |
| 73 '<@(java_source_files)', | |
| 74 ], | |
| 75 'message': 'Creating <(_outputs).', | |
| 76 }, | |
| 77 ], | |
| 78 }, | |
| 79 { | |
| 80 'target_name': 'copy_jars', | |
| 81 'type': 'none', | |
| 82 # Copy all the jar files we depend on to the output directory. | |
| 83 'copies': [ | |
| 84 { | |
| 85 'destination': '<(PRODUCT_DIR)/<(analyzer_name)', | |
| 86 'files': [ | |
| 87 '<@(dependent_jar_files)', | |
| 88 ], | |
| 89 } | |
| 90 ], | |
| 91 } | |
| 92 ] | |
| 93 } | |
| 94 | |
| 95 | |
| OLD | NEW |