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

Side by Side Diff: runtime/vm/vm.gypi

Issue 11411176: - Remove unneeded library tags when concatenating libraries. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years 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
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_patch_cc_file': '<(SHARED_INTERMEDIATE_DIR)/corelib_patch_gen.cc',
10 'collection_cc_file': '<(SHARED_INTERMEDIATE_DIR)/collection_gen.cc', 10 'collection_cc_file': '<(SHARED_INTERMEDIATE_DIR)/collection_gen.cc',
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 'sources': [ 114 'sources': [
115 'bootstrap_nocorelib.cc', 115 'bootstrap_nocorelib.cc',
116 ], 116 ],
117 'include_dirs': [ 117 'include_dirs': [
118 '..', 118 '..',
119 ], 119 ],
120 }, 120 },
121 { 121 {
122 'target_name': 'generate_corelib_cc_file', 122 'target_name': 'generate_corelib_cc_file',
123 'type': 'none', 123 'type': 'none',
124 'includes': [ 124 'variables': {
125 'core_dart': '<(SHARED_INTERMEDIATE_DIR)/core_gen.dart',
126 },'includes': [
125 # Load the shared core library sources. 127 # Load the shared core library sources.
126 '../../sdk/lib/core/corelib_sources.gypi', 128 '../../sdk/lib/core/corelib_sources.gypi',
127 ], 129 ],
128 'sources/': [ 130 'sources/': [
129 # Exclude all .[cc|h] files. 131 # Exclude all .[cc|h] files.
130 # This is only here for reference. Excludes happen after 132 # This is only here for reference. Excludes happen after
131 # variable expansion, so the script has to do its own 133 # variable expansion, so the script has to do its own
132 # exclude processing of the sources being passed. 134 # exclude processing of the sources being passed.
133 ['exclude', '\\.cc|h$'], 135 ['exclude', '\\.cc|h$'],
134 ], 136 ],
135 'actions': [ 137 'actions': [
136 { 138 {
139 'action_name': 'generate_core_dart',
140 'inputs': [
141 '../tools/concat_library.py',
142 '<@(_sources)',
143 ],
144 'outputs': [
145 '<(core_dart)',
146 ],
147 'action': [
148 'python',
149 '<@(_inputs)',
150 '--output', '<(core_dart)',
151 ],
152 'message': 'Generating ''<(core_dart)'' file.',
153 },
154 {
137 'action_name': 'generate_corelib_cc', 155 'action_name': 'generate_corelib_cc',
138 'inputs': [ 156 'inputs': [
139 '../tools/create_string_literal.py', 157 '../tools/create_string_literal.py',
140 '<(builtin_in_cc_file)', 158 '<(builtin_in_cc_file)',
141 '<@(_sources)', 159 '<(core_dart)',
142 ], 160 ],
143 'outputs': [ 161 'outputs': [
144 '<(corelib_cc_file)', 162 '<(corelib_cc_file)',
145 ], 163 ],
146 'action': [ 164 'action': [
147 'python', 165 'python',
148 'tools/create_string_literal.py', 166 'tools/create_string_literal.py',
149 '--output', '<(corelib_cc_file)', 167 '--output', '<(corelib_cc_file)',
150 '--input_cc', '<(builtin_in_cc_file)', 168 '--input_cc', '<(builtin_in_cc_file)',
151 '--include', 'vm/bootstrap.h', 169 '--include', 'vm/bootstrap.h',
152 '--var_name', 'dart::Bootstrap::corelib_source_', 170 '--var_name', 'dart::Bootstrap::corelib_source_',
153 '<@(_sources)', 171 '<(core_dart)',
154 ], 172 ],
155 'message': 'Generating ''<(corelib_cc_file)'' file.' 173 'message': 'Generating ''<(corelib_cc_file)'' file.'
156 }, 174 },
157 ] 175 ]
158 }, 176 },
159 { 177 {
160 'target_name': 'generate_corelib_patch_cc_file', 178 'target_name': 'generate_corelib_patch_cc_file',
161 'type': 'none', 179 'type': 'none',
162 'includes': [ 180 'includes': [
163 # Load the runtime implementation sources. 181 # Load the runtime implementation sources.
(...skipping 26 matching lines...) Expand all
190 '--var_name', 'dart::Bootstrap::corelib_patch_', 208 '--var_name', 'dart::Bootstrap::corelib_patch_',
191 '<@(_sources)', 209 '<@(_sources)',
192 ], 210 ],
193 'message': 'Generating ''<(corelib_patch_cc_file)'' file.' 211 'message': 'Generating ''<(corelib_patch_cc_file)'' file.'
194 }, 212 },
195 ] 213 ]
196 }, 214 },
197 { 215 {
198 'target_name': 'generate_collection_cc_file', 216 'target_name': 'generate_collection_cc_file',
199 'type': 'none', 217 'type': 'none',
218 'variables': {
219 'collection_dart': '<(SHARED_INTERMEDIATE_DIR)/collection_gen.dart',
220 },
200 'includes': [ 221 'includes': [
201 # Load the shared collection library sources. 222 # Load the shared collection library sources.
202 '../../sdk/lib/collection/collection_sources.gypi', 223 '../../sdk/lib/collection/collection_sources.gypi',
203 ], 224 ],
204 'sources/': [ 225 'sources/': [
205 # Exclude all .[cc|h] files. 226 # Exclude all .[cc|h] files.
206 # This is only here for reference. Excludes happen after 227 # This is only here for reference. Excludes happen after
207 # variable expansion, so the script has to do its own 228 # variable expansion, so the script has to do its own
208 # exclude processing of the sources being passed. 229 # exclude processing of the sources being passed.
209 ['exclude', '\\.cc|h$'], 230 ['exclude', '\\.cc|h$'],
210 ], 231 ],
211 'actions': [ 232 'actions': [
212 { 233 {
234 'action_name': 'generate_collection_dart',
235 'inputs': [
236 '../tools/concat_library.py',
237 '<@(_sources)',
238 ],
239 'outputs': [
240 '<(collection_dart)',
241 ],
242 'action': [
243 'python',
244 '<@(_inputs)',
245 '--output', '<(collection_dart)',
246 ],
247 'message': 'Generating ''<(collection_dart)'' file.',
248 },
249 {
213 'action_name': 'generate_collection_cc', 250 'action_name': 'generate_collection_cc',
214 'inputs': [ 251 'inputs': [
215 '../tools/create_string_literal.py', 252 '../tools/create_string_literal.py',
216 '<(builtin_in_cc_file)', 253 '<(builtin_in_cc_file)',
217 '<@(_sources)', 254 '<(collection_dart)',
218 ], 255 ],
219 'outputs': [ 256 'outputs': [
220 '<(collection_cc_file)', 257 '<(collection_cc_file)',
221 ], 258 ],
222 'action': [ 259 'action': [
223 'python', 260 'python',
224 'tools/create_string_literal.py', 261 'tools/create_string_literal.py',
225 '--output', '<(collection_cc_file)', 262 '--output', '<(collection_cc_file)',
226 '--input_cc', '<(builtin_in_cc_file)', 263 '--input_cc', '<(builtin_in_cc_file)',
227 '--include', 'vm/bootstrap.h', 264 '--include', 'vm/bootstrap.h',
228 '--var_name', 'dart::Bootstrap::collection_source_', 265 '--var_name', 'dart::Bootstrap::collection_source_',
229 '<@(_sources)', 266 '<(collection_dart)',
230 ], 267 ],
231 'message': 'Generating ''<(collection_cc_file)'' file.' 268 'message': 'Generating ''<(collection_cc_file)'' file.'
232 }, 269 },
233 ] 270 ]
234 }, 271 },
235 { 272 {
236 'target_name': 'generate_math_cc_file', 273 'target_name': 'generate_math_cc_file',
237 'type': 'none', 274 'type': 'none',
275 'variables': {
276 'math_dart': '<(SHARED_INTERMEDIATE_DIR)/math_gen.dart',
277 },
238 'includes': [ 278 'includes': [
239 # Load the shared math library sources. 279 # Load the shared math library sources.
240 '../../sdk/lib/math/math_sources.gypi', 280 '../../sdk/lib/math/math_sources.gypi',
241 ], 281 ],
242 'sources/': [ 282 'sources/': [
243 # Exclude all .[cc|h] files. 283 # Exclude all .[cc|h] files.
244 # This is only here for reference. Excludes happen after 284 # This is only here for reference. Excludes happen after
245 # variable expansion, so the script has to do its own 285 # variable expansion, so the script has to do its own
246 # exclude processing of the sources being passed. 286 # exclude processing of the sources being passed.
247 ['exclude', '\\.cc|h$'], 287 ['exclude', '\\.cc|h$'],
248 ], 288 ],
249 'actions': [ 289 'actions': [
250 { 290 {
291 'action_name': 'generate_math_dart',
292 'inputs': [
293 '../tools/concat_library.py',
294 '<@(_sources)',
295 ],
296 'outputs': [
297 '<(math_dart)',
298 ],
299 'action': [
300 'python',
301 '<@(_inputs)',
302 '--output', '<(math_dart)',
303 ],
304 'message': 'Generating ''<(math_dart)'' file.',
305 },
306 {
251 'action_name': 'generate_math_cc', 307 'action_name': 'generate_math_cc',
252 'inputs': [ 308 'inputs': [
253 '../tools/create_string_literal.py', 309 '../tools/create_string_literal.py',
254 '<(builtin_in_cc_file)', 310 '<(builtin_in_cc_file)',
255 '<@(_sources)', 311 '<(math_dart)',
256 ], 312 ],
257 'outputs': [ 313 'outputs': [
258 '<(math_cc_file)', 314 '<(math_cc_file)',
259 ], 315 ],
260 'action': [ 316 'action': [
261 'python', 317 'python',
262 'tools/create_string_literal.py', 318 'tools/create_string_literal.py',
263 '--output', '<(math_cc_file)', 319 '--output', '<(math_cc_file)',
264 '--input_cc', '<(builtin_in_cc_file)', 320 '--input_cc', '<(builtin_in_cc_file)',
265 '--include', 'vm/bootstrap.h', 321 '--include', 'vm/bootstrap.h',
266 '--var_name', 'dart::Bootstrap::math_source_', 322 '--var_name', 'dart::Bootstrap::math_source_',
267 '<@(_sources)', 323 '<(math_dart)',
268 ], 324 ],
269 'message': 'Generating ''<(math_cc_file)'' file.' 325 'message': 'Generating ''<(math_cc_file)'' file.'
270 }, 326 },
271 ] 327 ]
272 }, 328 },
273 { 329 {
274 'target_name': 'generate_math_patch_cc_file', 330 'target_name': 'generate_math_patch_cc_file',
275 'type': 'none', 331 'type': 'none',
276 'includes': [ 332 'includes': [
277 # Load the shared math library sources. 333 # Load the shared math library sources.
(...skipping 26 matching lines...) Expand all
304 '--var_name', 'dart::Bootstrap::math_patch_', 360 '--var_name', 'dart::Bootstrap::math_patch_',
305 '<@(_sources)', 361 '<@(_sources)',
306 ], 362 ],
307 'message': 'Generating ''<(math_patch_cc_file)'' file.' 363 'message': 'Generating ''<(math_patch_cc_file)'' file.'
308 }, 364 },
309 ] 365 ]
310 }, 366 },
311 { 367 {
312 'target_name': 'generate_mirrors_cc_file', 368 'target_name': 'generate_mirrors_cc_file',
313 'type': 'none', 369 'type': 'none',
370 'variables': {
371 'mirrors_dart': '<(SHARED_INTERMEDIATE_DIR)/mirrors_gen.dart',
372 },
314 'includes': [ 373 'includes': [
315 # Load the shared core library sources. 374 # Load the shared core library sources.
316 '../../sdk/lib/mirrors/mirrors_sources.gypi', 375 '../../sdk/lib/mirrors/mirrors_sources.gypi',
317 ], 376 ],
318 'sources/': [ 377 'sources/': [
319 # Exclude all .[cc|h] files. 378 # Exclude all .[cc|h] files.
320 # This is only here for reference. Excludes happen after 379 # This is only here for reference. Excludes happen after
321 # variable expansion, so the script has to do its own 380 # variable expansion, so the script has to do its own
322 # exclude processing of the sources being passed. 381 # exclude processing of the sources being passed.
323 ['exclude', '\\.cc|h$'], 382 ['exclude', '\\.cc|h$'],
324 ], 383 ],
325 'actions': [ 384 'actions': [
326 { 385 {
386 'action_name': 'generate_mirrors_dart',
387 'inputs': [
388 '../tools/concat_library.py',
389 '<@(_sources)',
390 ],
391 'outputs': [
392 '<(mirrors_dart)',
393 ],
394 'action': [
395 'python',
396 '<@(_inputs)',
397 '--output', '<(mirrors_dart)',
398 ],
399 'message': 'Generating ''<(mirrors_dart)'' file.',
400 },
401 {
327 'action_name': 'generate_mirrors_cc', 402 'action_name': 'generate_mirrors_cc',
328 'inputs': [ 403 'inputs': [
329 '../tools/create_string_literal.py', 404 '../tools/create_string_literal.py',
330 '<(builtin_in_cc_file)', 405 '<(builtin_in_cc_file)',
331 '<@(_sources)', 406 '<(mirrors_dart)',
332 ], 407 ],
333 'outputs': [ 408 'outputs': [
334 '<(mirrors_cc_file)', 409 '<(mirrors_cc_file)',
335 ], 410 ],
336 'action': [ 411 'action': [
337 'python', 412 'python',
338 'tools/create_string_literal.py', 413 'tools/create_string_literal.py',
339 '--output', '<(mirrors_cc_file)', 414 '--output', '<(mirrors_cc_file)',
340 '--input_cc', '<(builtin_in_cc_file)', 415 '--input_cc', '<(builtin_in_cc_file)',
341 '--include', 'vm/bootstrap.h', 416 '--include', 'vm/bootstrap.h',
342 '--var_name', 'dart::Bootstrap::mirrors_source_', 417 '--var_name', 'dart::Bootstrap::mirrors_source_',
343 '<@(_sources)', 418 '<(mirrors_dart)',
344 ], 419 ],
345 'message': 'Generating ''<(mirrors_cc_file)'' file.' 420 'message': 'Generating ''<(mirrors_cc_file)'' file.'
346 }, 421 },
347 ] 422 ]
348 }, 423 },
349 { 424 {
350 'target_name': 'generate_mirrors_patch_cc_file', 425 'target_name': 'generate_mirrors_patch_cc_file',
351 'type': 'none', 426 'type': 'none',
352 'includes': [ 427 'includes': [
353 # Load the patch sources. 428 # Load the patch sources.
(...skipping 26 matching lines...) Expand all
380 '--var_name', 'dart::Bootstrap::mirrors_patch_', 455 '--var_name', 'dart::Bootstrap::mirrors_patch_',
381 '<@(_sources)', 456 '<@(_sources)',
382 ], 457 ],
383 'message': 'Generating ''<(mirrors_patch_cc_file)'' file.' 458 'message': 'Generating ''<(mirrors_patch_cc_file)'' file.'
384 }, 459 },
385 ] 460 ]
386 }, 461 },
387 { 462 {
388 'target_name': 'generate_isolate_cc_file', 463 'target_name': 'generate_isolate_cc_file',
389 'type': 'none', 464 'type': 'none',
465 'variables': {
466 'isolate_dart': '<(SHARED_INTERMEDIATE_DIR)/isolate_gen.dart',
467 },
390 'includes': [ 468 'includes': [
391 # Load the runtime implementation sources. 469 # Load the runtime implementation sources.
392 '../../sdk/lib/isolate/isolate_sources.gypi', 470 '../../sdk/lib/isolate/isolate_sources.gypi',
393 ], 471 ],
394 'sources/': [ 472 'sources/': [
395 # Exclude all .[cc|h] files. 473 # Exclude all .[cc|h] files.
396 # This is only here for reference. Excludes happen after 474 # This is only here for reference. Excludes happen after
397 # variable expansion, so the script has to do its own 475 # variable expansion, so the script has to do its own
398 # exclude processing of the sources being passed. 476 # exclude processing of the sources being passed.
399 ['exclude', '\\.cc|h$'], 477 ['exclude', '\\.cc|h$'],
400 ], 478 ],
401 'actions': [ 479 'actions': [
402 { 480 {
481 'action_name': 'generate_isolate_dart',
482 'inputs': [
483 '../tools/concat_library.py',
484 '<@(_sources)',
485 ],
486 'outputs': [
487 '<(isolate_dart)',
488 ],
489 'action': [
490 'python',
491 '<@(_inputs)',
492 '--output', '<(isolate_dart)',
493 ],
494 'message': 'Generating ''<(isolate_dart)'' file.',
495 },
496 {
403 'action_name': 'generate_isolate_cc', 497 'action_name': 'generate_isolate_cc',
404 'inputs': [ 498 'inputs': [
405 '../tools/create_string_literal.py', 499 '../tools/create_string_literal.py',
406 '<(builtin_in_cc_file)', 500 '<(builtin_in_cc_file)',
407 '<@(_sources)', 501 '<(isolate_dart)',
408 ], 502 ],
409 'outputs': [ 503 'outputs': [
410 '<(isolate_cc_file)', 504 '<(isolate_cc_file)',
411 ], 505 ],
412 'action': [ 506 'action': [
413 'python', 507 'python',
414 'tools/create_string_literal.py', 508 'tools/create_string_literal.py',
415 '--output', '<(isolate_cc_file)', 509 '--output', '<(isolate_cc_file)',
416 '--input_cc', '<(builtin_in_cc_file)', 510 '--input_cc', '<(builtin_in_cc_file)',
417 '--include', 'vm/bootstrap.h', 511 '--include', 'vm/bootstrap.h',
418 '--var_name', 'dart::Bootstrap::isolate_source_', 512 '--var_name', 'dart::Bootstrap::isolate_source_',
419 '<@(_sources)', 513 '<(isolate_dart)',
420 ], 514 ],
421 'message': 'Generating ''<(isolate_cc_file)'' file.' 515 'message': 'Generating ''<(isolate_cc_file)'' file.'
422 }, 516 },
423 ] 517 ]
424 }, 518 },
425 { 519 {
426 'target_name': 'generate_isolate_patch_cc_file', 520 'target_name': 'generate_isolate_patch_cc_file',
427 'type': 'none', 521 'type': 'none',
428 'includes': [ 522 'includes': [
429 # Load the runtime implementation sources. 523 # Load the runtime implementation sources.
(...skipping 26 matching lines...) Expand all
456 '--var_name', 'dart::Bootstrap::isolate_patch_', 550 '--var_name', 'dart::Bootstrap::isolate_patch_',
457 '<@(_sources)', 551 '<@(_sources)',
458 ], 552 ],
459 'message': 'Generating ''<(isolate_patch_cc_file)'' file.' 553 'message': 'Generating ''<(isolate_patch_cc_file)'' file.'
460 }, 554 },
461 ] 555 ]
462 }, 556 },
463 { 557 {
464 'target_name': 'generate_scalarlist_cc_file', 558 'target_name': 'generate_scalarlist_cc_file',
465 'type': 'none', 559 'type': 'none',
560 'variables': {
561 'scalarlist_dart': '<(SHARED_INTERMEDIATE_DIR)/scalarlist_gen.dart',
562 },
466 'includes': [ 563 'includes': [
467 # Load the shared library sources. 564 # Load the shared library sources.
468 '../../sdk/lib/scalarlist/scalarlist_sources.gypi', 565 '../../sdk/lib/scalarlist/scalarlist_sources.gypi',
469 ], 566 ],
470 'sources/': [ 567 'sources/': [
471 # Exclude all .[cc|h] files. 568 # Exclude all .[cc|h] files.
472 # This is only here for reference. Excludes happen after 569 # This is only here for reference. Excludes happen after
473 # variable expansion, so the script has to do its own 570 # variable expansion, so the script has to do its own
474 # exclude processing of the sources being passed. 571 # exclude processing of the sources being passed.
475 ['exclude', '\\.cc|h$'], 572 ['exclude', '\\.cc|h$'],
476 ], 573 ],
477 'actions': [ 574 'actions': [
478 { 575 {
576 'action_name': 'generate_scalarlist_dart',
577 'inputs': [
578 '../tools/concat_library.py',
579 '<@(_sources)',
580 ],
581 'outputs': [
582 '<(scalarlist_dart)',
583 ],
584 'action': [
585 'python',
586 '<@(_inputs)',
587 '--output', '<(scalarlist_dart)',
588 ],
589 'message': 'Generating ''<(scalarlist_dart)'' file.',
590 },
591 {
479 'action_name': 'generate_scalarlist_cc', 592 'action_name': 'generate_scalarlist_cc',
480 'inputs': [ 593 'inputs': [
481 '../tools/create_string_literal.py', 594 '../tools/create_string_literal.py',
482 '<(builtin_in_cc_file)', 595 '<(builtin_in_cc_file)',
483 '<@(_sources)', 596 '<(scalarlist_dart)',
484 ], 597 ],
485 'outputs': [ 598 'outputs': [
486 '<(scalarlist_cc_file)', 599 '<(scalarlist_cc_file)',
487 ], 600 ],
488 'action': [ 601 'action': [
489 'python', 602 'python',
490 'tools/create_string_literal.py', 603 'tools/create_string_literal.py',
491 '--output', '<(scalarlist_cc_file)', 604 '--output', '<(scalarlist_cc_file)',
492 '--input_cc', '<(builtin_in_cc_file)', 605 '--input_cc', '<(builtin_in_cc_file)',
493 '--include', 'vm/bootstrap.h', 606 '--include', 'vm/bootstrap.h',
494 '--var_name', 'dart::Bootstrap::scalarlist_source_', 607 '--var_name', 'dart::Bootstrap::scalarlist_source_',
495 '<@(_sources)', 608 '<(scalarlist_dart)',
496 ], 609 ],
497 'message': 'Generating ''<(scalarlist_cc_file)'' file.' 610 'message': 'Generating ''<(scalarlist_cc_file)'' file.'
498 }, 611 },
499 ] 612 ]
500 }, 613 },
501 { 614 {
502 'target_name': 'generate_scalarlist_patch_cc_file', 615 'target_name': 'generate_scalarlist_patch_cc_file',
503 'type': 'none', 616 'type': 'none',
504 'includes': [ 617 'includes': [
505 # Load the runtime implementation sources. 618 # Load the runtime implementation sources.
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 '--include', 'INTENTIONALLY_LEFT_BLANK', 671 '--include', 'INTENTIONALLY_LEFT_BLANK',
559 '--var_name', 'INTENTIONALLY_LEFT_BLANK_TOO', 672 '--var_name', 'INTENTIONALLY_LEFT_BLANK_TOO',
560 '<(snapshot_test_dart_file)', 673 '<(snapshot_test_dart_file)',
561 ], 674 ],
562 'message': 'Generating ''<(snapshot_test_dat_file)'' file.' 675 'message': 'Generating ''<(snapshot_test_dat_file)'' file.'
563 }, 676 },
564 ] 677 ]
565 }, 678 },
566 ] 679 ]
567 } 680 }
OLDNEW
« runtime/tools/concat_library.py ('K') | « runtime/tools/concat_library.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698