Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(319)

Unified Diff: samples/openglui/android-blasteroids/android.gyp

Issue 13345002: Cleaned up OpenGLUI samples and added Blasteroids. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: samples/openglui/android-blasteroids/android.gyp
===================================================================
--- samples/openglui/android-blasteroids/android.gyp (revision 0)
+++ samples/openglui/android-blasteroids/android.gyp (revision 0)
@@ -0,0 +1,90 @@
+# Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+# for details. All rights reserved. Use of this source code is governed by a
+# BSD-style license that can be found in the LICENSE file.
+
+{
+ 'conditions': [
+ ['OS=="android"',
+ {
+ 'targets': [
+ {
+ 'target_name': 'android_app',
+ 'type': 'none',
+ 'dependencies': [
+ 'copy_extension',
+ 'copy_main',
+ '../../../runtime/dart-runtime.gyp:android_embedder',
+ 'copy_embedder',
+ 'copy_assets',
+ ],
+ 'actions': [
+ # TODO(gram) - this should have a debug and release version.
+ {
+ 'action_name': 'build_app',
+ 'inputs': [
+ '<(PRODUCT_DIR)/lib.target/libandroid_embedder.so',
+ '../../../runtime/embedders/openglui/common/gl.dart',
+ '../src/blasteroids.dart',
+ ],
+ 'outputs': [
+ 'bin/NativeActivity-debug.apk',
+ ],
+ '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': [
+ '../src/blasteroids.dart',
+ ],
+ }],
+ },
+ {
+ 'target_name': 'copy_assets',
+ 'type': 'none',
+ 'copies': [ {
+ 'destination': 'assets',
+ 'files': [
+ '../web/asteroid1.png',
+ '../web/asteroid2.png',
+ '../web/asteroid3.png',
+ '../web/asteroid4.png',
+ '../web/bg3_1.png',
+ '../web/enemyship1.png',
+ '../web/player.png',
+ '../web/shield.png',
+ ],
+ }],
+ },
+ ]
+ }
+ ]
+ ]
+}
+
+
« no previous file with comments | « samples/openglui/android-blasteroids/AndroidManifest.xml ('k') | samples/openglui/android-blasteroids/build.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698