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 ], | |
19 'actions': [ | |
20 # TODO(gram) - this should have a debug and release version. | |
21 { | |
22 'action_name': 'build_app', | |
23 'inputs': [ | |
24 '<(PRODUCT_DIR)/lib.target/libandroid_embedder.so', | |
25 '../../../runtime/embedders/openglui/common/gl.dart', | |
26 '../src/openglui_canvas_tests.dart' | |
27 ], | |
28 'outputs': [ | |
29 'bin/NativeActivity-debug.apk', | |
30 ], | |
31 'action': [ 'ant', 'debug' ] | |
32 } | |
33 ] | |
34 }, | |
35 { | |
36 'target_name': 'copy_embedder', | |
37 'type': 'none', | |
38 'copies': [ { | |
39 # TODO(gram) - this should vary based on architecture. | |
40 'destination': 'libs/x86', | |
41 'files': [ | |
42 '<(PRODUCT_DIR)/lib.target/libandroid_embedder.so' | |
43 ], | |
44 }], | |
45 }, | |
46 { | |
47 'target_name': 'copy_extension', | |
48 'type': 'none', | |
49 'copies': [ { | |
50 'destination': 'assets/dart', | |
51 'files': [ | |
52 '../../../runtime/embedders/openglui/common/gl.dart' | |
53 ], | |
54 }], | |
55 }, | |
56 { | |
57 'target_name': 'copy_main', | |
58 'type': 'none', | |
59 'copies': [ { | |
60 'destination': 'assets/dart', | |
61 'files': [ | |
62 '../src/openglui_canvas_tests.dart' | |
63 ], | |
64 }], | |
65 }, | |
66 ] | |
67 } | |
68 ] | |
69 ] | |
70 } | |
71 | |
72 | |
OLD | NEW |