Changeset 1219
- Timestamp:
- Apr 12, 2012, 12:59:29 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/monsterz/android/build.xml
r720 r1219 2 2 <project name="LolActivity" default="help"> 3 3 4 <!-- The local.properties file is created and updated by the 'android' 5 tool. 6 It contains the path to the SDK. It should *NOT* be checked into 7 Version Control Systems. --> 4 <!-- The local.properties file is created and updated by the 'android' tool. 5 It contains the path to the SDK. It should *NOT* be checked into 6 Version Control Systems. --> 8 7 <property file="local.properties" /> 9 8 10 <!-- The build.properties file can be created by you and is never touched11 by the 'android' tool. This is the place to change some of the12 default property values used by the Ant rules.9 <!-- The ant.properties file can be created by you. It is only edited by the 10 'android' tool to add properties to it. 11 This is the place to change some Ant specific build properties. 13 12 Here are some properties you may want to change/update: 14 13 … … 17 16 out.dir 18 17 The name of the output directory. Default is 'bin'. 18 19 For other overridable properties, look at the beginning of the rules 20 files in the SDK, at tools/ant/build.xml 19 21 20 22 Properties related to the SDK location or the project target should … … 25 27 26 28 --> 27 <property file=" build.properties" />29 <property file="ant.properties" /> 28 30 29 <!-- The default.properties file is created and updated by the 'android'31 <!-- The project.properties file is created and updated by the 'android' 30 32 tool, as well as ADT. 33 34 This contains project specific properties such as project target, and library 35 dependencies. Lower level build properties are stored in ant.properties 36 (or in .classpath for Eclipse projects). 37 31 38 This file is an integral part of the build system for your 32 39 application and should be checked into Version Control Systems. --> 33 < property file="default.properties" />40 <loadproperties srcFile="project.properties" /> 34 41 35 <!-- Custom Android task to deal with the project target, and import the 36 proper rules. 37 This requires ant 1.6.0 or above. --> 38 <path id="android.antlibs"> 39 <pathelement path="${sdk.dir}/tools/lib/anttasks.jar" /> 40 <pathelement path="${sdk.dir}/tools/lib/sdklib.jar" /> 41 <pathelement path="${sdk.dir}/tools/lib/androidprefs.jar" /> 42 </path> 42 <!-- quick check on sdk.dir --> 43 <fail 44 message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through an env var" 45 unless="sdk.dir" 46 /> 43 47 44 <taskdef name="setup" 45 classname="com.android.ant.SetupTask" 46 classpathref="android.antlibs" /> 48 <!-- 49 Import per project custom build rules if present at the root of the project. 50 This is the place to put custom intermediary targets such as: 51 -pre-build 52 -pre-compile 53 -post-compile (This is typically used for code obfuscation. 54 Compiled code location: ${out.classes.absolute.dir} 55 If this is not done in place, override ${out.dex.input.absolute.dir}) 56 -post-package 57 -post-build 58 -pre-clean 59 --> 60 <import file="custom_rules.xml" optional="true" /> 47 61 48 <!-- extension targets. Uncomment the ones where you want to do custom work 49 in between standard targets --> 50 <!-- 51 <target name="-pre-build"> 52 </target> 53 <target name="-pre-compile"> 54 </target> 55 56 [This is typically used for code obfuscation. 57 Compiled code location: ${out.classes.absolute.dir} 58 If this is not done in place, override ${out.dex.input.absolute.dir}] 59 <target name="-post-compile"> 60 </target> 61 --> 62 63 64 <!-- Execute the Android Setup task that will setup some properties 65 specific to the target, and import the build rules files. 66 67 The rules file is imported from 68 <SDK>/platforms/<target_platform>/ant/ant_rules_r#.xml 62 <!-- Import the actual build file. 69 63 70 64 To customize existing targets, there are two options: 71 65 - Customize only one target: 72 66 - copy/paste the target into this file, *before* the 73 < setup> task.67 <import> task. 74 68 - customize it to your needs. 75 - Customize the whole script.69 - Customize the whole content of build.xml 76 70 - copy/paste the content of the rules files (minus the top node) 77 into this file, *after* the <setup> task 78 - disable the import of the rules by changing the setup task 79 below to <setup import="false" />. 71 into this file, replacing the <import> task. 80 72 - customize to your needs. 73 74 *********************** 75 ****** IMPORTANT ****** 76 *********************** 77 In all cases you must update the value of version-tag below to read 'custom' instead of an integer, 78 in order to avoid having your file be overridden by tools such as "android update project" 81 79 --> 82 <setup /> 80 <!-- version-tag: 1 --> 81 <import file="${sdk.dir}/tools/ant/build.xml" /> 83 82 84 83 </project> -
trunk/monsterz/android/jni/Android.mk
r939 r1219 10 10 LOCAL_CFLAGS := -DDISABLE_IMPORTGL \ 11 11 -DHAVE_GLES_2X \ 12 -DHAVE_PTHREAD_H \ 12 13 -I$(LOCAL_PATH)/$(LOL_SRC) \ 13 14 -I$(LOCAL_PATH)/$(MONSTERZ_SRC) -
trunk/src/Makefile.am
r1180 r1219 23 23 $(nacl_sources) \ 24 24 $(sdl_sources) \ 25 $(android_sources) \ 25 26 \ 26 27 thread/threadbase.h thread/thread.h \ … … 32 33 \ 33 34 image/image.cpp image/image.h image/image-private.h \ 34 image/codec/android-image.cpp \35 35 image/codec/gdiplus-image.cpp \ 36 36 image/codec/ios-image.cpp \ 37 image/codec/sdl-image.cpp \38 image/codec/ps3-image.cpp \39 37 image/codec/dummy-image.cpp \ 40 38 \ … … 46 44 47 45 sdl_sources = \ 46 image/codec/sdl-image.cpp \ 48 47 platform/sdl/sdlapp.cpp platform/sdl/sdlapp.h \ 49 48 platform/sdl/sdlinput.cpp platform/sdl/sdlinput.h … … 60 59 if HAVE_PS3 61 60 ps3_sources = \ 61 image/codec/ps3-image.cpp \ 62 62 platform/ps3/threadbase.h \ 63 63 platform/ps3/ps3app.cpp platform/ps3/ps3app.h \ … … 70 70 endif 71 71 72 android_sources = \ 73 image/codec/android-image.cpp \ 74 platform/android/androidapp.cpp platform/android/androidapp.h 75 -
trunk/src/application/application.cpp
r1173 r1219 22 22 #elif defined __native_client__ 23 23 # include "platform/nacl/naclapp.h" 24 #elif defined __ANDROID__ 25 # include "platform/android/androidapp.h" 24 26 #elif defined HAVE_GLES_2X 25 27 # include "eglapp.h" … … 48 50 #elif defined __native_client__ 49 51 NaClApp app; 52 #elif defined __ANDROID__ 53 AndroidApp app; 50 54 #elif defined HAVE_GLES_2X 51 55 /* FIXME: this macro is only deactivated if we include "lolgl.h" */ -
trunk/src/platform/android/androidapp.cpp
r1106 r1219 17 17 18 18 #include "core.h" 19 #include "lolgl.h"20 19 #include "loldebug.h" 20 #include "androidapp.h" 21 21 22 22 using namespace lol; 23 24 /* Monsterz-specific */ 25 #include "interface.h" 23 26 24 27 namespace lol … … 26 29 JavaVM *g_vm; 27 30 jobject g_activity; 31 32 AndroidApp::AndroidApp(char const *title, ivec2 res, float fps) : 33 data(0) 34 { 35 } 36 37 void AndroidApp::ShowPointer(bool show) 38 { 39 } 40 41 void AndroidApp::Run() 42 { 43 while (!Ticker::Finished()) 44 { 45 /* Tick the renderer, show the frame and clamp to desired framerate. */ 46 Ticker::TickDraw(); 47 } 48 } 49 50 AndroidApp::~AndroidApp() 51 { 52 } 53 28 54 }; 29 55
Note: See TracChangeset
for help on using the changeset viewer.