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

Side by Side Diff: vm/vm.gypi

Issue 10834284: - Split Dart core libraries into shared sources and patch sources. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 4 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 | « vm/parser.cc ('k') | no next file » | 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) 2012, the Dart project authors. Please see the AUTHORS file 1 # Copyright (c) 2012, 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 'builtin_in_cc_file': '../bin/builtin_in.cc', 7 'builtin_in_cc_file': '../bin/builtin_in.cc',
8 'corelib_cc_file': '<(SHARED_INTERMEDIATE_DIR)/corelib_gen.cc', 8 'corelib_cc_file': '<(SHARED_INTERMEDIATE_DIR)/corelib_gen.cc',
9 'corelib_patch_cc_file': '<(SHARED_INTERMEDIATE_DIR)/corelib_patch_gen.cc',
9 'corelib_impl_cc_file': '<(SHARED_INTERMEDIATE_DIR)/corelib_impl_gen.cc', 10 'corelib_impl_cc_file': '<(SHARED_INTERMEDIATE_DIR)/corelib_impl_gen.cc',
11 'corelib_impl_patch_cc_file': '<(SHARED_INTERMEDIATE_DIR)/corelib_impl_patch _gen.cc',
10 'math_cc_file': '<(SHARED_INTERMEDIATE_DIR)/math_gen.cc', 12 'math_cc_file': '<(SHARED_INTERMEDIATE_DIR)/math_gen.cc',
13 'math_patch_cc_file': '<(SHARED_INTERMEDIATE_DIR)/math_patch_gen.cc',
11 'mirrors_cc_file': '<(SHARED_INTERMEDIATE_DIR)/mirrors_gen.cc', 14 'mirrors_cc_file': '<(SHARED_INTERMEDIATE_DIR)/mirrors_gen.cc',
15 'mirrors_patch_cc_file': '<(SHARED_INTERMEDIATE_DIR)/mirrors_patch_gen.cc',
12 'isolate_cc_file': '<(SHARED_INTERMEDIATE_DIR)/isolate_gen.cc', 16 'isolate_cc_file': '<(SHARED_INTERMEDIATE_DIR)/isolate_gen.cc',
17 'isolate_patch_cc_file': '<(SHARED_INTERMEDIATE_DIR)/isolate_patch_gen.cc',
13 'snapshot_test_dat_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_test.dat', 18 'snapshot_test_dat_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_test.dat',
14 'snapshot_test_in_dat_file': 'snapshot_test_in.dat', 19 'snapshot_test_in_dat_file': 'snapshot_test_in.dat',
15 'snapshot_test_dart_file': 'snapshot_test.dart', 20 'snapshot_test_dart_file': 'snapshot_test.dart',
16 }, 21 },
17 'targets': [ 22 'targets': [
18 { 23 {
19 'target_name': 'libdart_vm', 24 'target_name': 'libdart_vm',
20 'type': 'static_library', 25 'type': 'static_library',
21 'includes': [ 26 'includes': [
22 'vm_sources.gypi', 27 'vm_sources.gypi',
(...skipping 20 matching lines...) Expand all
43 'sources/' : [ 48 'sources/' : [
44 ['exclude', 'gdbjit.cc'], 49 ['exclude', 'gdbjit.cc'],
45 ], 50 ],
46 }]], 51 }]],
47 }, 52 },
48 { 53 {
49 'target_name': 'libdart_lib_withcore', 54 'target_name': 'libdart_lib_withcore',
50 'type': 'static_library', 55 'type': 'static_library',
51 'dependencies': [ 56 'dependencies': [
52 'generate_corelib_cc_file', 57 'generate_corelib_cc_file',
58 'generate_corelib_patch_cc_file',
53 'generate_corelib_impl_cc_file', 59 'generate_corelib_impl_cc_file',
60 'generate_corelib_impl_patch_cc_file',
54 'generate_math_cc_file', 61 'generate_math_cc_file',
62 'generate_math_patch_cc_file',
55 'generate_isolate_cc_file', 63 'generate_isolate_cc_file',
64 'generate_isolate_patch_cc_file',
56 'generate_mirrors_cc_file', 65 'generate_mirrors_cc_file',
66 'generate_mirrors_patch_cc_file',
57 ], 67 ],
58 'includes': [ 68 'includes': [
59 '../lib/lib_sources.gypi', 69 '../lib/lib_sources.gypi',
60 '../lib/lib_impl_sources.gypi', 70 '../lib/lib_impl_sources.gypi',
61 '../lib/isolate_sources.gypi', 71 '../lib/isolate_sources.gypi',
62 '../lib/mirrors_sources.gypi', 72 '../lib/mirrors_sources.gypi',
63 ], 73 ],
64 'sources': [ 74 'sources': [
65 'bootstrap.cc', 75 'bootstrap.cc',
66 # Include generated source files. 76 # Include generated source files.
67 '<(corelib_cc_file)', 77 '<(corelib_cc_file)',
78 '<(corelib_patch_cc_file)',
68 '<(corelib_impl_cc_file)', 79 '<(corelib_impl_cc_file)',
80 '<(corelib_impl_patch_cc_file)',
69 '<(math_cc_file)', 81 '<(math_cc_file)',
82 '<(math_patch_cc_file)',
70 '<(isolate_cc_file)', 83 '<(isolate_cc_file)',
84 '<(isolate_patch_cc_file)',
71 '<(mirrors_cc_file)', 85 '<(mirrors_cc_file)',
86 '<(mirrors_patch_cc_file)',
72 ], 87 ],
73 'include_dirs': [ 88 'include_dirs': [
74 '..', 89 '..',
75 ], 90 ],
76 }, 91 },
77 { 92 {
78 'target_name': 'libdart_lib', 93 'target_name': 'libdart_lib',
79 'type': 'static_library', 94 'type': 'static_library',
80 'includes': [ 95 'includes': [
81 '../lib/lib_sources.gypi', 96 '../lib/lib_sources.gypi',
82 '../lib/lib_impl_sources.gypi', 97 '../lib/lib_impl_sources.gypi',
83 '../lib/isolate_sources.gypi', 98 '../lib/isolate_sources.gypi',
84 '../lib/mirrors_sources.gypi', 99 '../lib/mirrors_sources.gypi',
85 ], 100 ],
86 'sources': [ 101 'sources': [
87 'bootstrap_nocorelib.cc', 102 'bootstrap_nocorelib.cc',
88 ], 103 ],
89 'include_dirs': [ 104 'include_dirs': [
90 '..', 105 '..',
91 ], 106 ],
92 }, 107 },
93 { 108 {
94 'target_name': 'generate_corelib_cc_file', 109 'target_name': 'generate_corelib_cc_file',
95 'type': 'none', 110 'type': 'none',
96 'includes': [ 111 'includes': [
97 # Load the runtime implementation sources.
98 '../lib/lib_sources.gypi',
99 # Load the shared core library sources. 112 # Load the shared core library sources.
100 '../../corelib/src/corelib_sources.gypi', 113 '../../corelib/src/corelib_sources.gypi',
101 ], 114 ],
102 'sources/': [ 115 'sources/': [
103 # Exclude all .[cc|h] files. 116 # Exclude all .[cc|h] files.
104 # This is only here for reference. Excludes happen after 117 # This is only here for reference. Excludes happen after
105 # variable expansion, so the script has to do its own 118 # variable expansion, so the script has to do its own
106 # exclude processing of the sources being passed. 119 # exclude processing of the sources being passed.
107 ['exclude', '\\.cc|h$'], 120 ['exclude', '\\.cc|h$'],
108 ], 121 ],
(...skipping 15 matching lines...) Expand all
124 '--input_cc', '<(builtin_in_cc_file)', 137 '--input_cc', '<(builtin_in_cc_file)',
125 '--include', 'vm/bootstrap.h', 138 '--include', 'vm/bootstrap.h',
126 '--var_name', 'dart::Bootstrap::corelib_source_', 139 '--var_name', 'dart::Bootstrap::corelib_source_',
127 '<@(_sources)', 140 '<@(_sources)',
128 ], 141 ],
129 'message': 'Generating ''<(corelib_cc_file)'' file.' 142 'message': 'Generating ''<(corelib_cc_file)'' file.'
130 }, 143 },
131 ] 144 ]
132 }, 145 },
133 { 146 {
147 'target_name': 'generate_corelib_patch_cc_file',
148 'type': 'none',
149 'includes': [
150 # Load the runtime implementation sources.
151 '../lib/lib_sources.gypi',
152 ],
153 'sources/': [
154 # Exclude all .[cc|h] files.
155 # This is only here for reference. Excludes happen after
156 # variable expansion, so the script has to do its own
157 # exclude processing of the sources being passed.
158 ['exclude', '\\.cc|h$'],
159 ],
160 'actions': [
161 {
162 'action_name': 'generate_corelib_patch_cc',
163 'inputs': [
164 '../tools/create_string_literal.py',
165 '<(builtin_in_cc_file)',
166 '<@(_sources)',
167 ],
168 'outputs': [
169 '<(corelib_patch_cc_file)',
170 ],
171 'action': [
172 'python',
173 'tools/create_string_literal.py',
174 '--output', '<(corelib_patch_cc_file)',
175 '--input_cc', '<(builtin_in_cc_file)',
176 '--include', 'vm/bootstrap.h',
177 '--var_name', 'dart::Bootstrap::corelib_patch_',
178 '<@(_sources)',
179 ],
180 'message': 'Generating ''<(corelib_patch_cc_file)'' file.'
181 },
182 ]
183 },
184 {
134 'target_name': 'generate_corelib_impl_cc_file', 185 'target_name': 'generate_corelib_impl_cc_file',
135 'type': 'none', 186 'type': 'none',
136 'includes': [ 187 'includes': [
137 # Load the runtime implementation sources.
138 '../lib/lib_impl_sources.gypi',
139 # Load the shared core library sources. 188 # Load the shared core library sources.
140 '../../corelib/src/implementation/corelib_impl_sources.gypi', 189 '../../corelib/src/implementation/corelib_impl_sources.gypi',
141 ], 190 ],
142 'sources/': [ 191 'sources/': [
143 # Exclude all .[cc|h] files. 192 # Exclude all .[cc|h] files.
144 # This is only here for reference. Excludes happen after 193 # This is only here for reference. Excludes happen after
145 # variable expansion, so the script has to do its own 194 # variable expansion, so the script has to do its own
146 # exclude processing of the sources being passed. 195 # exclude processing of the sources being passed.
147 ['exclude', '\\.cc|h$'], 196 ['exclude', '\\.cc|h$'],
148 ], 197 ],
(...skipping 15 matching lines...) Expand all
164 '--input_cc', '<(builtin_in_cc_file)', 213 '--input_cc', '<(builtin_in_cc_file)',
165 '--include', 'vm/bootstrap.h', 214 '--include', 'vm/bootstrap.h',
166 '--var_name', 'dart::Bootstrap::corelib_impl_source_', 215 '--var_name', 'dart::Bootstrap::corelib_impl_source_',
167 '<@(_sources)', 216 '<@(_sources)',
168 ], 217 ],
169 'message': 'Generating ''<(corelib_impl_cc_file)'' file.' 218 'message': 'Generating ''<(corelib_impl_cc_file)'' file.'
170 }, 219 },
171 ] 220 ]
172 }, 221 },
173 { 222 {
223 'target_name': 'generate_corelib_impl_patch_cc_file',
224 'type': 'none',
225 'includes': [
226 # Load the runtime implementation sources.
227 '../lib/lib_impl_sources.gypi',
228 ],
229 'sources/': [
230 # Exclude all .[cc|h] files.
231 # This is only here for reference. Excludes happen after
232 # variable expansion, so the script has to do its own
233 # exclude processing of the sources being passed.
234 ['exclude', '\\.cc|h$'],
235 ],
236 'actions': [
237 {
238 'action_name': 'generate_corelib_impl_patch_cc',
239 'inputs': [
240 '../tools/create_string_literal.py',
241 '<(builtin_in_cc_file)',
242 '<@(_sources)',
243 ],
244 'outputs': [
245 '<(corelib_impl_patch_cc_file)',
246 ],
247 'action': [
248 'python',
249 'tools/create_string_literal.py',
250 '--output', '<(corelib_impl_patch_cc_file)',
251 '--input_cc', '<(builtin_in_cc_file)',
252 '--include', 'vm/bootstrap.h',
253 '--var_name', 'dart::Bootstrap::corelib_impl_patch_',
254 '<@(_sources)',
255 ],
256 'message': 'Generating ''<(corelib_impl_patch_cc_file)'' file.'
257 },
258 ]
259 },
260 {
174 'target_name': 'generate_math_cc_file', 261 'target_name': 'generate_math_cc_file',
175 'type': 'none', 262 'type': 'none',
176 'includes': [ 263 'includes': [
177 # Load the shared math library sources. 264 # Load the shared math library sources.
178 '../../lib/math/math_sources.gypi', 265 '../../lib/math/math_sources.gypi',
179 ], 266 ],
180 'sources/': [ 267 'sources/': [
181 # Exclude all .[cc|h] files. 268 # Exclude all .[cc|h] files.
182 # This is only here for reference. Excludes happen after 269 # This is only here for reference. Excludes happen after
183 # variable expansion, so the script has to do its own 270 # variable expansion, so the script has to do its own
(...skipping 18 matching lines...) Expand all
202 '--input_cc', '<(builtin_in_cc_file)', 289 '--input_cc', '<(builtin_in_cc_file)',
203 '--include', 'vm/bootstrap.h', 290 '--include', 'vm/bootstrap.h',
204 '--var_name', 'dart::Bootstrap::math_source_', 291 '--var_name', 'dart::Bootstrap::math_source_',
205 '<@(_sources)', 292 '<@(_sources)',
206 ], 293 ],
207 'message': 'Generating ''<(math_cc_file)'' file.' 294 'message': 'Generating ''<(math_cc_file)'' file.'
208 }, 295 },
209 ] 296 ]
210 }, 297 },
211 { 298 {
299 'target_name': 'generate_math_patch_cc_file',
300 'type': 'none',
301 'includes': [
302 # Load the shared math library sources.
303 '../lib/math_sources.gypi',
304 ],
305 'sources/': [
306 # Exclude all .[cc|h] files.
307 # This is only here for reference. Excludes happen after
308 # variable expansion, so the script has to do its own
309 # exclude processing of the sources being passed.
310 ['exclude', '\\.cc|h$'],
311 ],
312 'actions': [
313 {
314 'action_name': 'generate_math_patch_cc',
315 'inputs': [
316 '../tools/create_string_literal.py',
317 '<(builtin_in_cc_file)',
318 '<@(_sources)',
319 ],
320 'outputs': [
321 '<(math_patch_cc_file)',
322 ],
323 'action': [
324 'python',
325 'tools/create_string_literal.py',
326 '--output', '<(math_patch_cc_file)',
327 '--input_cc', '<(builtin_in_cc_file)',
328 '--include', 'vm/bootstrap.h',
329 '--var_name', 'dart::Bootstrap::math_patch_',
330 '<@(_sources)',
331 ],
332 'message': 'Generating ''<(math_patch_cc_file)'' file.'
333 },
334 ]
335 },
336 {
212 'target_name': 'generate_mirrors_cc_file', 337 'target_name': 'generate_mirrors_cc_file',
213 'type': 'none', 338 'type': 'none',
214 'includes': [ 339 'includes': [
215 # Load the shared core library sources. 340 # Load the shared core library sources.
216 '../lib/mirrors_sources.gypi', 341 '../../lib/mirrors/mirrors_sources.gypi',
217 ], 342 ],
218 'sources/': [ 343 'sources/': [
219 # Exclude all .[cc|h] files. 344 # Exclude all .[cc|h] files.
220 # This is only here for reference. Excludes happen after 345 # This is only here for reference. Excludes happen after
221 # variable expansion, so the script has to do its own 346 # variable expansion, so the script has to do its own
222 # exclude processing of the sources being passed. 347 # exclude processing of the sources being passed.
223 ['exclude', '\\.cc|h$'], 348 ['exclude', '\\.cc|h$'],
224 ], 349 ],
225 'actions': [ 350 'actions': [
226 { 351 {
(...skipping 13 matching lines...) Expand all
240 '--input_cc', '<(builtin_in_cc_file)', 365 '--input_cc', '<(builtin_in_cc_file)',
241 '--include', 'vm/bootstrap.h', 366 '--include', 'vm/bootstrap.h',
242 '--var_name', 'dart::Bootstrap::mirrors_source_', 367 '--var_name', 'dart::Bootstrap::mirrors_source_',
243 '<@(_sources)', 368 '<@(_sources)',
244 ], 369 ],
245 'message': 'Generating ''<(mirrors_cc_file)'' file.' 370 'message': 'Generating ''<(mirrors_cc_file)'' file.'
246 }, 371 },
247 ] 372 ]
248 }, 373 },
249 { 374 {
375 'target_name': 'generate_mirrors_patch_cc_file',
376 'type': 'none',
377 'includes': [
378 # Load the patch sources.
379 '../lib/mirrors_sources.gypi',
380 ],
381 'sources/': [
382 # Exclude all .[cc|h] files.
383 # This is only here for reference. Excludes happen after
384 # variable expansion, so the script has to do its own
385 # exclude processing of the sources being passed.
386 ['exclude', '\\.cc|h$'],
387 ],
388 'actions': [
389 {
390 'action_name': 'generate_mirrors_patch_cc',
391 'inputs': [
392 '../tools/create_string_literal.py',
393 '<(builtin_in_cc_file)',
394 '<@(_sources)',
395 ],
396 'outputs': [
397 '<(mirrors_patch_cc_file)',
398 ],
399 'action': [
400 'python',
401 'tools/create_string_literal.py',
402 '--output', '<(mirrors_patch_cc_file)',
403 '--input_cc', '<(builtin_in_cc_file)',
404 '--include', 'vm/bootstrap.h',
405 '--var_name', 'dart::Bootstrap::mirrors_patch_',
406 '<@(_sources)',
407 ],
408 'message': 'Generating ''<(mirrors_patch_cc_file)'' file.'
409 },
410 ]
411 },
412 {
250 'target_name': 'generate_isolate_cc_file', 413 'target_name': 'generate_isolate_cc_file',
251 'type': 'none', 414 'type': 'none',
252 'includes': [ 415 'includes': [
253 # Load the runtime implementation sources. 416 # Load the runtime implementation sources.
254 '../lib/isolate_sources.gypi', 417 '../../lib/isolate/isolate_sources.gypi',
255 ], 418 ],
256 'sources/': [ 419 'sources/': [
257 # Exclude all .[cc|h] files. 420 # Exclude all .[cc|h] files.
258 # This is only here for reference. Excludes happen after 421 # This is only here for reference. Excludes happen after
259 # variable expansion, so the script has to do its own 422 # variable expansion, so the script has to do its own
260 # exclude processing of the sources being passed. 423 # exclude processing of the sources being passed.
261 ['exclude', '\\.cc|h$'], 424 ['exclude', '\\.cc|h$'],
262 ], 425 ],
263 'actions': [ 426 'actions': [
264 { 427 {
(...skipping 13 matching lines...) Expand all
278 '--input_cc', '<(builtin_in_cc_file)', 441 '--input_cc', '<(builtin_in_cc_file)',
279 '--include', 'vm/bootstrap.h', 442 '--include', 'vm/bootstrap.h',
280 '--var_name', 'dart::Bootstrap::isolate_source_', 443 '--var_name', 'dart::Bootstrap::isolate_source_',
281 '<@(_sources)', 444 '<@(_sources)',
282 ], 445 ],
283 'message': 'Generating ''<(isolate_cc_file)'' file.' 446 'message': 'Generating ''<(isolate_cc_file)'' file.'
284 }, 447 },
285 ] 448 ]
286 }, 449 },
287 { 450 {
451 'target_name': 'generate_isolate_patch_cc_file',
452 'type': 'none',
453 'includes': [
454 # Load the runtime implementation sources.
455 '../lib/isolate_sources.gypi',
456 ],
457 'sources/': [
458 # Exclude all .[cc|h] files.
459 # This is only here for reference. Excludes happen after
460 # variable expansion, so the script has to do its own
461 # exclude processing of the sources being passed.
462 ['exclude', '\\.cc|h$'],
463 ],
464 'actions': [
465 {
466 'action_name': 'generate_isolate_patch_cc',
467 'inputs': [
468 '../tools/create_string_literal.py',
469 '<(builtin_in_cc_file)',
470 '<@(_sources)',
471 ],
472 'outputs': [
473 '<(isolate_patch_cc_file)',
474 ],
475 'action': [
476 'python',
477 'tools/create_string_literal.py',
478 '--output', '<(isolate_patch_cc_file)',
479 '--input_cc', '<(builtin_in_cc_file)',
480 '--include', 'vm/bootstrap.h',
481 '--var_name', 'dart::Bootstrap::isolate_patch_',
482 '<@(_sources)',
483 ],
484 'message': 'Generating ''<(isolate_patch_cc_file)'' file.'
485 },
486 ]
487 },
488 {
288 'target_name': 'generate_snapshot_test_dat_file', 489 'target_name': 'generate_snapshot_test_dat_file',
289 'type': 'none', 490 'type': 'none',
290 'actions': [ 491 'actions': [
291 { 492 {
292 'action_name': 'generate_snapshot_test_dat', 493 'action_name': 'generate_snapshot_test_dat',
293 'inputs': [ 494 'inputs': [
294 '../tools/create_string_literal.py', 495 '../tools/create_string_literal.py',
295 '<(snapshot_test_in_dat_file)', 496 '<(snapshot_test_in_dat_file)',
296 '<(snapshot_test_dart_file)', 497 '<(snapshot_test_dart_file)',
297 ], 498 ],
298 'outputs': [ 499 'outputs': [
299 '<(snapshot_test_dat_file)', 500 '<(snapshot_test_dat_file)',
300 ], 501 ],
301 'action': [ 502 'action': [
302 'python', 503 'python',
303 'tools/create_string_literal.py', 504 'tools/create_string_literal.py',
304 '--output', '<(snapshot_test_dat_file)', 505 '--output', '<(snapshot_test_dat_file)',
305 '--input_cc', '<(snapshot_test_in_dat_file)', 506 '--input_cc', '<(snapshot_test_in_dat_file)',
306 '--include', 'INTENTIONALLY_LEFT_BLANK', 507 '--include', 'INTENTIONALLY_LEFT_BLANK',
307 '--var_name', 'INTENTIONALLY_LEFT_BLANK_TOO', 508 '--var_name', 'INTENTIONALLY_LEFT_BLANK_TOO',
308 '<(snapshot_test_dart_file)', 509 '<(snapshot_test_dart_file)',
309 ], 510 ],
310 'message': 'Generating ''<(snapshot_test_dat_file)'' file.' 511 'message': 'Generating ''<(snapshot_test_dat_file)'' file.'
311 }, 512 },
312 ] 513 ]
313 }, 514 },
314 ] 515 ]
315 } 516 }
OLDNEW
« no previous file with comments | « vm/parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698