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_sample', | |
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_raytrace.dart', | |
27 '../src/openglui_canvas_tests.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/openglui_raytrace.dart', | |
64 '../src/openglui_canvas_tests.dart' | |
65 ], | |
66 }], | |
67 }, | |
68 ] | |
69 } | |
70 ] | |
71 ] | |
72 } | |
73 | |
74 | |
OLD | NEW |