Fixes for TeeWorlds compilation
This commit is contained in:
@@ -923,17 +923,14 @@ mkdir -p project/assets
|
|||||||
rm -f project/assets/*
|
rm -f project/assets/*
|
||||||
if [ -d "project/jni/application/src/AndroidData" ] ; then
|
if [ -d "project/jni/application/src/AndroidData" ] ; then
|
||||||
echo Copying asset files
|
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/
|
cp project/jni/application/src/AndroidData/* project/assets/
|
||||||
ln -s ../libs/armeabi/stdout-test 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
|
fi
|
||||||
|
|
||||||
echo Done
|
echo Done
|
||||||
|
|||||||
@@ -20,8 +20,8 @@ AppUsesMouse=y
|
|||||||
AppNeedsTwoButtonMouse=n
|
AppNeedsTwoButtonMouse=n
|
||||||
ShowMouseCursor=n
|
ShowMouseCursor=n
|
||||||
ForceRelativeMouseMode=n
|
ForceRelativeMouseMode=n
|
||||||
AppNeedsArrowKeys=n
|
AppNeedsArrowKeys=y
|
||||||
AppNeedsTextInput=n
|
AppNeedsTextInput=y
|
||||||
AppUsesJoystick=n
|
AppUsesJoystick=n
|
||||||
AppHandlesJoystickSensitivity=n
|
AppHandlesJoystickSensitivity=n
|
||||||
AppUsesMultitouch=y
|
AppUsesMultitouch=y
|
||||||
@@ -34,11 +34,11 @@ StartupMenuButtonTimeout=3000
|
|||||||
HiddenMenuOptions='OptionalDownloadConfig DisplaySizeConfig'
|
HiddenMenuOptions='OptionalDownloadConfig DisplaySizeConfig'
|
||||||
FirstStartMenuOptions=''
|
FirstStartMenuOptions=''
|
||||||
MultiABI=n
|
MultiABI=n
|
||||||
AppVersionCode=101
|
AppVersionCode=08801
|
||||||
AppVersionName="1.01"
|
AppVersionName="0.8.8.01"
|
||||||
ResetSdlConfigForThisVersion=n
|
ResetSdlConfigForThisVersion=n
|
||||||
DeleteFilesOnUpgrade="%"
|
DeleteFilesOnUpgrade="%"
|
||||||
CompiledLibraries="sdl_mixer sdl_image freetype curl"
|
CompiledLibraries="sdl_mixer sdl_image freetype curl vorbis ogg"
|
||||||
CustomBuildScript=y
|
CustomBuildScript=y
|
||||||
AppCflags='-O2 -finline-functions'
|
AppCflags='-O2 -finline-functions'
|
||||||
AppLdflags=''
|
AppLdflags=''
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ LOCAL_PATH=`cd $LOCAL_PATH && pwd`
|
|||||||
|
|
||||||
../setEnvironment.sh make -j8 -C engine \
|
../setEnvironment.sh make -j8 -C engine \
|
||||||
PLATFORM=android ARCH=arm USE_GLES=1 USE_LOCAL_HEADERS=0 \
|
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_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 HAVE_VM_COMPILED=1 &&
|
USE_RENDERER_DLOPEN=0 USE_INTERNAL_ZLIB=0 USE_INTERNAL_JPEG=1 &&
|
||||||
mv -f engine/build/release-android-arm/openarena.arm libapplication.so
|
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
|
AppFullName=com.teeworlds
|
||||||
ScreenOrientation=h
|
ScreenOrientation=h
|
||||||
InhibitSuspend=n
|
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
|
VideoDepthBpp=16
|
||||||
NeedDepthBuffer=n
|
NeedDepthBuffer=n
|
||||||
NeedStencilBuffer=n
|
NeedStencilBuffer=n
|
||||||
@@ -14,6 +14,8 @@ SwVideoMode=n
|
|||||||
SdlVideoResize=n
|
SdlVideoResize=n
|
||||||
SdlVideoResizeKeepAspect=n
|
SdlVideoResizeKeepAspect=n
|
||||||
CompatibilityHacks=n
|
CompatibilityHacks=n
|
||||||
|
CompatibilityHacksStaticInit=n
|
||||||
|
CompatibilityHacksTextInputEmulatesHwKeyboard=n
|
||||||
AppUsesMouse=y
|
AppUsesMouse=y
|
||||||
AppNeedsTwoButtonMouse=y
|
AppNeedsTwoButtonMouse=y
|
||||||
ShowMouseCursor=n
|
ShowMouseCursor=n
|
||||||
@@ -29,12 +31,13 @@ AppTouchscreenKeyboardKeysAmount=6
|
|||||||
AppTouchscreenKeyboardKeysAmountAutoFire=0
|
AppTouchscreenKeyboardKeysAmountAutoFire=0
|
||||||
RedefinedKeysScreenKb="SPACE RETURN LEFT RIGHT RSHIFT LSHIFT"
|
RedefinedKeysScreenKb="SPACE RETURN LEFT RIGHT RSHIFT LSHIFT"
|
||||||
StartupMenuButtonTimeout=3000
|
StartupMenuButtonTimeout=3000
|
||||||
HiddenMenuOptions=''
|
HiddenMenuOptions='OptionalDownloadConfig DisplaySizeConfig'
|
||||||
FirstStartMenuOptions=''
|
FirstStartMenuOptions=''
|
||||||
MultiABI=y
|
MultiABI=y
|
||||||
AppVersionCode=5207
|
AppVersionCode=5207
|
||||||
AppVersionName="0.5.2.07"
|
AppVersionName="0.5.2.07"
|
||||||
ResetSdlConfigForThisVersion=n
|
ResetSdlConfigForThisVersion=n
|
||||||
|
DeleteFilesOnUpgrade="%"
|
||||||
CompiledLibraries="sdl_image freetype"
|
CompiledLibraries="sdl_image freetype"
|
||||||
CustomBuildScript=n
|
CustomBuildScript=n
|
||||||
AppCflags='-O3'
|
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
|
#define GAME_SERVER_ENTITY_H
|
||||||
|
|
||||||
#include <new>
|
#include <new>
|
||||||
|
#include <cstddef>
|
||||||
#include <base/vmath.hpp>
|
#include <base/vmath.hpp>
|
||||||
|
|
||||||
#define MACRO_ALLOC_HEAP() \
|
#define MACRO_ALLOC_HEAP() \
|
||||||
|
|||||||
Reference in New Issue
Block a user