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

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
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 'targets': [
7 {
8 'target_name': 'analyzer',
9 'type': 'none',
10 'variables': {
11 'analyzer_name': 'new_analyzer',
12 'java_source_files': [
13 '<!@(["python", "../tools/list_files.py", "\\.java$", "tools/plugins/c om.google.dart.command.analyze"])',
14 '<!@(["python", "../tools/list_files.py", "\\.java$", "tools/plugins/c om.google.dart.engine"])',
15 ],
16 # When changing the jar files that we depend on please change the list
17 # below.
18 'dependent_jar_files': [
19 '../third_party/commons-lang/3.1/commons-lang3-3.1.jar',
20 '../third_party/json/r2_20080312/json.jar',
21 '../third_party/guava/r13/guava-13.0.1.jar',
22 '../third_party/args4j/2.0.12/args4j-2.0.12.jar'
23 ],
24 # We simply rely on all the jar files being copied to the output dir.
25 'compilation_classpath': '<(PRODUCT_DIR)/<(analyzer_name)/*',
26 # 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 },
29 # Copy all the jar files we depend on to the output directory.
30 'copies': [
31 {
32 'destination': '<(PRODUCT_DIR)/<(analyzer_name)',
33 'files': [
34 '<@(dependent_jar_files)',
35 ],
36 }
37 ],
38 'actions': [
39 {
40 'action_name': 'create_classpath_file',
41 'inputs': [
42 '<@(java_source_files)',
43 '<@(dependent_jar_files)',
44 ],
45 'outputs': [
46 '<(PRODUCT_DIR)/<(analyzer_name)/classpath_file',
47 ],
48 'action': [
49 'python', 'tools/write_class_path_file.py',
50 '<(class_path_file)',
51 '<(PRODUCT_DIR)/<(analyzer_name)',
52 '<(analyzer_name)',
53 ],
54 'message': 'Creating classpath file.',
55 },
56 {
57 'action_name': 'create_analyzer',
58 'inputs': [
59 '<@(java_source_files)',
60 '<@(dependent_jar_files)',
61 ],
62 'outputs': [
63 '<(PRODUCT_DIR)/<(analyzer_name)/com',
64 ],
65 'action': [
66 'javac',
67 '-d', '<(PRODUCT_DIR)/<(analyzer_name)/',
68 '-cp',
69 '<@(compilation_classpath)',
70 '<@(java_source_files)',
71 ],
72 'message': 'Creating analyzer.',
73 },
74 {
75 'action_name': 'pack_analyzer',
76 'inputs': [
77 '<@(java_source_files)',
78 '<@(dependent_jar_files)',
79 '<(class_path_file)',
80 '<(PRODUCT_DIR)/<(analyzer_name)/com',
81 ],
82 'outputs': [
83 '<(PRODUCT_DIR)/<(analyzer_name).jar',
84 ],
85 'action': [
86 'jar',
87 'cfem', '<(PRODUCT_DIR)/<(analyzer_name).jar',
88 'com.google.dart.command.analyze.AnalyzerMain',
89 '<(class_path_file)',
90 '-C', '<(PRODUCT_DIR)/<(analyzer_name)/', 'com',
91 ],
92 'message': 'Pack analyzer.',
93 },
94 ],
95 }
96 ]
97 }
98
99
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698