OLD | NEW |
(Empty) | |
| 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 |
| 3 # BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 { |
| 6 'conditions': [ |
| 7 ['OS=="android"', |
| 8 { |
| 9 'targets': [ |
| 10 { |
| 11 'target_name': 'android_app', |
| 12 'type': 'none', |
| 13 'dependencies': [ |
| 14 'copy_extension', |
| 15 'copy_main', |
| 16 '../../../runtime/dart-runtime.gyp:android_embedder', |
| 17 'copy_embedder', |
| 18 'copy_assets', |
| 19 ], |
| 20 'actions': [ |
| 21 # TODO(gram) - this should have a debug and release version. |
| 22 { |
| 23 'action_name': 'build_app', |
| 24 'inputs': [ |
| 25 '<(PRODUCT_DIR)/lib.target/libandroid_embedder.so', |
| 26 '../../../runtime/embedders/openglui/common/gl.dart', |
| 27 '../src/blasteroids.dart', |
| 28 ], |
| 29 'outputs': [ |
| 30 'bin/NativeActivity-debug.apk', |
| 31 ], |
| 32 'action': [ 'ant', 'debug' ] |
| 33 } |
| 34 ] |
| 35 }, |
| 36 { |
| 37 'target_name': 'copy_embedder', |
| 38 'type': 'none', |
| 39 'copies': [ { |
| 40 # TODO(gram) - this should vary based on architecture. |
| 41 'destination': 'libs/x86', |
| 42 'files': [ |
| 43 '<(PRODUCT_DIR)/lib.target/libandroid_embedder.so' |
| 44 ], |
| 45 }], |
| 46 }, |
| 47 { |
| 48 'target_name': 'copy_extension', |
| 49 'type': 'none', |
| 50 'copies': [ { |
| 51 'destination': 'assets/dart', |
| 52 'files': [ |
| 53 '../../../runtime/embedders/openglui/common/gl.dart' |
| 54 ], |
| 55 }], |
| 56 }, |
| 57 { |
| 58 'target_name': 'copy_main', |
| 59 'type': 'none', |
| 60 'copies': [ { |
| 61 'destination': 'assets/dart', |
| 62 'files': [ |
| 63 '../src/blasteroids.dart', |
| 64 ], |
| 65 }], |
| 66 }, |
| 67 { |
| 68 'target_name': 'copy_assets', |
| 69 'type': 'none', |
| 70 'copies': [ { |
| 71 'destination': 'assets', |
| 72 'files': [ |
| 73 '../web/asteroid1.png', |
| 74 '../web/asteroid2.png', |
| 75 '../web/asteroid3.png', |
| 76 '../web/asteroid4.png', |
| 77 '../web/bg3_1.png', |
| 78 '../web/enemyship1.png', |
| 79 '../web/player.png', |
| 80 '../web/shield.png', |
| 81 ], |
| 82 }], |
| 83 }, |
| 84 ] |
| 85 } |
| 86 ] |
| 87 ] |
| 88 } |
| 89 |
| 90 |
OLD | NEW |