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

Side by Side Diff: editor/analyzer.gyp

Issue 12262040: Add support for building the new analyzer using gyp. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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 | « dart.gyp ('k') | editor/tools/write_class_path_file.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 'classpath_separator%': ':',
8 },
9 'conditions' : [
10 ['OS=="win"', {
11 'variables' : {
12 'classpath_separator': ';',
13 },
14 }],
15 ],
16 'targets': [
17 {
18 'target_name': 'analyzer',
19 'type': 'none',
20 'variables': {
21 'analyzer_name': 'new_analyzer',
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 # When changing the jar files that we depend on please change the list
27 # below.
28 'dependent_jar_files': [
29 '../third_party/commons-lang/3.1/commons-lang3-3.1.jar',
30 '../third_party/json/r2_20080312/json.jar',
31 '../third_party/guava/r13/guava-13.0.1.jar',
32 '../third_party/args4j/2.0.12/args4j-2.0.12.jar'
33 ],
34 # We simply rely on all the jar files being copied to the output dir.
35 'compilation_classpath': '<(PRODUCT_DIR)/<(analyzer_name)/*',
36 # The file where we write the class path to be used in the manifest.
37 'class_path_file': '<(PRODUCT_DIR)/<(analyzer_name)/classpath_file',
38 },
39 # Copy all the jar files we depend on to the output directory.
40 'copies': [
41 {
42 'destination': '<(PRODUCT_DIR)/<(analyzer_name)',
ahe 2013/02/14 14:28:16 I don't think this is correct. I don't know how GY
ricow1 2013/02/14 15:40:20 Do you mean as in this will make it non-incrementa
ahe 2013/02/14 16:34:10 I agree. Sorry for the confusion. However, I stil
43 'files': [
44 '<@(dependent_jar_files)',
45 ],
46 }
47 ],
48 'actions': [
49 {
50 'action_name': 'create_classpath_file',
51 'inputs': [
52 '<@(java_source_files)',
53 '<@(dependent_jar_files)',
54 ],
55 'outputs': [
56 '<(PRODUCT_DIR)/<(analyzer_name)/classpath_file',
57 ],
58 'action': [
59 'python', 'tools/write_class_path_file.py',
60 '<(class_path_file)',
61 '<(PRODUCT_DIR)/<(analyzer_name)',
62 '<(analyzer_name)',
63 ],
64 'message': 'Creating classpath file.',
ahe 2013/02/14 14:28:16 I'd say: 'Creating <(_outputs)'
ricow1 2013/02/14 15:40:20 Done.
65 },
66 {
67 'action_name': 'create_analyzer',
68 'inputs': [
69 '<@(java_source_files)',
70 '<@(dependent_jar_files)',
71 ],
72 'outputs': [
73 '<(PRODUCT_DIR)/<(analyzer_name)/com',
74 ],
75 'action': [
76 'javac',
ahe 2013/02/14 14:28:16 Specify -sourcepath, -source 6, -target 6, and -im
ricow1 2013/02/14 15:40:20 Done
ricow1 2013/02/14 15:40:20 As discussed offline, done and moved to a python s
77 '-d', '<(PRODUCT_DIR)/<(analyzer_name)/',
78 '-cp',
79 '<@(compilation_classpath)',
80 '<@(java_source_files)',
81 ],
82 'message': 'Creating analyzer.',
ahe 2013/02/14 14:28:16 I'd use the same message as above.
ricow1 2013/02/14 15:40:20 Done.
83 },
84 {
85 'action_name': 'pack_analyzer',
86 'inputs': [
87 '<@(java_source_files)',
88 '<@(dependent_jar_files)',
89 '<(class_path_file)',
90 '<(PRODUCT_DIR)/<(analyzer_name)/com',
91 ],
92 'outputs': [
93 '<(PRODUCT_DIR)/<(analyzer_name).jar',
94 ],
95 'action': [
96 'jar',
97 'cfem', '<(PRODUCT_DIR)/<(analyzer_name).jar',
98 'com.google.dart.command.analyze.AnalyzerMain',
99 '<(class_path_file)',
100 '-C', '<(PRODUCT_DIR)/<(analyzer_name)/', 'com',
101 ],
102 'message': 'Pack analyzer.',
103 },
104 ],
105 }
106 ]
107 }
108
109
OLDNEW
« no previous file with comments | « dart.gyp ('k') | editor/tools/write_class_path_file.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698