Ninslash: updated build scripts
This commit is contained in:
@@ -7,10 +7,10 @@ AppName="Ninslash"
|
||||
AppFullName=ninslash.com
|
||||
|
||||
# Application version code (integer)
|
||||
AppVersionCode=01806
|
||||
AppVersionCode=01908
|
||||
|
||||
# Application user-visible version name (string)
|
||||
AppVersionName="0.1.8.06 pre-alpha early access"
|
||||
AppVersionName="0.1.9.08 pre-alpha early access"
|
||||
|
||||
# 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
|
||||
|
||||
@@ -31,26 +31,24 @@ for ARCH in armeabi-v7a x86; do
|
||||
find `cat ../server-sources.txt` -cnewer ../AndroidData/binaries-$ARCH.zip | \
|
||||
[ `wc -c` -eq 0 ] && continue
|
||||
rm -rf ninslash_srv
|
||||
mkdir -p objs
|
||||
mkdir -p objs-srv-$ARCH bin/$ARCH
|
||||
# server-sources.txt generated by running bam server_release 2>&1 | tee build.log
|
||||
# and parsing logs with grep -o ' [^ ]*[.]cp\?p\?' build.log | grep -v /zlib/ > ../server-sources.txt
|
||||
echo "Building teeworlds_srv for $ARCH"
|
||||
env BUILD_EXECUTABLE=1 NO_SHARED_LIBS=1 ../../setEnvironment-$ARCH.sh \
|
||||
env BUILD_EXECUTABLE=1 NO_SHARED_LIBS=1 ARCH=$ARCH ../../setEnvironment-$ARCH.sh \
|
||||
sh -c '
|
||||
set -x
|
||||
OBJS=
|
||||
for F in `cat ../server-sources.txt`; do
|
||||
dirname objs/$F.o | xargs mkdir -p
|
||||
dirname objs-srv-$ARCH/$F.o | xargs mkdir -p
|
||||
echo $F
|
||||
OBJS="$OBJS objs/$F.o"
|
||||
$CXX $CFLAGS -fno-exceptions -fno-rtti --std=c++11 -flto -Wall -DCONF_RELEASE -I src -c $F -o objs/$F.o || exit 1
|
||||
OBJS="$OBJS objs-srv-$ARCH/$F.o"
|
||||
$CXX $CFLAGS -fno-exceptions -fno-rtti --std=c++11 -flto -Wall -DCONF_RELEASE -I src -c $F -o objs-srv-$ARCH/$F.o || exit 1
|
||||
done
|
||||
echo Linking ninslash_srv
|
||||
$CXX $CFLAGS -fno-exceptions -fno-rtti $OBJS $LDFLAGS -pie -flto -pthread -o ninslash_srv || exit 1
|
||||
$STRIP --strip-unneeded ninslash_srv
|
||||
$CXX $CFLAGS -fno-exceptions -fno-rtti $OBJS $LDFLAGS -pie -flto -pthread -o bin/$ARCH/ninslash_srv || exit 1
|
||||
$STRIP --strip-unneeded bin/$ARCH/ninslash_srv
|
||||
' || exit 1
|
||||
mkdir -p bin/$ARCH
|
||||
mv -f ninslash_srv bin/$ARCH/
|
||||
cd bin/$ARCH
|
||||
zip ../../../AndroidData/binaries-$ARCH.zip *
|
||||
cd ../..
|
||||
|
||||
Reference in New Issue
Block a user