Adding support for Player Bots submodule in installer. (#20)

This commit is contained in:
Warkdev 2017-05-28 23:16:24 +02:00 committed by Antz
parent 21de6d202c
commit 322b090d31

View File

@ -37,7 +37,7 @@ P_PGRESQL="0"
P_TOOLS="0"
P_SD3="1"
P_ELUNA="1"
P_BOTS="0"
# Function to test for dialog
@ -741,7 +741,8 @@ function GetBuildOptions()
5 "Build Client Tools" On \
6 "Use SD3" On \
7 "Use Eluna" On \
8 "Use SOAP" Off \
8 "Use SOAP" Off \
9 "Use Player Bots AI" Off \
3>&2 2>&1 1>&3)
if [ $? -ne 0 ]; then
@ -802,9 +803,15 @@ function GetBuildOptions()
if [[ $OPTIONS == *8* ]]; then
P_SOAP="1"
else
P_SOAP="0"
P_SOAP="0"
fi
if [[ $OPTIONS == *9* ]]; then
P_PBOTS="1"
else
P_PBOTS="0"
fi
# Verify that at least one scripting library is enabled
if [ $P_SD3 -eq 0 ] && [ $P_ELUNA -eq 0 ]; then
Log "Error: You must enable either SD3, Eluna, or both to build MaNGOS!" 1
@ -851,7 +858,7 @@ function BuildMaNGOS()
# Attempt to configure and build MaNGOS
Log "Building MaNGOS..." 0
cd "$SRCPATH/server/linux"
cmake .. -DDEBUG=$P_DEBUG -DUSE_STD_MALLOC=$P_STD_MALLOC -DACE_USE_EXTERNAL=$P_ACE_EXTERNAL -DPOSTGRESQL=$P_PGRESQL -DBUILD_TOOLS=$P_TOOLS -DSCRIPT_LIB_ELUNA=$P_ELUNA -DSCRIPT_LIB_SD3=$P_SD3 -DSOAP=$P_SOAP -DCMAKE_INSTALL_PREFIX="$INSTPATH"
cmake .. -DDEBUG=$P_DEBUG -DUSE_STD_MALLOC=$P_STD_MALLOC -DACE_USE_EXTERNAL=$P_ACE_EXTERNAL -DPOSTGRESQL=$P_PGRESQL -DBUILD_TOOLS=$P_TOOLS -DSCRIPT_LIB_ELUNA=$P_ELUNA -DSCRIPT_LIB_SD3=$P_SD3 -DSOAP=$P_SOAP -DPLAYERBOTS=$P_BOTS -DCMAKE_INSTALL_PREFIX="$INSTPATH"
make
# Check for an error