| 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 'gen_source_dir': '<(SHARED_INTERMEDIATE_DIR)', | 7 'gen_source_dir': '<(SHARED_INTERMEDIATE_DIR)', |
| 8 | 8 |
| 9 'io_cc_file': '<(gen_source_dir)/io_gen.cc', | 9 'io_cc_file': '<(gen_source_dir)/io_gen.cc', |
| 10 'io_patch_cc_file': '<(gen_source_dir)/io_patch_gen.cc', | 10 'io_patch_cc_file': '<(gen_source_dir)/io_patch_gen.cc', |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 'log_win.cc', | 138 'log_win.cc', |
| 139 ], | 139 ], |
| 140 'includes': [ | 140 'includes': [ |
| 141 'builtin_impl_sources.gypi', | 141 'builtin_impl_sources.gypi', |
| 142 '../platform/platform_sources.gypi', | 142 '../platform/platform_sources.gypi', |
| 143 ], | 143 ], |
| 144 'sources/': [ | 144 'sources/': [ |
| 145 ['exclude', '_test\\.(cc|h)$'], | 145 ['exclude', '_test\\.(cc|h)$'], |
| 146 ], | 146 ], |
| 147 'conditions': [ | 147 'conditions': [ |
| 148 ['dart_io_support==0', { |
| 149 'defines': [ |
| 150 'DART_IO_DISABLED', |
| 151 ], |
| 152 }], |
| 153 ['OS=="win"', { |
| 154 'sources/' : [ |
| 155 ['exclude', 'fdutils.h'], |
| 156 ], |
| 157 # TODO(antonm): fix the implementation. |
| 158 # Current implementation accepts char* strings |
| 159 # and therefore fails to compile once _UNICODE is |
| 160 # enabled. That should be addressed using -A |
| 161 # versions of functions and adding necessary conversions. |
| 162 'configurations': { |
| 163 'Common_Base': { |
| 164 'msvs_configuration_attributes': { |
| 165 'CharacterSet': '0', |
| 166 }, |
| 167 }, |
| 168 }, |
| 169 }], |
| 170 ['OS=="linux"', { |
| 171 'link_settings': { |
| 172 'libraries': [ |
| 173 '-ldl', |
| 174 ], |
| 175 }, |
| 176 }], |
| 177 ['OS=="android"', { |
| 178 'link_settings': { |
| 179 'libraries': [ |
| 180 '-ldl', |
| 181 ], |
| 182 }, |
| 183 }], |
| 184 ], |
| 185 }, |
| 186 # This is the same as libdart_builtin, but the io support libraries are |
| 187 # never disabled, even when dart_io_support==0. This is so that it can |
| 188 # still be usefully linked into gen_snapshot. |
| 189 { |
| 190 'target_name': 'libdart_builtin_no_disable', |
| 191 'type': 'static_library', |
| 192 'toolsets':['host'], |
| 193 'dependencies': [ |
| 194 'generate_builtin_cc_file#host', |
| 195 'generate_io_cc_file#host', |
| 196 'generate_io_patch_cc_file#host', |
| 197 ], |
| 198 'include_dirs': [ |
| 199 '..', |
| 200 ], |
| 201 'sources': [ |
| 202 'log_android.cc', |
| 203 'log_linux.cc', |
| 204 'log_macos.cc', |
| 205 'log_win.cc', |
| 206 ], |
| 207 'includes': [ |
| 208 'builtin_impl_sources.gypi', |
| 209 '../platform/platform_sources.gypi', |
| 210 ], |
| 211 'sources/': [ |
| 212 ['exclude', '_test\\.(cc|h)$'], |
| 213 ], |
| 214 'conditions': [ |
| 148 ['OS=="win"', { | 215 ['OS=="win"', { |
| 149 'sources/' : [ | 216 'sources/' : [ |
| 150 ['exclude', 'fdutils.h'], | 217 ['exclude', 'fdutils.h'], |
| 151 ], | 218 ], |
| 152 # TODO(antonm): fix the implementation. | 219 # TODO(antonm): fix the implementation. |
| 153 # Current implementation accepts char* strings | 220 # Current implementation accepts char* strings |
| 154 # and therefore fails to compile once _UNICODE is | 221 # and therefore fails to compile once _UNICODE is |
| 155 # enabled. That should be addressed using -A | 222 # enabled. That should be addressed using -A |
| 156 # versions of functions and adding necessary conversions. | 223 # versions of functions and adding necessary conversions. |
| 157 'configurations': { | 224 'configurations': { |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 'vmservice_impl.h', | 287 'vmservice_impl.h', |
| 221 '<(resources_cc_file)', | 288 '<(resources_cc_file)', |
| 222 '<(observatory_assets_cc_file)', | 289 '<(observatory_assets_cc_file)', |
| 223 ], | 290 ], |
| 224 'sources/': [ | 291 'sources/': [ |
| 225 ['exclude', '_test\\.(cc|h)$'], | 292 ['exclude', '_test\\.(cc|h)$'], |
| 226 ], | 293 ], |
| 227 'conditions': [ | 294 'conditions': [ |
| 228 ['OS != "mac" and dart_io_support==1 and dart_io_secure_socket==1', { | 295 ['OS != "mac" and dart_io_support==1 and dart_io_secure_socket==1', { |
| 229 'dependencies': [ | 296 'dependencies': [ |
| 230 '../third_party/boringssl/boringssl_dart.gyp:boringssl', | 297 '../third_party/boringssl/boringssl_dart.gyp:boringssl', |
| 231 ], | 298 ], |
| 232 }], | 299 }], |
| 233 ['dart_io_secure_socket==0 or dart_io_support==0', { | 300 ['dart_io_secure_socket==0 or dart_io_support==0', { |
| 234 'defines': [ | 301 'defines': [ |
| 235 'DART_IO_SECURE_SOCKET_DISABLED' | 302 'DART_IO_SECURE_SOCKET_DISABLED' |
| 236 ], | 303 ], |
| 237 }], | 304 }], |
| 238 ['OS=="win"', { | 305 ['OS=="win"', { |
| 239 'sources/' : [ | 306 'sources/' : [ |
| 240 ['exclude', 'fdutils.h'], | 307 ['exclude', 'fdutils.h'], |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 ], | 360 ], |
| 294 'sources': [ | 361 'sources': [ |
| 295 'io_natives.h', | 362 'io_natives.h', |
| 296 'io_natives.cc', | 363 'io_natives.cc', |
| 297 ], | 364 ], |
| 298 'conditions': [ | 365 'conditions': [ |
| 299 ['dart_io_support==1', { | 366 ['dart_io_support==1', { |
| 300 'dependencies': [ | 367 'dependencies': [ |
| 301 'bin/zlib.gyp:zlib_dart', | 368 'bin/zlib.gyp:zlib_dart', |
| 302 ], | 369 ], |
| 370 }, { # dart_io_support == 0 |
| 371 'defines': [ |
| 372 'DART_IO_DISABLED', |
| 373 'DART_IO_SECURE_SOCKET_DISABLED', |
| 374 ], |
| 375 }], |
| 376 ['dart_io_secure_socket==0', { |
| 377 'defines': [ |
| 378 'DART_IO_SECURE_SOCKET_DISABLED' |
| 379 ], |
| 303 }], | 380 }], |
| 304 ['OS != "mac" and dart_io_support==1 and dart_io_secure_socket==1', { | 381 ['OS != "mac" and dart_io_support==1 and dart_io_secure_socket==1', { |
| 305 'dependencies': [ | 382 'dependencies': [ |
| 306 '../third_party/boringssl/boringssl_dart.gyp:boringssl', | 383 '../third_party/boringssl/boringssl_dart.gyp:boringssl', |
| 307 ], | 384 ], |
| 308 }], | 385 }], |
| 309 ['dart_io_secure_socket==0 or dart_io_support==0', { | 386 ['OS=="win"', { |
| 387 'link_settings': { |
| 388 'libraries': [ '-liphlpapi.lib' ], |
| 389 }, |
| 390 # TODO(antonm): fix the implementation. |
| 391 # Current implementation accepts char* strings |
| 392 # and therefore fails to compile once _UNICODE is |
| 393 # enabled. That should be addressed using -A |
| 394 # versions of functions and adding necessary conversions. |
| 395 'configurations': { |
| 396 'Common_Base': { |
| 397 'msvs_configuration_attributes': { |
| 398 'CharacterSet': '0', |
| 399 }, |
| 400 }, |
| 401 }, |
| 402 }], |
| 403 ['OS=="mac"', { |
| 404 'link_settings': { |
| 405 'libraries': [ |
| 406 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', |
| 407 '$(SDKROOT)/System/Library/Frameworks/CoreServices.framework', |
| 408 '$(SDKROOT)/System/Library/Frameworks/Security.framework', |
| 409 ], |
| 410 }, |
| 411 }], |
| 412 ], |
| 413 }, |
| 414 # This is the same as libdart_io, but the io support libraries are |
| 415 # never disabled, even when dart_io_support==0. This is so that it can |
| 416 # still be usefully linked into gen_snapshot. |
| 417 { |
| 418 'target_name': 'libdart_io_no_disable', |
| 419 'type': 'static_library', |
| 420 'toolsets': ['host'], |
| 421 'include_dirs': [ |
| 422 '..', |
| 423 '../../third_party', |
| 424 ], |
| 425 'includes': [ |
| 426 'io_impl_sources.gypi', |
| 427 ], |
| 428 'sources': [ |
| 429 'io_natives.h', |
| 430 'io_natives.cc', |
| 431 ], |
| 432 'dependencies': [ |
| 433 'bin/zlib.gyp:zlib_dart', |
| 434 ], |
| 435 'conditions': [ |
| 436 ['dart_io_support==0 or dart_io_secure_socket==0', { |
| 310 'defines': [ | 437 'defines': [ |
| 311 'DART_IO_SECURE_SOCKET_DISABLED' | 438 'DART_IO_SECURE_SOCKET_DISABLED', |
| 439 ], |
| 440 }], |
| 441 ['OS != "mac" and dart_io_support==1 and dart_io_secure_socket==1', { |
| 442 'dependencies': [ |
| 443 '../third_party/boringssl/boringssl_dart.gyp:boringssl', |
| 312 ], | 444 ], |
| 313 }], | 445 }], |
| 314 ['OS=="win"', { | 446 ['OS=="win"', { |
| 315 'link_settings': { | 447 'link_settings': { |
| 316 'libraries': [ '-liphlpapi.lib' ], | 448 'libraries': [ '-liphlpapi.lib' ], |
| 317 }, | 449 }, |
| 318 # TODO(antonm): fix the implementation. | 450 # TODO(antonm): fix the implementation. |
| 319 # Current implementation accepts char* strings | 451 # Current implementation accepts char* strings |
| 320 # and therefore fails to compile once _UNICODE is | 452 # and therefore fails to compile once _UNICODE is |
| 321 # enabled. That should be addressed using -A | 453 # enabled. That should be addressed using -A |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 ], | 502 ], |
| 371 }, | 503 }, |
| 372 { | 504 { |
| 373 # Completely statically linked binary for generating snapshots. | 505 # Completely statically linked binary for generating snapshots. |
| 374 'target_name': 'gen_snapshot', | 506 'target_name': 'gen_snapshot', |
| 375 'type': 'executable', | 507 'type': 'executable', |
| 376 'toolsets':['host'], | 508 'toolsets':['host'], |
| 377 'dependencies': [ | 509 'dependencies': [ |
| 378 'generate_resources_cc_file#host', | 510 'generate_resources_cc_file#host', |
| 379 'generate_observatory_assets_cc_file#host', | 511 'generate_observatory_assets_cc_file#host', |
| 380 'libdart_nosnapshot', | 512 'libdart_nosnapshot#host', |
| 381 'libdart_builtin', | 513 # If io is disabled for the VM, we still need it for gen snapshot, so |
| 382 'libdart_io', | 514 # use libdart_builtin and libdart_io that still have io enabled. |
| 515 'libdart_builtin_no_disable#host', |
| 516 'libdart_io_no_disable#host', |
| 383 ], | 517 ], |
| 384 'include_dirs': [ | 518 'include_dirs': [ |
| 385 '..', | 519 '..', |
| 386 ], | 520 ], |
| 387 'sources': [ | 521 'sources': [ |
| 388 'address_sanitizer.cc', | 522 'address_sanitizer.cc', |
| 389 'gen_snapshot.cc', | 523 'gen_snapshot.cc', |
| 390 # Very limited native resolver provided. | 524 # Very limited native resolver provided. |
| 391 'builtin_gen_snapshot.cc', | 525 'builtin_gen_snapshot.cc', |
| 392 'builtin_common.cc', | 526 'builtin_common.cc', |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 540 ], | 674 ], |
| 541 'message': 'Generating ''<(resources_cc_file)'' file.' | 675 'message': 'Generating ''<(resources_cc_file)'' file.' |
| 542 }, | 676 }, |
| 543 ] | 677 ] |
| 544 }, | 678 }, |
| 545 { | 679 { |
| 546 # dart_product binary. | 680 # dart_product binary. |
| 547 'target_name': 'dart_product', | 681 'target_name': 'dart_product', |
| 548 'type': 'executable', | 682 'type': 'executable', |
| 549 'dependencies': [ | 683 'dependencies': [ |
| 684 'bin/zlib.gyp:zlib_dart', |
| 550 'libdart', | 685 'libdart', |
| 551 'libdart_builtin', | 686 'libdart_builtin', |
| 552 'libdart_io', | 687 'libdart_io', |
| 553 ], | 688 ], |
| 554 'include_dirs': [ | 689 'include_dirs': [ |
| 555 '..', | 690 '..', |
| 556 '../../third_party/', # Zlib | 691 '../../third_party/', # Zlib |
| 557 ], | 692 ], |
| 558 'defines': [ | 693 'defines': [ |
| 559 'DART_PRODUCT_BINARY', | 694 'DART_PRODUCT_BINARY', |
| 560 ], | 695 ], |
| 561 'sources': [ | 696 'sources': [ |
| 562 'main.cc', | 697 'main.cc', |
| 698 'builtin.h', |
| 563 'builtin_common.cc', | 699 'builtin_common.cc', |
| 564 'builtin_natives.cc', | 700 'builtin_natives.cc', |
| 565 'builtin_nolib.cc', | 701 'builtin_nolib.cc', |
| 566 'builtin.h', | |
| 567 'io_natives.h', | 702 'io_natives.h', |
| 703 'observatory_assets_empty.cc', |
| 568 'snapshot_empty.cc', | 704 'snapshot_empty.cc', |
| 569 'observatory_assets_empty.cc', | |
| 570 ], | 705 ], |
| 571 'conditions': [ | 706 'conditions': [ |
| 572 ['OS=="win"', { | 707 ['OS=="win"', { |
| 573 'link_settings': { | 708 'link_settings': { |
| 574 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], | 709 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], |
| 575 }, | 710 }, |
| 576 }], | 711 }], |
| 577 ], | 712 ], |
| 578 }, | 713 }, |
| 579 { | 714 { |
| 580 # dart binary with a snapshot of corelibs built in. | 715 # dart binary with a snapshot of corelibs built in. |
| 581 'target_name': 'dart', | 716 'target_name': 'dart', |
| 582 'type': 'executable', | 717 'type': 'executable', |
| 583 'dependencies': [ | 718 'dependencies': [ |
| 719 'bin/zlib.gyp:zlib_dart', |
| 720 'build_observatory#host', |
| 721 'generate_observatory_assets_cc_file#host', |
| 722 'generate_resources_cc_file#host', |
| 723 'generate_snapshot_file#host', |
| 584 'libdart', | 724 'libdart', |
| 585 'libdart_builtin', | 725 'libdart_builtin', |
| 586 'libdart_io', | 726 'libdart_io', |
| 587 'build_observatory#host', | |
| 588 'generate_snapshot_file#host', | |
| 589 'generate_resources_cc_file#host', | |
| 590 'generate_observatory_assets_cc_file#host', | |
| 591 ], | 727 ], |
| 592 'include_dirs': [ | 728 'include_dirs': [ |
| 593 '..', | 729 '..', |
| 594 '../../third_party/', # Zlib | 730 '../../third_party/', # Zlib |
| 595 ], | 731 ], |
| 596 'sources': [ | 732 'sources': [ |
| 597 'main.cc', | 733 'main.cc', |
| 734 'builtin.h', |
| 598 'builtin_common.cc', | 735 'builtin_common.cc', |
| 599 'builtin_natives.cc', | 736 'builtin_natives.cc', |
| 600 'builtin_nolib.cc', | 737 'builtin_nolib.cc', |
| 601 'builtin.h', | |
| 602 'io_natives.h', | 738 'io_natives.h', |
| 603 'vmservice_impl.cc', | 739 'vmservice_impl.cc', |
| 604 'vmservice_impl.h', | 740 'vmservice_impl.h', |
| 741 '<(observatory_assets_cc_file)', |
| 742 '<(resources_cc_file)', |
| 605 '<(snapshot_cc_file)', | 743 '<(snapshot_cc_file)', |
| 606 '<(resources_cc_file)', | |
| 607 '<(observatory_assets_cc_file)', | |
| 608 ], | 744 ], |
| 609 'conditions': [ | 745 'conditions': [ |
| 610 ['OS=="win"', { | 746 ['OS=="win"', { |
| 611 'link_settings': { | 747 'link_settings': { |
| 612 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], | 748 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], |
| 613 }, | 749 }, |
| 614 # Generate an import library on Windows, by exporting a function. | 750 # Generate an import library on Windows, by exporting a function. |
| 615 # Extensions use this import library to link to the API in dart.exe. | 751 # Extensions use this import library to link to the API in dart.exe. |
| 616 'msvs_settings': { | 752 'msvs_settings': { |
| 617 'VCLinkerTool': { | 753 'VCLinkerTool': { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 629 ], | 765 ], |
| 630 }, | 766 }, |
| 631 }, | 767 }, |
| 632 }, | 768 }, |
| 633 { | 769 { |
| 634 # dart binary with a snapshot of corelibs built in and support for testing | 770 # dart binary with a snapshot of corelibs built in and support for testing |
| 635 # precompilation (aka --noopt) | 771 # precompilation (aka --noopt) |
| 636 'target_name': 'dart_noopt', | 772 'target_name': 'dart_noopt', |
| 637 'type': 'executable', | 773 'type': 'executable', |
| 638 'dependencies': [ | 774 'dependencies': [ |
| 639 'libdart_noopt', | 775 'build_observatory#host', |
| 776 'generate_observatory_assets_cc_file#host', |
| 777 'generate_resources_cc_file#host', |
| 778 'generate_snapshot_file#host', |
| 640 'libdart_builtin', | 779 'libdart_builtin', |
| 641 'libdart_io', | 780 'libdart_io', |
| 642 'build_observatory#host', | 781 'libdart_noopt', |
| 643 'generate_snapshot_file#host', | |
| 644 'generate_resources_cc_file#host', | |
| 645 'generate_observatory_assets_cc_file#host', | |
| 646 ], | 782 ], |
| 647 'include_dirs': [ | 783 'include_dirs': [ |
| 648 '..', | 784 '..', |
| 649 '../../third_party/', # Zlib | |
| 650 ], | 785 ], |
| 651 'sources': [ | 786 'sources': [ |
| 652 'main.cc', | 787 'main.cc', |
| 788 'builtin.h', |
| 653 'builtin_common.cc', | 789 'builtin_common.cc', |
| 654 'builtin_natives.cc', | 790 'builtin_natives.cc', |
| 655 'builtin_nolib.cc', | 791 'builtin_nolib.cc', |
| 656 'builtin.h', | |
| 657 'io_natives.h', | 792 'io_natives.h', |
| 658 'vmservice_impl.cc', | 793 'vmservice_impl.cc', |
| 659 'vmservice_impl.h', | 794 'vmservice_impl.h', |
| 795 '<(observatory_assets_cc_file)', |
| 796 '<(resources_cc_file)', |
| 660 '<(snapshot_cc_file)', | 797 '<(snapshot_cc_file)', |
| 661 '<(resources_cc_file)', | |
| 662 '<(observatory_assets_cc_file)', | |
| 663 ], | 798 ], |
| 664 'defines': [ | 799 'defines': [ |
| 665 'DART_PRECOMPILER', | 800 'DART_PRECOMPILER', |
| 666 ], | 801 ], |
| 667 'conditions': [ | 802 'conditions': [ |
| 668 ['OS=="win"', { | 803 ['OS=="win"', { |
| 669 'link_settings': { | 804 'link_settings': { |
| 670 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], | 805 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], |
| 671 }, | 806 }, |
| 672 # Generate an import library on Windows, by exporting a function. | 807 # Generate an import library on Windows, by exporting a function. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 686 '-rdynamic', | 821 '-rdynamic', |
| 687 ], | 822 ], |
| 688 }, | 823 }, |
| 689 }, | 824 }, |
| 690 }, | 825 }, |
| 691 { | 826 { |
| 692 # dart binary for running precompiled snapshots without the compiler. | 827 # dart binary for running precompiled snapshots without the compiler. |
| 693 'target_name': 'dart_precompiled_runtime', | 828 'target_name': 'dart_precompiled_runtime', |
| 694 'type': 'executable', | 829 'type': 'executable', |
| 695 'dependencies': [ | 830 'dependencies': [ |
| 696 'libdart_precompiled_runtime', | 831 'bin/zlib.gyp:zlib_dart', |
| 832 'build_observatory#host', |
| 833 'generate_observatory_assets_cc_file#host', |
| 834 'generate_resources_cc_file#host', |
| 697 'libdart_builtin', | 835 'libdart_builtin', |
| 698 'libdart_io', | 836 'libdart_io', |
| 699 'build_observatory#host', | 837 'libdart_precompiled_runtime', |
| 700 'generate_resources_cc_file#host', | |
| 701 'generate_observatory_assets_cc_file#host', | |
| 702 ], | 838 ], |
| 703 'include_dirs': [ | 839 'include_dirs': [ |
| 704 '..', | 840 '..', |
| 705 '../../third_party/', # Zlib | 841 '../../third_party/', # Zlib |
| 706 ], | 842 ], |
| 707 'sources': [ | 843 'sources': [ |
| 708 'main.cc', | 844 'main.cc', |
| 845 'builtin.h', |
| 709 'builtin_common.cc', | 846 'builtin_common.cc', |
| 710 'builtin_natives.cc', | 847 'builtin_natives.cc', |
| 711 'builtin_nolib.cc', | 848 'builtin_nolib.cc', |
| 712 'builtin.h', | |
| 713 'io_natives.h', | 849 'io_natives.h', |
| 850 'snapshot_empty.cc', |
| 714 'vmservice_impl.cc', | 851 'vmservice_impl.cc', |
| 715 'vmservice_impl.h', | 852 'vmservice_impl.h', |
| 716 'snapshot_empty.cc', | 853 '<(observatory_assets_cc_file)', |
| 717 '<(resources_cc_file)', | 854 '<(resources_cc_file)', |
| 718 '<(observatory_assets_cc_file)', | |
| 719 ], | 855 ], |
| 720 'defines': [ | 856 'defines': [ |
| 721 'DART_PRECOMPILED_RUNTIME', | 857 'DART_PRECOMPILED_RUNTIME', |
| 722 ], | 858 ], |
| 723 'conditions': [ | 859 'conditions': [ |
| 724 ['OS=="win"', { | 860 ['OS=="win"', { |
| 725 'link_settings': { | 861 'link_settings': { |
| 726 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], | 862 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], |
| 727 }, | 863 }, |
| 728 # Generate an import library on Windows, by exporting a function. | 864 # Generate an import library on Windows, by exporting a function. |
| 729 # Extensions use this import library to link to the API in dart.exe. | 865 # Extensions use this import library to link to the API in dart.exe. |
| 730 'msvs_settings': { | 866 'msvs_settings': { |
| 731 'VCLinkerTool': { | 867 'VCLinkerTool': { |
| 732 'AdditionalOptions': [ '/EXPORT:Dart_True' ], | 868 'AdditionalOptions': [ '/EXPORT:Dart_True' ], |
| 733 }, | 869 }, |
| 734 }, | 870 }, |
| 735 }], | 871 }], |
| 736 ], | 872 ], |
| 737 }, | 873 }, |
| 738 { | 874 { |
| 739 # dart binary built for the host. It does not use a snapshot | 875 # dart binary built for the host. It does not use a snapshot |
| 740 # and does not include Observatory. | 876 # and does not include Observatory. |
| 741 'target_name': 'dart_bootstrap', | 877 'target_name': 'dart_bootstrap', |
| 742 'type': 'executable', | 878 'type': 'executable', |
| 743 'toolsets':['host'], | 879 'toolsets':['host'], |
| 744 'dependencies': [ | 880 'dependencies': [ |
| 745 'libdart_nosnapshot', | 881 'generate_resources_cc_file#host', |
| 746 'libdart_builtin', | 882 'libdart_builtin', |
| 747 'libdart_io', | 883 'libdart_io', |
| 748 'generate_resources_cc_file#host', | 884 'libdart_nosnapshot', |
| 749 ], | 885 ], |
| 750 'include_dirs': [ | 886 'include_dirs': [ |
| 751 '..', | 887 '..', |
| 752 '../../third_party/', # Zlib | |
| 753 ], | 888 ], |
| 754 'sources': [ | 889 'sources': [ |
| 755 'main.cc', | 890 'main.cc', |
| 891 'builtin.cc', |
| 892 'builtin.h', |
| 756 'builtin_common.cc', | 893 'builtin_common.cc', |
| 757 'builtin_natives.cc', | 894 'builtin_natives.cc', |
| 758 'builtin.cc', | |
| 759 'builtin.h', | |
| 760 'io_natives.h', | 895 'io_natives.h', |
| 896 'observatory_assets_empty.cc', |
| 897 'snapshot_empty.cc', |
| 761 'vmservice_impl.cc', | 898 'vmservice_impl.cc', |
| 762 'vmservice_impl.h', | 899 'vmservice_impl.h', |
| 763 # Include generated source files. | 900 # Include generated source files. |
| 764 '<(builtin_cc_file)', | 901 '<(builtin_cc_file)', |
| 765 '<(io_cc_file)', | 902 '<(io_cc_file)', |
| 766 '<(io_patch_cc_file)', | 903 '<(io_patch_cc_file)', |
| 767 '<(resources_cc_file)', | 904 '<(resources_cc_file)', |
| 768 'observatory_assets_empty.cc', | |
| 769 'snapshot_empty.cc', | |
| 770 ], | 905 ], |
| 771 'defines': [ | 906 'defines': [ |
| 772 'DART_NO_SNAPSHOT', | 907 'DART_NO_SNAPSHOT', |
| 773 'DART_PRECOMPILER', | 908 'DART_PRECOMPILER', |
| 774 ], | 909 ], |
| 775 'conditions': [ | 910 'conditions': [ |
| 776 ['OS=="win"', { | 911 ['OS=="win"', { |
| 777 'link_settings': { | 912 'link_settings': { |
| 778 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], | 913 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], |
| 779 }, | 914 }, |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 904 }], | 1039 }], |
| 905 ['OS=="linux"', { | 1040 ['OS=="linux"', { |
| 906 'cflags': [ | 1041 'cflags': [ |
| 907 '-fPIC', | 1042 '-fPIC', |
| 908 ], | 1043 ], |
| 909 }], | 1044 }], |
| 910 ], | 1045 ], |
| 911 }, | 1046 }, |
| 912 ], | 1047 ], |
| 913 } | 1048 } |
| OLD | NEW |