Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 Loading... | |
| 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 'dependencies': [ | |
|
Mads Ager (google)
2012/11/08 09:32:26
Can you leave this out since it is empty?
| |
| 310 ], | |
| 311 'include_dirs': [ | |
| 312 '..', | |
| 313 ], | |
| 314 'sources': [ | |
| 315 'io_natives.h', | |
| 316 'io_natives.cc', | |
| 317 ], | |
| 318 'includes': [ | |
| 319 'io_impl_sources.gypi', | |
| 320 ], | |
| 321 'conditions': [ | |
| 322 ['OS=="win"', { | |
| 323 # TODO(antonm): fix the implementation. | |
| 324 # Current implementation accepts char* strings | |
| 325 # and therefore fails to compile once _UNICODE is | |
| 326 # enabled. That should be addressed using -A | |
| 327 # versions of functions and adding necessary conversions. | |
| 328 'configurations': { | |
| 329 'Common_Base': { | |
| 330 'msvs_configuration_attributes': { | |
| 331 'CharacterSet': '0', | |
| 332 }, | |
| 333 }, | |
| 334 }, | |
| 335 }], | |
| 336 ], | |
| 337 }, | |
| 338 { | |
| 306 'target_name': 'libdart_withcore', | 339 'target_name': 'libdart_withcore', |
| 307 'type': 'static_library', | 340 'type': 'static_library', |
| 308 'dependencies': [ | 341 'dependencies': [ |
| 309 'libdart_lib_withcore', | 342 'libdart_lib_withcore', |
| 310 'libdart_vm', | 343 'libdart_vm', |
| 311 'libjscre', | 344 'libjscre', |
| 312 'libdouble_conversion', | 345 'libdouble_conversion', |
| 313 'generate_version_cc_file', | 346 'generate_version_cc_file', |
| 314 ], | 347 ], |
| 315 'include_dirs': [ | 348 'include_dirs': [ |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 332 'type': 'executable', | 365 'type': 'executable', |
| 333 'dependencies': [ | 366 'dependencies': [ |
| 334 'libdart_withcore', | 367 'libdart_withcore', |
| 335 'libdart_builtin', | 368 'libdart_builtin', |
| 336 ], | 369 ], |
| 337 'include_dirs': [ | 370 'include_dirs': [ |
| 338 '..', | 371 '..', |
| 339 ], | 372 ], |
| 340 'sources': [ | 373 'sources': [ |
| 341 'gen_snapshot.cc', | 374 'gen_snapshot.cc', |
| 375 # Only looks up native functions in libdart_builtin, not libdart_io. | |
| 342 'builtin.cc', | 376 'builtin.cc', |
| 343 # Include generated source files. | 377 # Include generated source files. |
| 344 '<(builtin_cc_file)', | 378 '<(builtin_cc_file)', |
| 345 '<(crypto_cc_file)', | 379 '<(crypto_cc_file)', |
| 346 '<(io_cc_file)', | 380 '<(io_cc_file)', |
| 347 '<(io_patch_cc_file)', | 381 '<(io_patch_cc_file)', |
| 348 '<(json_cc_file)', | 382 '<(json_cc_file)', |
| 349 '<(uri_cc_file)', | 383 '<(uri_cc_file)', |
| 350 '<(utf_cc_file)', | 384 '<(utf_cc_file)', |
| 351 ], | 385 ], |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 415 ] | 449 ] |
| 416 }, | 450 }, |
| 417 { | 451 { |
| 418 # dart binary with a snapshot of corelibs built in. | 452 # dart binary with a snapshot of corelibs built in. |
| 419 'target_name': 'dart', | 453 'target_name': 'dart', |
| 420 'type': 'executable', | 454 'type': 'executable', |
| 421 'dependencies': [ | 455 'dependencies': [ |
| 422 'libdart_export', | 456 'libdart_export', |
| 423 'libdart_builtin', | 457 'libdart_builtin', |
| 424 'generate_snapshot_file', | 458 'generate_snapshot_file', |
| 459 'libdart_io', | |
|
Mads Ager (google)
2012/11/08 09:32:26
Move this up to after libdart_builtin and leave ge
| |
| 425 ], | 460 ], |
| 426 'include_dirs': [ | 461 'include_dirs': [ |
| 427 '..', | 462 '..', |
| 428 ], | 463 ], |
| 429 'sources': [ | 464 'sources': [ |
| 430 'main.cc', | 465 'main.cc', |
| 431 'builtin_nolib.cc', | 466 'builtin_nolib.cc', |
| 432 '<(snapshot_cc_file)', | 467 '<(snapshot_cc_file)', |
| 433 ], | 468 ], |
| 434 'conditions': [ | 469 'conditions': [ |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 446 }], | 481 }], |
| 447 ], | 482 ], |
| 448 }, | 483 }, |
| 449 { | 484 { |
| 450 # dart binary without any snapshot built in. | 485 # dart binary without any snapshot built in. |
| 451 'target_name': 'dart_no_snapshot', | 486 'target_name': 'dart_no_snapshot', |
| 452 'type': 'executable', | 487 'type': 'executable', |
| 453 'dependencies': [ | 488 'dependencies': [ |
| 454 'libdart_withcore', | 489 'libdart_withcore', |
| 455 'libdart_builtin', | 490 'libdart_builtin', |
| 491 'libdart_io', | |
| 456 ], | 492 ], |
| 457 'include_dirs': [ | 493 'include_dirs': [ |
| 458 '..', | 494 '..', |
| 459 ], | 495 ], |
| 460 'sources': [ | 496 'sources': [ |
| 461 'main.cc', | 497 'main.cc', |
| 462 'builtin.cc', | 498 'builtin_fulllib.cc', |
| 463 # Include generated source files. | 499 # Include generated source files. |
| 464 '<(builtin_cc_file)', | 500 '<(builtin_cc_file)', |
| 465 '<(crypto_cc_file)', | 501 '<(crypto_cc_file)', |
| 466 '<(io_cc_file)', | 502 '<(io_cc_file)', |
| 467 '<(io_patch_cc_file)', | 503 '<(io_patch_cc_file)', |
| 468 '<(json_cc_file)', | 504 '<(json_cc_file)', |
| 469 '<(uri_cc_file)', | 505 '<(uri_cc_file)', |
| 470 '<(utf_cc_file)', | 506 '<(utf_cc_file)', |
| 471 'snapshot_empty.cc', | 507 'snapshot_empty.cc', |
| 472 ], | 508 ], |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 490 'sources': [ | 526 'sources': [ |
| 491 'process_test.cc', | 527 'process_test.cc', |
| 492 ] | 528 ] |
| 493 }, | 529 }, |
| 494 { | 530 { |
| 495 'target_name': 'run_vm_tests', | 531 'target_name': 'run_vm_tests', |
| 496 'type': 'executable', | 532 'type': 'executable', |
| 497 'dependencies': [ | 533 'dependencies': [ |
| 498 'libdart_withcore', | 534 'libdart_withcore', |
| 499 'libdart_builtin', | 535 'libdart_builtin', |
| 536 'libdart_io', | |
| 500 'generate_snapshot_test_dat_file', | 537 'generate_snapshot_test_dat_file', |
| 501 ], | 538 ], |
| 502 'include_dirs': [ | 539 'include_dirs': [ |
| 503 '..', | 540 '..', |
| 504 '<(SHARED_INTERMEDIATE_DIR)', | 541 '<(SHARED_INTERMEDIATE_DIR)', |
| 505 ], | 542 ], |
| 506 'sources': [ | 543 'sources': [ |
| 507 'run_vm_tests.cc', | 544 'run_vm_tests.cc', |
| 508 'builtin.cc', | 545 'builtin_fulllib.cc', |
|
Mads Ager (google)
2012/11/08 09:32:26
Would it be better to do the naming the other way
| |
| 509 # Include generated source files. | 546 # Include generated source files. |
| 510 '<(builtin_cc_file)', | 547 '<(builtin_cc_file)', |
| 511 '<(crypto_cc_file)', | 548 '<(crypto_cc_file)', |
| 512 '<(io_cc_file)', | 549 '<(io_cc_file)', |
| 513 '<(io_patch_cc_file)', | 550 '<(io_patch_cc_file)', |
| 514 '<(json_cc_file)', | 551 '<(json_cc_file)', |
| 515 '<(uri_cc_file)', | 552 '<(uri_cc_file)', |
| 516 '<(utf_cc_file)', | 553 '<(utf_cc_file)', |
| 517 ], | 554 ], |
| 518 'includes': [ | 555 'includes': [ |
| 519 'builtin_impl_sources.gypi', | 556 'builtin_impl_sources.gypi', |
| 520 '../platform/platform_sources.gypi', | 557 '../platform/platform_sources.gypi', |
| 521 '../vm/vm_sources.gypi', | 558 '../vm/vm_sources.gypi', |
| 522 ], | 559 ], |
| 523 'defines': [ | 560 'defines': [ |
| 524 'TESTING', | 561 'TESTING', |
| 525 ], | 562 ], |
| 526 # Only include _test.[cc|h] files. | 563 # Only include _test.[cc|h] files. |
| 527 'sources/': [ | 564 'sources/': [ |
| 528 ['exclude', '\\.(cc|h)$'], | 565 ['exclude', '\\.(cc|h)$'], |
| 529 ['include', 'run_vm_tests.cc'], | 566 ['include', 'run_vm_tests.cc'], |
| 530 ['include', 'builtin.cc'], | 567 ['include', 'builtin_fulllib.cc'], |
| 531 ['include', '_gen\\.cc$'], | 568 ['include', '_gen\\.cc$'], |
| 532 ['include', '_test\\.(cc|h)$'], | 569 ['include', '_test\\.(cc|h)$'], |
| 533 ], | 570 ], |
| 534 'conditions': [ | 571 'conditions': [ |
| 535 ['OS=="win"', { | 572 ['OS=="win"', { |
| 536 'link_settings': { | 573 'link_settings': { |
| 537 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], | 574 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], |
| 538 }, | 575 }, |
| 539 }], | 576 }], |
| 540 ], | 577 ], |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 568 ['OS=="mac"', { | 605 ['OS=="mac"', { |
| 569 'xcode_settings': { | 606 'xcode_settings': { |
| 570 'OTHER_LDFLAGS': [ '-undefined', 'dynamic_lookup' ], | 607 'OTHER_LDFLAGS': [ '-undefined', 'dynamic_lookup' ], |
| 571 }, | 608 }, |
| 572 }], | 609 }], |
| 573 ], | 610 ], |
| 574 }, | 611 }, |
| 575 ], | 612 ], |
| 576 } | 613 } |
| 577 | 614 |
| OLD | NEW |