Ninslash: update build scripts
This commit is contained in:
@@ -7,10 +7,10 @@ AppName="Ninslash"
|
|||||||
AppFullName=ninslash.com
|
AppFullName=ninslash.com
|
||||||
|
|
||||||
# Application version code (integer)
|
# Application version code (integer)
|
||||||
AppVersionCode=01804
|
AppVersionCode=01805
|
||||||
|
|
||||||
# Application user-visible version name (string)
|
# Application user-visible version name (string)
|
||||||
AppVersionName="0.1.8.04 pre-alpha early access"
|
AppVersionName="0.1.8.05 pre-alpha early access"
|
||||||
|
|
||||||
# Specify path to download application data in zip archive in the form 'Description|URL|MirrorURL^Description2|URL2|MirrorURL2^...'
|
# Specify path to download application data in zip archive in the form 'Description|URL|MirrorURL^Description2|URL2|MirrorURL2^...'
|
||||||
# If you'll start Description with '!' symbol it will be enabled by default, other downloads should be selected by user from startup config menu
|
# If you'll start Description with '!' symbol it will be enabled by default, other downloads should be selected by user from startup config menu
|
||||||
@@ -257,13 +257,13 @@ CompiledLibraries="sdl_image freetype glu"
|
|||||||
CustomBuildScript=n
|
CustomBuildScript=n
|
||||||
|
|
||||||
# Aditional CFLAGS for application
|
# Aditional CFLAGS for application
|
||||||
AppCflags='-O2 -flto -Werror=format -isystem jni/application/src/src/src/base/android'
|
AppCflags='-O2 -Werror=format -isystem jni/application/src/src/src/base/android' # -flto
|
||||||
|
|
||||||
# Aditional C++-specific compiler flags for application, added after AppCflags
|
# Aditional C++-specific compiler flags for application, added after AppCflags
|
||||||
AppCppflags='-std=c++11'
|
AppCppflags='-std=c++11'
|
||||||
|
|
||||||
# Additional LDFLAGS for application
|
# Additional LDFLAGS for application
|
||||||
AppLdflags='-lEGL -flto'
|
AppLdflags='-lEGL' # -flto
|
||||||
|
|
||||||
# If application has headers with the same name as system headers, this option tries to fix compiler flags to make it compilable
|
# If application has headers with the same name as system headers, this option tries to fix compiler flags to make it compilable
|
||||||
AppOverlapsSystemHeaders=n
|
AppOverlapsSystemHeaders=n
|
||||||
|
|||||||
@@ -20,14 +20,16 @@ python datasrc/compile.py server_content_header > src/game/generated/server_data
|
|||||||
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
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
[ -n "`find data *.txt *.cfg -cnewer ../AndroidData/data.zip 2>&1`" ] && {
|
[ -n "`find data *.txt *.cfg 'example configs' -cnewer ../AndroidData/data.zip 2>&1`" ] && {
|
||||||
echo "Archiving data"
|
echo "Archiving data"
|
||||||
mkdir -p ../AndroidData
|
mkdir -p ../AndroidData
|
||||||
zip -r ../AndroidData/data.zip data *.txt *.cfg >/dev/null
|
zip -r ../AndroidData/data.zip data *.txt *.cfg "example configs" >/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
for ARCH in armeabi-v7a x86; do
|
for ARCH in armeabi-v7a x86; do
|
||||||
[ -e ../AndroidData/binaries-$ARCH.zip ] && continue
|
[ -e ../AndroidData/binaries-$ARCH.zip ] && \
|
||||||
|
find `cat ../server-sources.txt` -cnewer ../AndroidData/binaries-$ARCH.zip | \
|
||||||
|
[ `wc -c` -eq 0 ] && continue
|
||||||
rm -rf ninslash_srv
|
rm -rf ninslash_srv
|
||||||
mkdir -p objs
|
mkdir -p objs
|
||||||
# server-sources.txt generated by running bam server_release 2>&1 | tee build.log
|
# server-sources.txt generated by running bam server_release 2>&1 | tee build.log
|
||||||
|
|||||||
Reference in New Issue
Block a user