| 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 'variables': { | |
| 7 'snapshot_cc_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.cc', | |
| 8 }, | |
| 9 'conditions': [ | 6 'conditions': [ |
| 10 ['OS=="android"', | 7 ['OS=="android"', |
| 11 { | 8 { |
| 12 'targets': [ | 9 'targets': [ |
| 13 { | 10 { |
| 14 # Dart shared library for Android. | 11 # Dart shared library for Android. |
| 15 'target_name': 'android_embedder', | 12 'target_name': 'android_embedder', |
| 16 'type': 'shared_library', | 13 'type': 'shared_library', |
| 17 'dependencies': [ | 14 'dependencies': [ |
| 18 '../../runtime/dart-runtime.gyp:libdart_export', | 15 'libdart_lib_withcore', |
| 19 '../../runtime/dart-runtime.gyp:libdart_builtin', | 16 'libdart_vm', |
| 20 '../../runtime/dart-runtime.gyp:generate_snapshot_file', | 17 'libjscre', |
| 18 'libdouble_conversion', |
| 19 'generate_version_cc_file', |
| 21 ], | 20 ], |
| 22 'include_dirs': [ | 21 'include_dirs': [ |
| 23 '../../runtime' | 22 '../..' |
| 24 ], | 23 ], |
| 25 'defines': [ | 24 'defines': [ |
| 26 'DART_SHARED_LIB' | 25 'DART_SHARED_LIB' |
| 27 ], | 26 ], |
| 28 'sources': [ | 27 'sources': [ |
| 28 '../../include/dart_api.h', |
| 29 '../../include/dart_debugger_api.h', |
| 30 '../../vm/dart_api_impl.cc', |
| 31 '../../vm/debugger_api_impl.cc', |
| 32 '../../vm/version.h', |
| 29 'support_android.cc', | 33 'support_android.cc', |
| 30 'builtin_nolib.cc', | 34 '<(version_cc_file)', |
| 31 '../../runtime/bin/socket.cc', | |
| 32 '../../runtime/bin/socket_android.cc', | |
| 33 '../../runtime/bin/eventhandler.cc', | |
| 34 '../../runtime/bin/eventhandler_android.cc', | |
| 35 '../../runtime/bin/process.cc', | |
| 36 '../../runtime/bin/process_android.cc', | |
| 37 '../../runtime/bin/platform.cc', | |
| 38 '../../runtime/bin/platform_android.cc', | |
| 39 '<(snapshot_cc_file)', | |
| 40 ], | 35 ], |
| 41 'link_settings': { | 36 'link_settings': { |
| 42 'libraries': [ '-llog', '-lc' ], | 37 'libraries': [ '-llog', '-lc' ], |
| 43 'ldflags': [ | 38 'ldflags': [ |
| 44 '-z', 'muldefs' | 39 '-z', 'muldefs' |
| 45 ], | 40 ], |
| 46 'ldflags!': [ | 41 'ldflags!': [ |
| 47 '-Wl,--exclude-libs=ALL', | 42 '-Wl,--exclude-libs=ALL', |
| 48 ], | 43 ], |
| 49 }, | 44 }, |
| 50 }, | 45 }, |
| 51 ], | 46 ], |
| 52 }, | 47 }, |
| 53 ] | 48 ] |
| 54 ], | 49 ], |
| 55 } | 50 } |
| 56 | 51 |
| OLD | NEW |