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 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], | 485 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], |
486 }, | 486 }, |
487 # Generate an import library on Windows, by exporting a function. | 487 # Generate an import library on Windows, by exporting a function. |
488 # Extensions use this import library to link to the API in dart.exe. | 488 # Extensions use this import library to link to the API in dart.exe. |
489 'msvs_settings': { | 489 'msvs_settings': { |
490 'VCLinkerTool': { | 490 'VCLinkerTool': { |
491 'AdditionalOptions': [ '/EXPORT:Dart_True' ], | 491 'AdditionalOptions': [ '/EXPORT:Dart_True' ], |
492 }, | 492 }, |
493 }, | 493 }, |
494 }], | 494 }], |
495 ], | 495 ['OS=="linux"', { |
| 496 # Have the linker add all symbols to the dynamic symbol table |
| 497 # so that extensions can look them up dynamically in the binary. |
| 498 'ldflags': [ |
| 499 '-rdynamic', |
| 500 ], |
| 501 }], |
| 502 ], |
496 }, | 503 }, |
497 { | 504 { |
498 # dart binary without any snapshot built in. | 505 # dart binary without any snapshot built in. |
499 'target_name': 'dart_no_snapshot', | 506 'target_name': 'dart_no_snapshot', |
500 'type': 'executable', | 507 'type': 'executable', |
501 'dependencies': [ | 508 'dependencies': [ |
502 'libdart_withcore', | 509 'libdart_withcore', |
503 'libdart_builtin', | 510 'libdart_builtin', |
504 'libdart_io', | 511 'libdart_io', |
505 ], | 512 ], |
(...skipping 18 matching lines...) Expand all Loading... |
524 'link_settings': { | 531 'link_settings': { |
525 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], | 532 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], |
526 }, | 533 }, |
527 # Generate an import library on Windows, by exporting a function. | 534 # Generate an import library on Windows, by exporting a function. |
528 # Extensions use this import library to link to the API in dart.exe. | 535 # Extensions use this import library to link to the API in dart.exe. |
529 'msvs_settings': { | 536 'msvs_settings': { |
530 'VCLinkerTool': { | 537 'VCLinkerTool': { |
531 'AdditionalOptions': [ '/EXPORT:Dart_True' ], | 538 'AdditionalOptions': [ '/EXPORT:Dart_True' ], |
532 }, | 539 }, |
533 }, | 540 }, |
534 }]], | 541 }], |
| 542 ['OS=="linux"', { |
| 543 # Have the linker add all symbols to the dynamic symbol table |
| 544 # so that extensions can look them up dynamically in the binary. |
| 545 'ldflags': [ |
| 546 '-rdynamic', |
| 547 ], |
| 548 }], |
| 549 ], |
535 }, | 550 }, |
536 { | 551 { |
537 'target_name': 'process_test', | 552 'target_name': 'process_test', |
538 'type': 'executable', | 553 'type': 'executable', |
539 'sources': [ | 554 'sources': [ |
540 'process_test.cc', | 555 'process_test.cc', |
541 ] | 556 ] |
542 }, | 557 }, |
543 { | 558 { |
544 'target_name': 'run_vm_tests', | 559 'target_name': 'run_vm_tests', |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
618 ['OS=="mac"', { | 633 ['OS=="mac"', { |
619 'xcode_settings': { | 634 'xcode_settings': { |
620 'OTHER_LDFLAGS': [ '-undefined', 'dynamic_lookup' ], | 635 'OTHER_LDFLAGS': [ '-undefined', 'dynamic_lookup' ], |
621 }, | 636 }, |
622 }], | 637 }], |
623 ], | 638 ], |
624 }, | 639 }, |
625 ], | 640 ], |
626 } | 641 } |
627 | 642 |
OLD | NEW |