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 '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 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 571 '--table_name', 'service_bin', | 571 '--table_name', 'service_bin', |
| 572 '--root_prefix', 'bin/', | 572 '--root_prefix', 'bin/', |
| 573 '<@(_sources)' | 573 '<@(_sources)' |
| 574 ], | 574 ], |
| 575 'message': | 575 'message': |
| 576 'Generating ''<(bootstrap_resources_cc_file)'' file.' | 576 'Generating ''<(bootstrap_resources_cc_file)'' file.' |
| 577 }, | 577 }, |
| 578 ] | 578 ] |
| 579 }, | 579 }, |
| 580 { | 580 { |
| 581 # dart_product binary. | |
| 582 'target_name': 'dart_product', | |
| 583 'type': 'executable', | |
| 584 'dependencies': [ | |
| 585 'libdart', | |
| 586 'libdart_builtin', | |
| 587 'libdart_io', | |
| 588 'generate_snapshot_file#host', | |
| 589 ], | |
| 590 'include_dirs': [ | |
| 591 '..', | |
| 592 '../../third_party/', # Zlib | |
| 593 ], | |
| 594 'defines': [ | |
| 595 'DART_PRODUCT_BINARY', | |
| 596 ], | |
| 597 'sources': [ | |
| 598 'main.cc', | |
| 599 'builtin_common.cc', | |
| 600 'builtin_natives.cc', | |
| 601 'builtin_nolib.cc', | |
| 602 'builtin.h', | |
| 603 'io_natives.h', | |
| 604 'snapshot_empty.cc', | |
| 605 'observatory_assets_empty.cc', | |
| 606 ], | |
| 607 'conditions': [ | |
| 608 ['OS=="win"', { | |
| 609 'link_settings': { | |
| 610 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], | |
| 611 }, | |
| 612 # Generate an import library on Windows, by exporting a function. | |
| 613 # Extensions use this import library to link to the API in dart.exe. | |
| 614 'msvs_settings': { | |
| 615 'VCLinkerTool': { | |
| 616 'AdditionalOptions': [ '/EXPORT:Dart_True' ], | |
| 617 }, | |
| 618 }, | |
| 619 }], | |
| 620 ], | |
| 621 'configurations': { | |
| 622 'Dart_Linux_Base': { | |
| 623 # Have the linker add all symbols to the dynamic symbol table | |
| 624 # so that extensions can look them up dynamically in the binary. | |
| 625 'ldflags': [ | |
| 626 '-rdynamic', | |
| 627 ], | |
|
siva
2016/02/12 18:18:01
Not sure if there will be a size difference but do
Cutch
2016/02/12 18:33:43
I've removed it and it still appears to work.
| |
| 628 }, | |
| 629 }, | |
| 630 }, | |
| 631 { | |
| 581 # dart binary with a snapshot of corelibs built in. | 632 # dart binary with a snapshot of corelibs built in. |
| 582 'target_name': 'dart', | 633 'target_name': 'dart', |
| 583 'type': 'executable', | 634 'type': 'executable', |
| 584 'dependencies': [ | 635 'dependencies': [ |
| 585 'libdart', | 636 'libdart', |
| 586 'libdart_builtin', | 637 'libdart_builtin', |
| 587 'libdart_io', | 638 'libdart_io', |
| 588 'build_observatory#host', | 639 'build_observatory#host', |
| 589 'generate_snapshot_file#host', | 640 'generate_snapshot_file#host', |
| 590 'generate_resources_cc_file#host', | 641 'generate_resources_cc_file#host', |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 958 }], | 1009 }], |
| 959 ['OS=="linux"', { | 1010 ['OS=="linux"', { |
| 960 'cflags': [ | 1011 'cflags': [ |
| 961 '-fPIC', | 1012 '-fPIC', |
| 962 ], | 1013 ], |
| 963 }], | 1014 }], |
| 964 ], | 1015 ], |
| 965 }, | 1016 }, |
| 966 ], | 1017 ], |
| 967 } | 1018 } |
| OLD | NEW |