| Index: samples/android_sample/android_sample.gyp
|
| ===================================================================
|
| --- samples/android_sample/android_sample.gyp (revision 16976)
|
| +++ samples/android_sample/android_sample.gyp (working copy)
|
| @@ -11,14 +11,16 @@
|
| 'target_name': 'android_sample',
|
| 'type': 'none',
|
| 'dependencies': [
|
| + 'copy_extension',
|
| + 'copy_main',
|
| '../../runtime/dart-runtime.gyp:android_embedder',
|
| + 'copy_embedder',
|
| ],
|
| 'actions': [
|
| # TODO(gram) - this should have a debug and release version.
|
| {
|
| 'action_name': 'build_app',
|
| 'inputs': [
|
| - 'assets/dart/*.dart',
|
| ],
|
| 'outputs': [
|
| 'bin/NativeActivity-debug.apk',
|
| @@ -26,7 +28,38 @@
|
| 'action': [ 'ant', 'debug' ]
|
| }
|
| ]
|
| - }
|
| + },
|
| + {
|
| + 'target_name': 'copy_embedder',
|
| + 'type': 'none',
|
| + 'copies': [ {
|
| + # TODO(gram) - this should vary based on architecture.
|
| + 'destination': 'libs/x86',
|
| + 'files': [
|
| + '<(PRODUCT_DIR)/lib.target/libandroid_embedder.so'
|
| + ],
|
| + }],
|
| + },
|
| + {
|
| + 'target_name': 'copy_extension',
|
| + 'type': 'none',
|
| + 'copies': [ {
|
| + 'destination': 'assets/dart',
|
| + 'files': [
|
| + '../../runtime/embedders/openglui/common/gl.dart'
|
| + ],
|
| + }],
|
| + },
|
| + {
|
| + 'target_name': 'copy_main',
|
| + 'type': 'none',
|
| + 'copies': [ {
|
| + 'destination': 'assets/dart',
|
| + 'files': [
|
| + '../../samples/simplegl/web/raytrace.dart'
|
| + ],
|
| + }],
|
| + },
|
| ]
|
| }
|
| ]
|
|
|