| 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 'conditions': [ | 6 'conditions': [ |
| 7 ['OS=="android"', | 7 ['OS=="android"', |
| 8 { | 8 { |
| 9 'targets': [ | 9 'targets': [ |
| 10 { | 10 { |
| 11 # Dart shared library for Android. | 11 # Dart shared library for Android. |
| 12 'target_name': 'android_embedder', | 12 'target_name': 'android_embedder', |
| 13 'type': 'shared_library', | 13 'type': 'shared_library', |
| 14 'dependencies': [ | 14 'dependencies': [ |
| 15 'libdart_lib_withcore', | 15 'libdart_lib_withcore', |
| 16 'libdart_vm', | 16 'libdart_vm', |
| 17 'libjscre', | 17 'libjscre', |
| 18 'libdouble_conversion', | 18 'libdouble_conversion', |
| 19 'generate_version_cc_file', | 19 'generate_version_cc_file', |
| 20 ], | 20 ], |
| 21 'include_dirs': [ | 21 'include_dirs': [ |
| 22 '../..' | 22 '../..', |
| 23 '../../../third_party/android_tools/ndk/sources/android/native_app
_glue', |
| 23 ], | 24 ], |
| 24 'defines': [ | 25 'defines': [ |
| 25 'DART_SHARED_LIB' | 26 'DART_SHARED_LIB' |
| 26 ], | 27 ], |
| 27 'sources': [ | 28 'sources': [ |
| 28 '../../include/dart_api.h', | 29 '../../include/dart_api.h', |
| 29 '../../include/dart_debugger_api.h', | 30 '../../include/dart_debugger_api.h', |
| 30 '../../vm/dart_api_impl.cc', | 31 '../../vm/dart_api_impl.cc', |
| 31 '../../vm/debugger_api_impl.cc', | 32 '../../vm/debugger_api_impl.cc', |
| 32 '../../vm/version.h', | 33 '../../vm/version.h', |
| 34 'activity_handler.h', |
| 35 'android_extension.cc', |
| 36 'android_extension.h', |
| 37 'context.h', |
| 38 'dart_host.cc', |
| 39 'dart_host.h', |
| 40 'eventloop.cc', |
| 41 'eventloop.h', |
| 42 'graphics.cc', |
| 43 'graphics.h', |
| 44 'input_handler.h', |
| 45 'input_service.cc', |
| 46 'input_service.h', |
| 47 'log.h', |
| 48 'main.cc', |
| 49 'resource.h', |
| 50 'sound_service.cc', |
| 51 'sound_service.h', |
| 33 'support_android.cc', | 52 'support_android.cc', |
| 53 'timer.cc', |
| 54 'timer.h', |
| 55 'types.h', |
| 56 'vm_glue.cc', |
| 57 'vm_glue.h', |
| 34 '<(version_cc_file)', | 58 '<(version_cc_file)', |
| 35 ], | 59 ], |
| 36 'link_settings': { | 60 'link_settings': { |
| 37 'libraries': [ '-llog', '-lc' ], | 61 'libraries': [ '-llog', '-lc', '-landroid', '-lEGL', '-lGLESv2', '
-lOpenSLES' ], |
| 38 'ldflags': [ | 62 'ldflags': [ |
| 39 '-z', 'muldefs' | 63 '-z', 'muldefs' |
| 40 ], | 64 ], |
| 41 'ldflags!': [ | 65 'ldflags!': [ |
| 42 '-Wl,--exclude-libs=ALL', | 66 '-Wl,--exclude-libs=ALL', |
| 43 ], | 67 ], |
| 44 }, | 68 }, |
| 45 }, | 69 }, |
| 46 ], | 70 ], |
| 47 }, | 71 }, |
| 48 ] | 72 ] |
| 49 ], | 73 ], |
| 50 } | 74 } |
| 51 | 75 |
| OLD | NEW |