/
1-Build-Linux
41 lines (33 loc) · 883 Bytes
/
1-Build-Linux
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
CWD=$(pwd)
NPROC=$(nproc)
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
if [ "$ARCH" = "i486" ]; then
OSARCH=""
elif [ "$ARCH" = "i686" ]; then
OSARCH=""
elif [ "$ARCH" = "x86_64" ]; then
OSARCH="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
set -e
if [ -d $CWD/viewer-build-variables ]
then
export AUTOBUILD_VARIABLES_FILE=$CWD/viewer-build-variables/variables
else
hg clone https://bitbucket.org/kokua/viewer-build-variables &
wait
export AUTOBUILD_VARIABLES_FILE=$CWD/viewer-build-variables/variables
fi
autobuild configure -A $OSARCH -c ReleaseOS -- --platform linux$OSARCH -DLL_TESTS:BOOL=FALSE -DFMODEX:BOOL=ON -DOPENAL:BOOL=OFF -DVIEWER_CHANNEL="Kokua Test $OSARCH" &
wait
autobuild build -A $OSARCH --no-configure -c ReleaseOS -- -j$NPROC &
wait