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

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

Issue 11360121: When building standalone Dart executable, put implementation of dart:io natives in a separate libra… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments Created 8 years, 1 month 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 | « no previous file | runtime/bin/builtin.h » ('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) 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 'crypto_cc_file': '<(SHARED_INTERMEDIATE_DIR)/crypto_gen.cc', 7 'crypto_cc_file': '<(SHARED_INTERMEDIATE_DIR)/crypto_gen.cc',
8 'io_cc_file': '<(SHARED_INTERMEDIATE_DIR)/io_gen.cc', 8 'io_cc_file': '<(SHARED_INTERMEDIATE_DIR)/io_gen.cc',
9 'io_patch_cc_file': '<(SHARED_INTERMEDIATE_DIR)/io_patch_gen.cc', 9 'io_patch_cc_file': '<(SHARED_INTERMEDIATE_DIR)/io_patch_gen.cc',
10 'json_cc_file': '<(SHARED_INTERMEDIATE_DIR)/json_gen.cc', 10 'json_cc_file': '<(SHARED_INTERMEDIATE_DIR)/json_gen.cc',
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 'generate_json_cc_file', 260 'generate_json_cc_file',
261 'generate_uri_cc_file', 261 'generate_uri_cc_file',
262 'generate_utf_cc_file', 262 'generate_utf_cc_file',
263 ], 263 ],
264 'include_dirs': [ 264 'include_dirs': [
265 '..', 265 '..',
266 ], 266 ],
267 'sources': [ 267 'sources': [
268 'builtin_natives.cc', 268 'builtin_natives.cc',
269 'builtin.h', 269 'builtin.h',
270 'io_natives.h',
270 ], 271 ],
271 'includes': [ 272 'includes': [
272 'builtin_impl_sources.gypi', 273 'builtin_impl_sources.gypi',
273 '../platform/platform_sources.gypi', 274 '../platform/platform_sources.gypi',
274 ], 275 ],
275 'sources/': [ 276 'sources/': [
276 ['exclude', '_test\\.(cc|h)$'], 277 ['exclude', '_test\\.(cc|h)$'],
277 ], 278 ],
278 'conditions': [ 279 'conditions': [
279 ['OS=="win"', { 280 ['OS=="win"', {
(...skipping 16 matching lines...) Expand all
296 ['OS=="linux"', { 297 ['OS=="linux"', {
297 'link_settings': { 298 'link_settings': {
298 'libraries': [ 299 'libraries': [
299 '-ldl', 300 '-ldl',
300 ], 301 ],
301 }, 302 },
302 }], 303 }],
303 ], 304 ],
304 }, 305 },
305 { 306 {
307 'target_name': 'libdart_io',
308 'type': 'static_library',
309 'include_dirs': [
310 '..',
311 ],
312 'sources': [
313 'io_natives.h',
314 'io_natives.cc',
315 ],
316 'includes': [
317 'io_impl_sources.gypi',
318 ],
319 'conditions': [
320 ['OS=="win"', {
321 # TODO(antonm): fix the implementation.
322 # Current implementation accepts char* strings
323 # and therefore fails to compile once _UNICODE is
324 # enabled. That should be addressed using -A
325 # versions of functions and adding necessary conversions.
326 'configurations': {
327 'Common_Base': {
328 'msvs_configuration_attributes': {
329 'CharacterSet': '0',
330 },
331 },
332 },
333 }],
334 ],
335 },
336 {
306 'target_name': 'libdart_withcore', 337 'target_name': 'libdart_withcore',
307 'type': 'static_library', 338 'type': 'static_library',
308 'dependencies': [ 339 'dependencies': [
309 'libdart_lib_withcore', 340 'libdart_lib_withcore',
310 'libdart_vm', 341 'libdart_vm',
311 'libjscre', 342 'libjscre',
312 'libdouble_conversion', 343 'libdouble_conversion',
313 'generate_version_cc_file', 344 'generate_version_cc_file',
314 ], 345 ],
315 'include_dirs': [ 346 'include_dirs': [
(...skipping 16 matching lines...) Expand all
332 'type': 'executable', 363 'type': 'executable',
333 'dependencies': [ 364 'dependencies': [
334 'libdart_withcore', 365 'libdart_withcore',
335 'libdart_builtin', 366 'libdart_builtin',
336 ], 367 ],
337 'include_dirs': [ 368 'include_dirs': [
338 '..', 369 '..',
339 ], 370 ],
340 'sources': [ 371 'sources': [
341 'gen_snapshot.cc', 372 'gen_snapshot.cc',
342 'builtin.cc', 373 # Only looks up native functions in libdart_builtin, not libdart_io.
374 'builtin_gen_snapshot.cc',
343 # Include generated source files. 375 # Include generated source files.
344 '<(builtin_cc_file)', 376 '<(builtin_cc_file)',
345 '<(crypto_cc_file)', 377 '<(crypto_cc_file)',
346 '<(io_cc_file)', 378 '<(io_cc_file)',
347 '<(io_patch_cc_file)', 379 '<(io_patch_cc_file)',
348 '<(json_cc_file)', 380 '<(json_cc_file)',
349 '<(uri_cc_file)', 381 '<(uri_cc_file)',
350 '<(utf_cc_file)', 382 '<(utf_cc_file)',
351 ], 383 ],
352 'conditions': [ 384 'conditions': [
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 }, 446 },
415 ] 447 ]
416 }, 448 },
417 { 449 {
418 # dart binary with a snapshot of corelibs built in. 450 # dart binary with a snapshot of corelibs built in.
419 'target_name': 'dart', 451 'target_name': 'dart',
420 'type': 'executable', 452 'type': 'executable',
421 'dependencies': [ 453 'dependencies': [
422 'libdart_export', 454 'libdart_export',
423 'libdart_builtin', 455 'libdart_builtin',
456 'libdart_io',
424 'generate_snapshot_file', 457 'generate_snapshot_file',
425 ], 458 ],
426 'include_dirs': [ 459 'include_dirs': [
427 '..', 460 '..',
428 ], 461 ],
429 'sources': [ 462 'sources': [
430 'main.cc', 463 'main.cc',
431 'builtin_nolib.cc', 464 'builtin_nolib.cc',
432 '<(snapshot_cc_file)', 465 '<(snapshot_cc_file)',
433 ], 466 ],
(...skipping 12 matching lines...) Expand all
446 }], 479 }],
447 ], 480 ],
448 }, 481 },
449 { 482 {
450 # dart binary without any snapshot built in. 483 # dart binary without any snapshot built in.
451 'target_name': 'dart_no_snapshot', 484 'target_name': 'dart_no_snapshot',
452 'type': 'executable', 485 'type': 'executable',
453 'dependencies': [ 486 'dependencies': [
454 'libdart_withcore', 487 'libdart_withcore',
455 'libdart_builtin', 488 'libdart_builtin',
489 'libdart_io',
456 ], 490 ],
457 'include_dirs': [ 491 'include_dirs': [
458 '..', 492 '..',
459 ], 493 ],
460 'sources': [ 494 'sources': [
461 'main.cc', 495 'main.cc',
462 'builtin.cc', 496 'builtin.cc',
463 # Include generated source files. 497 # Include generated source files.
464 '<(builtin_cc_file)', 498 '<(builtin_cc_file)',
465 '<(crypto_cc_file)', 499 '<(crypto_cc_file)',
(...skipping 24 matching lines...) Expand all
490 'sources': [ 524 'sources': [
491 'process_test.cc', 525 'process_test.cc',
492 ] 526 ]
493 }, 527 },
494 { 528 {
495 'target_name': 'run_vm_tests', 529 'target_name': 'run_vm_tests',
496 'type': 'executable', 530 'type': 'executable',
497 'dependencies': [ 531 'dependencies': [
498 'libdart_withcore', 532 'libdart_withcore',
499 'libdart_builtin', 533 'libdart_builtin',
534 'libdart_io',
500 'generate_snapshot_test_dat_file', 535 'generate_snapshot_test_dat_file',
501 ], 536 ],
502 'include_dirs': [ 537 'include_dirs': [
503 '..', 538 '..',
504 '<(SHARED_INTERMEDIATE_DIR)', 539 '<(SHARED_INTERMEDIATE_DIR)',
505 ], 540 ],
506 'sources': [ 541 'sources': [
507 'run_vm_tests.cc', 542 'run_vm_tests.cc',
508 'builtin.cc', 543 'builtin.cc',
509 # Include generated source files. 544 # Include generated source files.
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 ['OS=="mac"', { 603 ['OS=="mac"', {
569 'xcode_settings': { 604 'xcode_settings': {
570 'OTHER_LDFLAGS': [ '-undefined', 'dynamic_lookup' ], 605 'OTHER_LDFLAGS': [ '-undefined', 'dynamic_lookup' ],
571 }, 606 },
572 }], 607 }],
573 ], 608 ],
574 }, 609 },
575 ], 610 ],
576 } 611 }
577 612
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/builtin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698