Fixes for TeeWorlds compilation
This commit is contained in:
@@ -923,17 +923,14 @@ mkdir -p project/assets
|
||||
rm -f project/assets/*
|
||||
if [ -d "project/jni/application/src/AndroidData" ] ; then
|
||||
echo Copying asset files
|
||||
for F in project/jni/application/src/AndroidData/*; do
|
||||
if [ `cat $F | wc -c` -gt 1048576 ] ; then
|
||||
echo "Error: the file $F is bigger than 1048576 bytes - some Android devices will fail to extract such file"
|
||||
echo "Please use HTTP download method, or split your data into several small files with command:"
|
||||
echo "split -b 1000000 -d data.zip data.zip"
|
||||
echo "It will create files data.zip00, data.zip01 etc, and SDL will try to search for such files in assets when unpacking data.zip"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
cp project/jni/application/src/AndroidData/* project/assets/
|
||||
ln -s ../libs/armeabi/stdout-test project/assets/
|
||||
for F in project/assets/*; do
|
||||
if [ `cat $F | wc -c` -gt 1000000 ] ; then
|
||||
echo "The file $F is bigger than 1 megabyte - splitting it into smaller chunks"
|
||||
split -b 1000000 -d $F $F && rm $F || { echo "Error: 'split' command not installed" ; exit 1 ; }
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
echo Done
|
||||
|
||||
@@ -20,8 +20,8 @@ AppUsesMouse=y
|
||||
AppNeedsTwoButtonMouse=n
|
||||
ShowMouseCursor=n
|
||||
ForceRelativeMouseMode=n
|
||||
AppNeedsArrowKeys=n
|
||||
AppNeedsTextInput=n
|
||||
AppNeedsArrowKeys=y
|
||||
AppNeedsTextInput=y
|
||||
AppUsesJoystick=n
|
||||
AppHandlesJoystickSensitivity=n
|
||||
AppUsesMultitouch=y
|
||||
@@ -34,11 +34,11 @@ StartupMenuButtonTimeout=3000
|
||||
HiddenMenuOptions='OptionalDownloadConfig DisplaySizeConfig'
|
||||
FirstStartMenuOptions=''
|
||||
MultiABI=n
|
||||
AppVersionCode=101
|
||||
AppVersionName="1.01"
|
||||
AppVersionCode=08801
|
||||
AppVersionName="0.8.8.01"
|
||||
ResetSdlConfigForThisVersion=n
|
||||
DeleteFilesOnUpgrade="%"
|
||||
CompiledLibraries="sdl_mixer sdl_image freetype curl"
|
||||
CompiledLibraries="sdl_mixer sdl_image freetype curl vorbis ogg"
|
||||
CustomBuildScript=y
|
||||
AppCflags='-O2 -finline-functions'
|
||||
AppLdflags=''
|
||||
|
||||
@@ -5,7 +5,7 @@ LOCAL_PATH=`cd $LOCAL_PATH && pwd`
|
||||
|
||||
../setEnvironment.sh make -j8 -C engine \
|
||||
PLATFORM=android ARCH=arm USE_GLES=1 USE_LOCAL_HEADERS=0 \
|
||||
USE_OPENAL=0 USE_CURL=1 USE_CURL_DLOPEN=0 USE_CODEC_VORBIS=0 USE_MUMBLE=0 USE_FREETYPE=1 \
|
||||
USE_RENDERER_DLOPEN=0 USE_INTERNAL_ZLIB=0 USE_INTERNAL_JPEG=1 HAVE_VM_COMPILED=1 &&
|
||||
USE_OPENAL=0 USE_CURL=1 USE_CURL_DLOPEN=0 USE_CODEC_VORBIS=1 USE_MUMBLE=0 USE_FREETYPE=1 \
|
||||
USE_RENDERER_DLOPEN=0 USE_INTERNAL_ZLIB=0 USE_INTERNAL_JPEG=1 &&
|
||||
mv -f engine/build/release-android-arm/openarena.arm libapplication.so
|
||||
|
||||
|
||||
Submodule project/jni/application/openarena/engine updated: 7e290b68a5...cea3164adf
@@ -5,7 +5,7 @@ AppName="TeeWorlds"
|
||||
AppFullName=com.teeworlds
|
||||
ScreenOrientation=h
|
||||
InhibitSuspend=n
|
||||
AppDataDownloadUrl="Game data is 8 Mb|http://sourceforge.net/projects/libsdl-android/files/TeeWorlds/teeworlds.zip/download"
|
||||
AppDataDownloadUrl="Game data|teeworlds.zip"
|
||||
VideoDepthBpp=16
|
||||
NeedDepthBuffer=n
|
||||
NeedStencilBuffer=n
|
||||
@@ -14,6 +14,8 @@ SwVideoMode=n
|
||||
SdlVideoResize=n
|
||||
SdlVideoResizeKeepAspect=n
|
||||
CompatibilityHacks=n
|
||||
CompatibilityHacksStaticInit=n
|
||||
CompatibilityHacksTextInputEmulatesHwKeyboard=n
|
||||
AppUsesMouse=y
|
||||
AppNeedsTwoButtonMouse=y
|
||||
ShowMouseCursor=n
|
||||
@@ -29,12 +31,13 @@ AppTouchscreenKeyboardKeysAmount=6
|
||||
AppTouchscreenKeyboardKeysAmountAutoFire=0
|
||||
RedefinedKeysScreenKb="SPACE RETURN LEFT RIGHT RSHIFT LSHIFT"
|
||||
StartupMenuButtonTimeout=3000
|
||||
HiddenMenuOptions=''
|
||||
HiddenMenuOptions='OptionalDownloadConfig DisplaySizeConfig'
|
||||
FirstStartMenuOptions=''
|
||||
MultiABI=y
|
||||
AppVersionCode=5207
|
||||
AppVersionName="0.5.2.07"
|
||||
ResetSdlConfigForThisVersion=n
|
||||
DeleteFilesOnUpgrade="%"
|
||||
CompiledLibraries="sdl_image freetype"
|
||||
CustomBuildScript=n
|
||||
AppCflags='-O3'
|
||||
|
||||
BIN
project/jni/application/teeworlds/AndroidData/teeworlds.zip
Normal file
BIN
project/jni/application/teeworlds/AndroidData/teeworlds.zip
Normal file
Binary file not shown.
@@ -2,6 +2,7 @@
|
||||
#define GAME_SERVER_ENTITY_H
|
||||
|
||||
#include <new>
|
||||
#include <cstddef>
|
||||
#include <base/vmath.hpp>
|
||||
|
||||
#define MACRO_ALLOC_HEAP() \
|
||||
|
||||
Reference in New Issue
Block a user