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

Side by Side Diff: dart/compiler/dart-compiler.gyp

Issue 9353015: Remove dartc optimizing backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix minor test issues Created 8 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/compiler/build.xml ('k') | dart/compiler/dartc.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 # Copyright (c) 2011, 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': [ 6 'includes': [
7 'sources.gypi', 7 'sources.gypi',
8 'test_sources.gypi', 8 'test_sources.gypi',
9 'corelib_sources.gypi', 9 'corelib_sources.gypi',
10 'compiler_corelib_sources.gypi', 10 'compiler_corelib_sources.gypi',
11 'closure_compiler_sources.gypi',
12 'domlib_sources.gypi', 11 'domlib_sources.gypi',
13 'htmllib_sources.gypi', 12 'htmllib_sources.gypi',
14 'jsonlib_sources.gypi', 13 'jsonlib_sources.gypi',
15 ], 14 ],
16 'targets': [ 15 'targets': [
17 { 16 {
18 'target_name': 'dartc', 17 'target_name': 'dartc',
19 'type': 'none', 18 'type': 'none',
20 'variables': { 19 'variables': {
21 # The Dartium build has this layout: 20 # The Dartium build has this layout:
22 # src/dart/compiler/dart.gyp (this file) 21 # src/dart/compiler/dart.gyp (this file)
23 # src/v8/src/d8.gyp 22 # src/v8/src/d8.gyp
24 'v8_location%': '../../v8', 23 'v8_location%': '../../v8',
25 }, 24 },
26 'dependencies': [ 25 'dependencies': [
27 '<(v8_location)/src/d8.gyp:d8', 26 '<(v8_location)/src/d8.gyp:d8',
28 'closure_compiler',
29 ], 27 ],
30 'actions': [ 28 'actions': [
31 { 29 {
32 'action_name': 'build_dartc', 30 'action_name': 'build_dartc',
33 'inputs': [ 31 'inputs': [
34 'sources.gypi', 32 'sources.gypi',
35 'test_sources.gypi', 33 'test_sources.gypi',
36 'corelib_sources.gypi', 34 'corelib_sources.gypi',
37 'compiler_corelib_sources.gypi', 35 'compiler_corelib_sources.gypi',
38 '<@(java_sources)', 36 '<@(java_sources)',
39 '<@(java_resources)', 37 '<@(java_resources)',
40 '<@(javatests_sources)', 38 '<@(javatests_sources)',
41 '<@(javatests_resources)', 39 '<@(javatests_resources)',
42 '<@(corelib_sources)', 40 '<@(corelib_sources)',
43 '<@(corelib_resources)', 41 '<@(corelib_resources)',
44 '<@(compiler_corelib_sources)', 42 '<@(compiler_corelib_sources)',
45 '<@(compiler_corelib_resources)', 43 '<@(compiler_corelib_resources)',
46 'dartc.xml', 44 'dartc.xml',
47 'scripts/dartc.sh', 45 'scripts/dartc.sh',
48 'scripts/dartc_test.sh', 46 'scripts/dartc_test.sh',
49 'scripts/dartc_run.sh', 47 'scripts/dartc_run.sh',
50 'scripts/dartc_size.sh', 48 'scripts/dartc_size.sh',
51 'scripts/dartc_metrics.sh', 49 'scripts/dartc_metrics.sh',
52 '../third_party/args4j/2.0.12/args4j-2.0.12.jar', 50 '../third_party/args4j/2.0.12/args4j-2.0.12.jar',
53 '<(PRODUCT_DIR)/closure_out/compiler.jar',
54 '../third_party/guava/r09/guava-r09.jar', 51 '../third_party/guava/r09/guava-r09.jar',
55 '../third_party/json/r2_20080312/json.jar', 52 '../third_party/json/r2_20080312/json.jar',
56 '../third_party/rhino/1_7R3/js.jar', 53 '../third_party/rhino/1_7R3/js.jar',
57 '../third_party/hamcrest/v1_3/hamcrest-core-1.3.0RC2.jar', 54 '../third_party/hamcrest/v1_3/hamcrest-core-1.3.0RC2.jar',
58 '../third_party/hamcrest/v1_3/hamcrest-generator-1.3.0RC2.jar', 55 '../third_party/hamcrest/v1_3/hamcrest-generator-1.3.0RC2.jar',
59 '../third_party/hamcrest/v1_3/hamcrest-integration-1.3.0RC2.jar', 56 '../third_party/hamcrest/v1_3/hamcrest-integration-1.3.0RC2.jar',
60 '../third_party/hamcrest/v1_3/hamcrest-library-1.3.0RC2.jar', 57 '../third_party/hamcrest/v1_3/hamcrest-library-1.3.0RC2.jar',
61 ], 58 ],
62 'outputs': [ 59 'outputs': [
63 '<(INTERMEDIATE_DIR)/<(_target_name)/tests.jar', 60 '<(INTERMEDIATE_DIR)/<(_target_name)/tests.jar',
64 '<(PRODUCT_DIR)/compiler/bin/dartc', 61 '<(PRODUCT_DIR)/compiler/bin/dartc',
65 '<(PRODUCT_DIR)/compiler/bin/dartc_test', 62 '<(PRODUCT_DIR)/compiler/bin/dartc_test',
66 '<(PRODUCT_DIR)/compiler/lib/args4j/2.0.12/args4j-2.0.12.jar', 63 '<(PRODUCT_DIR)/compiler/lib/args4j/2.0.12/args4j-2.0.12.jar',
67 '<(PRODUCT_DIR)/compiler/lib/closure-compiler.jar',
68 '<(PRODUCT_DIR)/compiler/lib/dartc.jar', 64 '<(PRODUCT_DIR)/compiler/lib/dartc.jar',
69 '<(PRODUCT_DIR)/compiler/lib/guava/r09/guava-r09.jar', 65 '<(PRODUCT_DIR)/compiler/lib/guava/r09/guava-r09.jar',
70 '<(PRODUCT_DIR)/compiler/lib/json/r2_20080312/json.jar', 66 '<(PRODUCT_DIR)/compiler/lib/json/r2_20080312/json.jar',
71 '<(PRODUCT_DIR)/compiler/lib/rhino/1_7R3/js.jar', 67 '<(PRODUCT_DIR)/compiler/lib/rhino/1_7R3/js.jar',
72 ], 68 ],
73 'action' : [ 69 'action' : [
74 '../third_party/apache_ant/v1_7_1/bin/ant', 70 '../third_party/apache_ant/v1_7_1/bin/ant',
75 '-f', 'dartc.xml', 71 '-f', 'dartc.xml',
76 '-Dbuild.dir=<(INTERMEDIATE_DIR)/<(_target_name)', 72 '-Dbuild.dir=<(INTERMEDIATE_DIR)/<(_target_name)',
77 '-Ddist.dir=<(PRODUCT_DIR)/compiler', 73 '-Ddist.dir=<(PRODUCT_DIR)/compiler',
78 '-Dclosure_compiler.jar=<(PRODUCT_DIR)/closure_out/compiler.jar',
79 'clean', 74 'clean',
80 'dist', 75 'dist',
81 'tests.jar', 76 'tests.jar',
82 ], 77 ],
83 'message': 'Building dartc.', 78 'message': 'Building dartc.',
84 }, 79 },
85 { 80 {
86 'action_name': 'strip_d8', 81 'action_name': 'strip_d8',
87 'inputs': [ 82 'inputs': [
88 # Add fake dependency on dartc because this action must 83 # Add fake dependency on dartc because this action must
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 '<(INTERMEDIATE_DIR)/<(_target_name)/corelib.jar.stamp', 125 '<(INTERMEDIATE_DIR)/<(_target_name)/corelib.jar.stamp',
131 '<(INTERMEDIATE_DIR)/<(_target_name)/domlib.jar.stamp', 126 '<(INTERMEDIATE_DIR)/<(_target_name)/domlib.jar.stamp',
132 '<(INTERMEDIATE_DIR)/<(_target_name)/htmllib.jar.stamp', 127 '<(INTERMEDIATE_DIR)/<(_target_name)/htmllib.jar.stamp',
133 '<(INTERMEDIATE_DIR)/<(_target_name)/jsonlib.jar.stamp', 128 '<(INTERMEDIATE_DIR)/<(_target_name)/jsonlib.jar.stamp',
134 ], 129 ],
135 'action': [ 130 'action': [
136 '../third_party/apache_ant/v1_7_1/bin/ant', 131 '../third_party/apache_ant/v1_7_1/bin/ant',
137 '-f', 'dartc.xml', 132 '-f', 'dartc.xml',
138 '-Dbuild.dir=<(INTERMEDIATE_DIR)/<(_target_name)', 133 '-Dbuild.dir=<(INTERMEDIATE_DIR)/<(_target_name)',
139 '-Ddist.dir=<(PRODUCT_DIR)/compiler', 134 '-Ddist.dir=<(PRODUCT_DIR)/compiler',
140 '-Dclosure_compiler.jar=<(PRODUCT_DIR)/closure_out/compiler.jar',
141 'syslib_clean', 135 'syslib_clean',
142 'syslib', 136 'syslib',
143 ], 137 ],
144 }, 138 },
145 { 139 {
146 'message': 'Compiling dart system libraries', 140 'message': 'Compiling dart system libraries to <(INTERMEDIATE_DIR)/<(_ target_name)/api',
147 'action_name': 'compile_systemlibrary', 141 'action_name': 'compile_systemlibrary',
148 'inputs': [ 142 'inputs': [
149 '<(PRODUCT_DIR)/dartc', 143 '<(PRODUCT_DIR)/dartc',
150 '<(INTERMEDIATE_DIR)/<(_target_name)/syslib.stamp', 144 '<(INTERMEDIATE_DIR)/<(_target_name)/syslib.stamp',
151 'api.dart', 145 'api.dart',
152 ], 146 ],
153 'outputs': [ 147 'outputs': [
154 '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/core/com/google/dart/c orelib/corelib.dart.api', 148 '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/core/com/google/dart/c orelib/corelib.dart.deps',
155 '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/dom/dom/dom.dart.api', 149 '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/dom/dom/dom.dart.deps' ,
156 '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/html/html/html.dart.ap i', 150 '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/html/html/html.dart.de ps',
157 '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/json/json/json.dart.ap i', 151 '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/json/json/json.dart.de ps',
158 ], 152 ],
159 'action': [ 153 'action': [
160 '<(PRODUCT_DIR)/dartc', 'api.dart', 154 '<(PRODUCT_DIR)/dartc', 'api.dart',
161 '--fatal-warnings', '--fatal-type-errors', 155 '--fatal-warnings', '--fatal-type-errors',
156 '--deprecated-generate-code',
162 '-out', '<(INTERMEDIATE_DIR)/<(_target_name)/api', 157 '-out', '<(INTERMEDIATE_DIR)/<(_target_name)/api',
163 ], 158 ],
164 }, 159 },
165 { 160 {
166 'message': 'Packaging dart:core artifacts', 161 'message': 'Packaging dart:core artifacts',
167 'action_name': 'package_corelib_artifacts', 162 'action_name': 'package_corelib_artifacts',
168 'inputs': [ 163 'inputs': [
169 '<(INTERMEDIATE_DIR)/<(_target_name)/corelib.jar.stamp', 164 '<(INTERMEDIATE_DIR)/<(_target_name)/corelib.jar.stamp',
170 '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/core/com/google/dart/c orelib/corelib.dart.api', 165 '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/core/com/google/dart/c orelib/corelib.dart.deps',
171 ], 166 ],
172 'outputs': [ 167 'outputs': [
173 '<(PRODUCT_DIR)/compiler/lib/corelib.jar', 168 '<(PRODUCT_DIR)/compiler/lib/corelib.jar',
174 ], 169 ],
175 'action': [ 170 'action': [
176 'jar', 'u0f', '<(PRODUCT_DIR)/compiler/lib/corelib.jar', '-C', '<(IN TERMEDIATE_DIR)/<(_target_name)/api/dart/core', 'com', 171 'jar', 'u0f', '<(PRODUCT_DIR)/compiler/lib/corelib.jar', '-C', '<(IN TERMEDIATE_DIR)/<(_target_name)/api/dart/core', 'com',
177 ], 172 ],
178 }, 173 },
179 { 174 {
180 'message': 'Packaging dart:dom artifacts', 175 'message': 'Packaging dart:dom artifacts',
181 'action_name': 'package_domlib_artifacts', 176 'action_name': 'package_domlib_artifacts',
182 'inputs': [ 177 'inputs': [
183 '<(INTERMEDIATE_DIR)/<(_target_name)/domlib.jar.stamp', 178 '<(INTERMEDIATE_DIR)/<(_target_name)/domlib.jar.stamp',
184 '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/dom/dom/dom.dart.api', 179 '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/dom/dom/dom.dart.deps' ,
185 ], 180 ],
186 'outputs': [ 181 'outputs': [
187 '<(PRODUCT_DIR)/compiler/lib/domlib.jar', 182 '<(PRODUCT_DIR)/compiler/lib/domlib.jar',
188 ], 183 ],
189 'action': [ 184 'action': [
190 'jar', 'u0f', '<(PRODUCT_DIR)/compiler/lib/domlib.jar', '-C', '<(INT ERMEDIATE_DIR)/<(_target_name)/api/dart/dom', 'dom', 185 'jar', 'u0f', '<(PRODUCT_DIR)/compiler/lib/domlib.jar', '-C', '<(INT ERMEDIATE_DIR)/<(_target_name)/api/dart/dom', 'dom',
191 ], 186 ],
192 }, 187 },
193 { 188 {
194 'message': 'Packaging dart:html artifacts', 189 'message': 'Packaging dart:html artifacts',
195 'action_name': 'package_htmllib_artifacts', 190 'action_name': 'package_htmllib_artifacts',
196 'inputs': [ 191 'inputs': [
197 'htmllib_sources.gypi', 192 'htmllib_sources.gypi',
198 '<@(htmllib_sources)', 193 '<@(htmllib_sources)',
199 '<@(htmllib_resources)', 194 '<@(htmllib_resources)',
200 '<(INTERMEDIATE_DIR)/<(_target_name)/htmllib.jar.stamp', 195 '<(INTERMEDIATE_DIR)/<(_target_name)/htmllib.jar.stamp',
201 '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/html/html/html.dart.ap i', 196 '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/html/html/html.dart.de ps',
202 ], 197 ],
203 'outputs': [ 198 'outputs': [
204 '<(PRODUCT_DIR)/compiler/lib/htmllib.jar', 199 '<(PRODUCT_DIR)/compiler/lib/htmllib.jar',
205 ], 200 ],
206 'action': [ 201 'action': [
207 'jar', 'u0f', '<(PRODUCT_DIR)/compiler/lib/htmllib.jar', '-C', '<(IN TERMEDIATE_DIR)/<(_target_name)/api/dart/html', 'html', 202 'jar', 'u0f', '<(PRODUCT_DIR)/compiler/lib/htmllib.jar', '-C', '<(IN TERMEDIATE_DIR)/<(_target_name)/api/dart/html', 'html',
208 ], 203 ],
209 }, 204 },
210 { 205 {
211 'message': 'Packaging dart:json artifacts', 206 'message': 'Packaging dart:json artifacts',
212 'action_name': 'package_jsonlib_artifacts', 207 'action_name': 'package_jsonlib_artifacts',
213 'inputs': [ 208 'inputs': [
214 '<(INTERMEDIATE_DIR)/<(_target_name)/jsonlib.jar.stamp', 209 '<(INTERMEDIATE_DIR)/<(_target_name)/jsonlib.jar.stamp',
215 '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/json/json/json.dart.ap i', 210 '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/json/json/json.dart.de ps',
216 'api.dart', 211 'api.dart',
217 ], 212 ],
218 'outputs': [ 213 'outputs': [
219 '<(PRODUCT_DIR)/compiler/lib/jsonlib.jar', 214 '<(PRODUCT_DIR)/compiler/lib/jsonlib.jar',
220 ], 215 ],
221 'action': [ 216 'action': [
222 'jar', 'u0f', '<(PRODUCT_DIR)/compiler/lib/jsonlib.jar', '-C', '<(IN TERMEDIATE_DIR)/<(_target_name)/api/dart/json', 'json', 217 'jar', 'u0f', '<(PRODUCT_DIR)/compiler/lib/jsonlib.jar', '-C', '<(IN TERMEDIATE_DIR)/<(_target_name)/api/dart/json', 'json',
223 ], 218 ],
224 }, 219 },
225 ], 220 ],
226 }, 221 },
227 { 222 {
228 'target_name': 'closure_compiler', 223 # GYP won't generate a catch-all target if there's only one target.
224 'target_name': 'dummy',
229 'type': 'none', 225 'type': 'none',
230 'dependencies': [],
231 'actions': [
232 {
233 'action_name': 'build_closure_compiler',
234 'inputs': [
235 'closure_compiler_sources.gypi',
236 '../third_party/closure_compiler_src/build.xml',
237 '<@(closure_compiler_src_sources)',
238 '<@(closure_compiler_src_resources)',
239 ],
240 'outputs': [
241 '<(PRODUCT_DIR)/closure_out/compiler.jar'
242 ],
243 'action': [
244 '../third_party/apache_ant/v1_7_1/bin/ant',
245 '-f',
246 '../third_party/closure_compiler_src/build.xml',
247 '-Dclosure.build.dir=<(PRODUCT_DIR)/closure_out',
248 'clean',
249 'jar',
250 ],
251 'message': 'Building closure compiler'
252 },
253 ]
254 }, 226 },
255 ], 227 ],
256 } 228 }
OLDNEW
« no previous file with comments | « dart/compiler/build.xml ('k') | dart/compiler/dartc.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698