Index: runtime/embedders/openglui/android/android_embedder.gypi |
=================================================================== |
--- runtime/embedders/openglui/android/android_embedder.gypi (revision 0) |
+++ runtime/embedders/openglui/android/android_embedder.gypi (revision 0) |
@@ -0,0 +1,89 @@ |
+# 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. |
+ |
+{ |
+ 'conditions': [ |
+ ['OS=="android"', |
+ { |
+ 'targets': [ |
+ { |
+ # Dart shared library for Android. |
+ 'target_name': 'android_embedder', |
+ 'type': 'shared_library', |
+ 'dependencies': [ |
+ 'libdart_lib_withcore', |
+ 'libdart_vm', |
+ 'libjscre', |
+ 'libdouble_conversion', |
+ 'generate_version_cc_file', |
+ ], |
+ 'include_dirs': [ |
+ '../../..', |
+ '../../../../third_party/android_tools/ndk/sources/android/native_app_glue', |
+ ], |
+ 'defines': [ |
+ 'DART_SHARED_LIB', |
+ '__ANDROID__' |
+ ], |
+ 'sources': [ |
+ '../common/context.h', |
+ '../common/dart_host.cc', |
+ '../common/dart_host.h', |
+ '../common/events.h', |
+ '../common/extension.cc', |
+ '../common/extension.h', |
+ '../common/gl_graphics_handler.cc', |
+ '../common/gl_graphics_handler.h', |
+ '../common/graphics_handler.h', |
+ '../common/input_handler.cc', |
+ '../common/input_handler.h', |
+ '../common/isized.h', |
+ '../common/life_cycle_handler.h', |
+ '../common/log.h', |
+ '../common/opengl.h', |
+ ',,.common/resource.h', |
+ '../common/sample.h', |
+ '../common/sound_handler.cc', |
+ '../common/sound_handler.h', |
+ '../common/timer.cc', |
+ '../common/timer.h', |
+ '../common/types.h', |
+ '../common/vm_glue.cc', |
+ '../common/vm_glue.h', |
+ '../../../include/dart_api.h', |
+ '../../../include/dart_debugger_api.h', |
+ '../../../vm/dart_api_impl.cc', |
+ '../../../vm/debugger_api_impl.cc', |
+ '../../../vm/version.h', |
+ '../../../../third_party/android_tools/ndk/sources/android/native_app_glue/android_native_app_glue.h', |
+ '../../../../third_party/android_tools/ndk/sources/android/native_app_glue/android_native_app_glue.c', |
+ 'android_graphics_handler.cc', |
+ 'android_graphics_handler.h', |
+ 'android_input_handler.h', |
+ 'android_resource.h', |
+ 'android_sound_handler.cc', |
+ 'android_sound_handler.h', |
+ 'eventloop.cc', |
+ 'eventloop.h', |
+ 'log.h', |
+ 'main.cc', |
+ 'support_android.cc', |
+ '<(version_cc_file)', |
+ ], |
+ 'link_settings': { |
+ 'libraries': [ '-llog', '-lc', '-landroid', '-lEGL', '-lGLESv2', '-lOpenSLES', '-landroid' ], |
+ 'ldflags': [ |
+ '-z', 'muldefs' |
+ ], |
+ 'ldflags!': [ |
+ '-Wl,--exclude-libs=ALL', |
+ ], |
+ }, |
+ }, |
+ ], |
+ }, |
+ ] |
+ ], |
+} |
+ |