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

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
« no previous file with comments | « no previous file | editor/tools/compile_analyzer.py » ('j') | tools/generate_sources_file.py » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 'variables': { 6 'variables': {
7 'analyzer_name': 'dartanalyzer', 7 'analyzer_name': 'dartanalyzer',
8 # When changing the jar files that we depend on please change the list 8 # When changing the jar files that we depend on please change the list
9 # below. 9 # below.
10 'dependent_jar_files': [ 10 'dependent_jar_files': [
11 '../third_party/commons-lang/3.1/commons-lang3-3.1.jar', 11 '../third_party/commons-lang/3.1/commons-lang3-3.1.jar',
12 '../third_party/json/r2_20080312/json.jar', 12 '../third_party/json/r2_20080312/json.jar',
13 '../third_party/guava/r13/guava-13.0.1.jar', 13 '../third_party/guava/r13/guava-13.0.1.jar',
14 '../third_party/args4j/2.0.12/args4j-2.0.12.jar' 14 '../third_party/args4j/2.0.12/args4j-2.0.12.jar'
15 ], 15 ],
16 }, 16 },
17 'targets': [ 17 'targets': [
18 { 18 {
19 'target_name': 'analyzer', 19 'target_name': 'analyzer',
20 'type': 'none', 20 'type': 'none',
21 'dependencies' : ['analyzer_sources_file'],
ahe 2013/04/11 11:40:31 Delete this.
21 'variables': { 22 '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. 23 # The file where we write the class path to be used in the manifest.
27 'class_path_file': '<(PRODUCT_DIR)/<(analyzer_name)/classpath_file', 24 'class_path_file': '<(PRODUCT_DIR)/<(analyzer_name)/classpath_file',
28 }, 25 },
29 'actions': [ 26 'actions': [
30 { 27 {
31 'action_name': 'create_analyzer', 28 'action_name': 'create_analyzer',
32 'inputs': [ 29 'inputs': [
33 '<@(java_source_files)', 30 'tools/compile_analyzer.py',
31 '<(PRODUCT_DIR)/analyzer_sources.txt',
ahe 2013/04/11 11:40:31 This should go in INTERMEDIATE_DIR. See https://c
ricow1 2013/04/11 12:16:31 Shouldn't this go to SHARED_INTERMEDIATE to guaran
ahe 2013/04/11 13:30:27 I'm suggesting that Martin eliminate the extra tar
34 '<@(dependent_jar_files)', 32 '<@(dependent_jar_files)',
35 'tools/compile_analyzer.py',
36 ], 33 ],
37 'outputs': [ 34 'outputs': [
38 '<(PRODUCT_DIR)/<(analyzer_name)/<(analyzer_name).jar', 35 '<(PRODUCT_DIR)/<(analyzer_name)/<(analyzer_name).jar',
39 ], 36 ],
40 'action': [ 37 'action': [
41 'python', 38 'python',
42 'tools/compile_analyzer.py', 39 'tools/compile_analyzer.py',
43 '--output_dir', '<(PRODUCT_DIR)/<(analyzer_name)/', 40 '--output_dir', '<(PRODUCT_DIR)/<(analyzer_name)/',
44 '--jar_file_name', '<(analyzer_name).jar', 41 '--jar_file_name', '<(analyzer_name).jar',
45 '--jar_entry_directory', 'com', 42 '--jar_entry_directory', 'com',
46 '--dependent_jar_files', '"<@(dependent_jar_files)"', 43 '--dependent_jar_files', '"<@(dependent_jar_files)"',
47 '--entry_point', 'com.google.dart.command.analyze.AnalyzerMain', 44 '--entry_point', 'com.google.dart.command.analyze.AnalyzerMain',
48 '--class_path_file', 'classpath_file', 45 '--class_path_file', 'classpath_file',
49 '<@(java_source_files)', 46 '@<(PRODUCT_DIR)/analyzer_sources.txt', # The @filename means: read command line options from file.
ahe 2013/04/11 11:40:31 INTERMEDIATE_DIR
ahe 2013/04/11 11:40:31 Unnecessarily long line.
ricow1 2013/04/11 12:16:31 Same question as above
50 ], 47 ],
51 'message': 'Creating <(_outputs).', 48 'message': 'Creating <(_outputs).',
52 }, 49 },
50 ],
51 },
52 {
53 'target_name': 'analyzer_sources_file',
54 'type': 'none',
ahe 2013/04/11 11:40:31 Delete the extra target.
55 'variables': {
ahe 2013/04/11 11:40:31 Move variables back to where it was before.
56 'java_source_files': [
57 '<!@(["python", "../tools/list_files.py", "\\.java$", "tools/plugins/c om.google.dart.command.analyze"])',
58 '<!@(["python", "../tools/list_files.py", "\\.java$", "tools/plugins/c om.google.dart.engine"])',
ahe 2013/04/11 11:40:31 This can be one command.
59 ],
60 },
61 'actions': [
62 {
63 'action_name': 'generate_analzer_sources_file',
64 'inputs': [
65 '<@(java_source_files)',
66 'tools/compile_analyzer.py',
67 '../tools/generate_sources_file.py',
68 ],
69 'outputs': [
70 '<(PRODUCT_DIR)/analyzer_sources.txt',
ahe 2013/04/11 11:40:31 INTERMEDIATE_DIR
71 ],
72 'action': [
73 'python',
74 '../tools/generate_sources_file.py',
75 '<(PRODUCT_DIR)/analyzer_sources.txt',
ahe 2013/04/11 11:40:31 INTERMEDIATE_DIR
76 '\\.java',
77 'tools/plugins/com.google.dart.command.analyze',
78 'tools/plugins/com.google.dart.engine',
79 ],
80 'message': 'Creating <(_outputs).',
81 },
53 ], 82 ],
54 }, 83 },
55 ] 84 ]
56 } 85 }
OLDNEW
« no previous file with comments | « no previous file | editor/tools/compile_analyzer.py » ('j') | tools/generate_sources_file.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698