Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(555)

Unified Diff: samples/android_embedder/android_embedder.gyp

Issue 11419237: Shared library for embedding VM in Android apps. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: samples/android_embedder/android_embedder.gyp
===================================================================
--- samples/android_embedder/android_embedder.gyp (revision 0)
+++ samples/android_embedder/android_embedder.gyp (revision 0)
@@ -0,0 +1,57 @@
+# Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+# for details. All rights reserved. Use of this source code is governed by a
+# BSD-style license that can be found in the LICENSE file.
+
+{
+ 'variables': {
+ 'snapshot_cc_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.cc',
+ },
+ 'conditions': [
+ ['OS=="android"',
+ {
+ 'targets': [
+ {
+ # dart shared library with a snapshot of corelibs built in.
+ # designed to be called from Java (e.g. on Android)
vsm 2012/11/29 23:13:30 How about: # Dart shared library for Android.
gram 2012/11/29 23:23:23 Done.
+ 'target_name': 'android_embedder',
+ 'type': 'shared_library',
+ 'dependencies': [
+ '../../runtime/dart-runtime.gyp:libdart_export',
+ '../../runtime/dart-runtime.gyp:libdart_builtin',
+ '../../runtime/dart-runtime.gyp:generate_snapshot_file',
+ ],
+ 'include_dirs': [
+ '../../runtime'
+ ],
+ 'defines': [
+ 'DART_SHARED_LIB'
+ ],
+ 'sources': [
+ 'support_android.cc',
+ 'builtin_nolib.cc',
+ '../../runtime/bin/socket.cc',
+ '../../runtime/bin/socket_android.cc',
+ '../../runtime/bin/eventhandler.cc',
+ '../../runtime/bin/eventhandler_android.cc',
+ '../../runtime/bin/process.cc',
+ '../../runtime/bin/process_android.cc',
+ '../../runtime/bin/platform.cc',
+ '../../runtime/bin/platform_android.cc',
+ '<(snapshot_cc_file)',
+ ],
+ 'link_settings': {
+ 'libraries': [ '-llog', '-lc' ],
+ 'ldflags': [
+ '-z', 'muldefs'
+ ],
+ 'ldflags!': [
+ '-Wl,--exclude-libs=ALL',
+ ],
+ },
+ },
+ ],
+ },
+ ]
+ ],
+}
+

Powered by Google App Engine
This is Rietveld 408576698