Index: runtime/bin/bin.gypi |
diff --git a/runtime/bin/bin.gypi b/runtime/bin/bin.gypi |
index 45d808c5a62fe0efb4dd429b1ff0f8ea9832ca1a..6f00a4ca73af5bb0416e921f38722b65baa96697 100644 |
--- a/runtime/bin/bin.gypi |
+++ b/runtime/bin/bin.gypi |
@@ -522,5 +522,46 @@ |
], |
}, |
], |
+ 'conditions': [ |
+ ['OS=="android"', |
+ { |
+ 'targets': [ |
+ { |
+ # dart shared library with a snapshot of corelibs built in. |
+ # designed to be called from Java (e.g. on Android) |
+ 'target_name': 'dart_so', |
+ 'type': 'shared_library', |
+ 'dependencies': [ |
+ 'libdart_export', |
+ 'libdart_builtin', |
+ 'generate_snapshot_file', |
+ ], |
+ 'include_dirs': [ |
+ '..' |
+ ], |
+ 'defines': [ |
+ 'DART_SHARED_LIB' |
+ ], |
+ 'sources': [ |
+ 'main.cc', |
+ 'main_android.cc', |
+ 'builtin_nolib.cc', |
+ '<(snapshot_cc_file)', |
+ ], |
+ 'link_settings': { |
+ 'libraries': [ '-llog' ], |
+ 'ldflags': [ |
+ '-z', 'muldefs', |
+ ], |
+ 'ldflags!': [ |
+ '-Wl,--exclude-libs=ALL', |
+ ], |
+ }, |
+ }, |
+ ], |
+ }, |
+ ] |
+ ], |
+ |
} |