diff --git a/project/jni/application/teeworlds-0.7/AndroidAppSettings.cfg b/project/jni/application/teeworlds-0.7/AndroidAppSettings.cfg new file mode 100644 index 000000000..44b2b93c5 --- /dev/null +++ b/project/jni/application/teeworlds-0.7/AndroidAppSettings.cfg @@ -0,0 +1,51 @@ +# The application settings for Android libSDL port +AppSettingVersion=17 +LibSdlVersion=1.2 +AppName="TeeWorlds" +AppFullName=com.teeworlds +ScreenOrientation=h +InhibitSuspend=n +AppDataDownloadUrl="Game data|data.zip" +VideoDepthBpp=24 +NeedDepthBuffer=n +NeedStencilBuffer=n +NeedGles2=n +SwVideoMode=n +SdlVideoResize=n +SdlVideoResizeKeepAspect=n +CompatibilityHacks=n +CompatibilityHacksStaticInit=n +CompatibilityHacksTextInputEmulatesHwKeyboard=n +AppUsesMouse=y +AppNeedsTwoButtonMouse=n +ShowMouseCursor=n +ForceRelativeMouseMode=n +AppNeedsArrowKeys=y +AppNeedsTextInput=y +AppUsesJoystick=y +AppUsesAccelerometer=y +AppUsesMultitouch=y +NonBlockingSwapBuffers=n +RedefinedKeys="SPACE RETURN LEFT RIGHT LSHIFT ESCAPE RSHIFT LSHIFT" +AppTouchscreenKeyboardKeysAmount=6 +AppTouchscreenKeyboardKeysAmountAutoFire=0 +RedefinedKeysScreenKb="SPACE RETURN LEFT RIGHT RSHIFT LSHIFT" +StartupMenuButtonTimeout=3000 +HiddenMenuOptions='OptionalDownloadConfig DisplaySizeConfig' +FirstStartMenuOptions='' +MultiABI=n +AppVersionCode=07008 +AppVersionName="0.7.0.08" +ResetSdlConfigForThisVersion=y +DeleteFilesOnUpgrade="data" +CompiledLibraries="sdl_image freetype glu" +CustomBuildScript=n +AppCflags='-O3' +AppLdflags='-lEGL' +AppSubdirsBuild='src/src src/src/base src/src/engine src/src/engine/client src/src/engine/shared src/src/engine/external/pnglite src/src/engine/external/wavpack src/src/game src/src/game/client/* src/src/game/editor src/src/game/generated/protocol.cpp src/src/game/generated/client_data.cpp' +AppCmdline='' +ReadmeText='^You may press "Home" now - the data will be downloaded in background' +MinimumScreenSize=n +AdmobPublisherId=n +AdmobTestDeviceId= +AdmobBannerSize= diff --git a/project/jni/application/teeworlds-0.7/AndroidPreBuild.sh b/project/jni/application/teeworlds-0.7/AndroidPreBuild.sh new file mode 100755 index 000000000..0c08e27af --- /dev/null +++ b/project/jni/application/teeworlds-0.7/AndroidPreBuild.sh @@ -0,0 +1,24 @@ +#!/bin/sh + +LOCAL_PATH=`dirname $0` +LOCAL_PATH=`cd $LOCAL_PATH && pwd` + +echo "Building autogenerated files" +python --version > /dev/null 2>&1 || { echo "Error: no Python installed" ; exit 1 ; } + +cd $LOCAL_PATH/src +python datasrc/compile.py network_source > src/game/generated/protocol.cpp +python datasrc/compile.py network_header > src/game/generated/protocol.h +python datasrc/compile.py client_content_source > src/game/generated/client_data.cpp +python datasrc/compile.py client_content_header > src/game/generated/client_data.h +python datasrc/compile.py server_content_source > src/game/generated/server_data.cpp +python datasrc/compile.py server_content_header > src/game/generated/server_data.h + +python scripts/cmd5.py src/engine/shared/protocol.h src/game/generated/protocol.h src/game/tuning.h src/game/gamecore.cpp src/game/generated/protocol.h > src/game/generated/nethash.cpp + +echo "Archiving data" +mkdir -p ../AndroidData +zip -r data.zip data *.txt *.cfg >/dev/null +mv -f data.zip ../AndroidData/ + +exit 0 diff --git a/project/jni/application/teeworlds-0.7/icon.png b/project/jni/application/teeworlds-0.7/icon.png new file mode 100644 index 000000000..78936fa81 Binary files /dev/null and b/project/jni/application/teeworlds-0.7/icon.png differ diff --git a/project/jni/application/teeworlds-0.7/src b/project/jni/application/teeworlds-0.7/src new file mode 160000 index 000000000..16c193eec --- /dev/null +++ b/project/jni/application/teeworlds-0.7/src @@ -0,0 +1 @@ +Subproject commit 16c193eec2b9a840e6782f8dc26a53bc6a182a56