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

Side by Side Diff: editor/analyzer.gyp

Issue 13982010: Use intermediate file containing javac arguments to overcome windows limitations (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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 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. 3 # BSD-style license that can be found in the LICENSE file.
4 4
5 { 5 {
6 'includes' : [
7 # These files are generated by 'gclient runhooks'.
8 'plugin_command_analyze_sources.gypi',
9 'plugin_engine_sources.gypi',
10 ],
6 'variables': { 11 'variables': {
7 'analyzer_name': 'dartanalyzer', 12 'analyzer_name': 'dartanalyzer',
8 # When changing the jar files that we depend on please change the list 13 # When changing the jar files that we depend on please change the list
9 # below. 14 # below.
10 'dependent_jar_files': [ 15 'dependent_jar_files': [
11 '../third_party/commons-lang/3.1/commons-lang3-3.1.jar', 16 '../third_party/commons-lang/3.1/commons-lang3-3.1.jar',
12 '../third_party/json/r2_20080312/json.jar', 17 '../third_party/json/r2_20080312/json.jar',
13 '../third_party/guava/r13/guava-13.0.1.jar', 18 '../third_party/guava/r13/guava-13.0.1.jar',
14 '../third_party/args4j/2.0.12/args4j-2.0.12.jar' 19 '../third_party/args4j/2.0.12/args4j-2.0.12.jar'
15 ], 20 ],
16 }, 21 },
17 'targets': [ 22 'targets': [
18 { 23 {
19 'target_name': 'analyzer', 24 'target_name': 'analyzer',
20 'type': 'none', 25 'type': 'none',
21 'variables': { 26 'variables': {
22 'java_source_files': [
23 '<!@(["python", "../tools/list_files.py", "\\.java$", "tools/plugins/c om.google.dart.command.analyze"])',
24 '<!@(["python", "../tools/list_files.py", "\\.java$", "tools/plugins/c om.google.dart.engine"])',
25 ],
26 # The file where we write the class path to be used in the manifest. 27 # 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 'class_path_file': '<(PRODUCT_DIR)/<(analyzer_name)/classpath_file',
28 }, 29 },
29 'actions': [ 30 'actions': [
30 { 31 {
31 'action_name': 'create_analyzer', 32 'action_name': 'create_analyzer',
32 'inputs': [ 33 'inputs': [
33 '<@(java_source_files)', 34 '<@(plugin_command_analyze_java_sources)',
35 '<@(plugin_engine_java_sources)',
34 '<@(dependent_jar_files)', 36 '<@(dependent_jar_files)',
35 'tools/compile_analyzer.py', 37 'tools/compile_analyzer.py',
38 'plugin_command_analyze_sources.gypi',
39 'plugin_engine_sources.gypi',
36 ], 40 ],
37 'outputs': [ 41 'outputs': [
38 '<(PRODUCT_DIR)/<(analyzer_name)/<(analyzer_name).jar', 42 '<(PRODUCT_DIR)/<(analyzer_name)/<(analyzer_name).jar',
39 ], 43 ],
40 'action': [ 44 'action': [
41 'python', 45 'python',
42 'tools/compile_analyzer.py', 46 'tools/compile_analyzer.py',
43 '--output_dir', '<(PRODUCT_DIR)/<(analyzer_name)/', 47 '--output_dir', '<(PRODUCT_DIR)/<(analyzer_name)/',
44 '--jar_file_name', '<(analyzer_name).jar', 48 '--jar_file_name', '<(analyzer_name).jar',
45 '--jar_entry_directory', 'com', 49 '--jar_entry_directory', 'com',
46 '--dependent_jar_files', '"<@(dependent_jar_files)"', 50 '--dependent_jar_files', '"<@(dependent_jar_files)"',
47 '--entry_point', 'com.google.dart.command.analyze.AnalyzerMain', 51 '--entry_point', 'com.google.dart.command.analyze.AnalyzerMain',
48 '--class_path_file', 'classpath_file', 52 '--class_path_file', 'classpath_file',
49 '<@(java_source_files)', 53 # These files are generated by 'gclient runhooks'.
54 # The '@filename' will instruct javac to read 'filename' and treat
55 # every line as an additional commandline argument.
56 '@plugin_command_analyze_sources.txt',
57 '@plugin_engine_sources.txt',
50 ], 58 ],
51 'message': 'Creating <(_outputs).', 59 'message': 'Creating <(_outputs).',
52 }, 60 },
53 ], 61 ],
54 }, 62 },
55 ] 63 ]
56 } 64 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698