Index: runtime/bin/bin.gypi |
diff --git a/runtime/bin/bin.gypi b/runtime/bin/bin.gypi |
index 4b46c99d3de27ae01403bfa47000725b36191b0f..35c5bcb6971a7e83a6bdc5da024b7a8f7f0740e2 100644 |
--- a/runtime/bin/bin.gypi |
+++ b/runtime/bin/bin.gypi |
@@ -578,6 +578,57 @@ |
] |
}, |
{ |
+ # dart_product binary. |
+ 'target_name': 'dart_product', |
+ 'type': 'executable', |
+ 'dependencies': [ |
+ 'libdart', |
+ 'libdart_builtin', |
+ 'libdart_io', |
+ 'generate_snapshot_file#host', |
+ ], |
+ 'include_dirs': [ |
+ '..', |
+ '../../third_party/', # Zlib |
+ ], |
+ 'defines': [ |
+ 'DART_PRODUCT_BINARY', |
+ ], |
+ 'sources': [ |
+ 'main.cc', |
+ 'builtin_common.cc', |
+ 'builtin_natives.cc', |
+ 'builtin_nolib.cc', |
+ 'builtin.h', |
+ 'io_natives.h', |
+ 'snapshot_empty.cc', |
+ 'observatory_assets_empty.cc', |
+ ], |
+ 'conditions': [ |
+ ['OS=="win"', { |
+ 'link_settings': { |
+ 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], |
+ }, |
+ # Generate an import library on Windows, by exporting a function. |
+ # Extensions use this import library to link to the API in dart.exe. |
+ 'msvs_settings': { |
+ 'VCLinkerTool': { |
+ 'AdditionalOptions': [ '/EXPORT:Dart_True' ], |
+ }, |
+ }, |
+ }], |
+ ], |
+ 'configurations': { |
+ 'Dart_Linux_Base': { |
+ # Have the linker add all symbols to the dynamic symbol table |
+ # so that extensions can look them up dynamically in the binary. |
+ 'ldflags': [ |
+ '-rdynamic', |
+ ], |
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.
|
+ }, |
+ }, |
+ }, |
+ { |
# dart binary with a snapshot of corelibs built in. |
'target_name': 'dart', |
'type': 'executable', |