Update script for static building purpose.

PLEASE update your script.
You only have to update the script (no compilation needed) and verify that your easyChams program points to this updated script.
This commit is contained in:
Damien Dupuis 2010-02-09 12:32:35 +00:00
parent c34902020c
commit dfbea2a6b2
1 changed files with 3 additions and 3 deletions

View File

@ -101,7 +101,7 @@ compile() {
fi fi
echo "#### Now compiling $TOOL ####" echo "#### Now compiling $TOOL ####"
echo "" echo ""
cmake -D "CMAKE_BUILD_TYPE:STRING=$MODE" -D "BUILD_DOC:STRING=$DOC" -D "BUILD_STATIC:STRING=$STATIC" $SOURCE/$TOOL cmake -D "CMAKE_BUILD_TYPE:STRING=$MODE" -D "BUILD_DOC:STRING=$DOC" -D "BUILD_SHARED_LIBS:STRING=$SHARED" $SOURCE/$TOOL
make "DESTDIR=$INSTALL" -j2 install make "DESTDIR=$INSTALL" -j2 install
if [ $? -ne 0 ] if [ $? -ne 0 ]
then then
@ -118,7 +118,7 @@ TOOLS=""
OSTYPE="" OSTYPE=""
MODE="" MODE=""
LIBMODE="Shared" LIBMODE="Shared"
STATIC="OFF" SHARED="ON"
DOC="OFF" DOC="OFF"
SVNUP=0 SVNUP=0
CLEAN=0 CLEAN=0
@ -136,7 +136,7 @@ do
t) TOOL=${OPTARG} t) TOOL=${OPTARG}
TOOLS="$TOOLS $TOOL";; TOOLS="$TOOLS $TOOL";;
m) MODE=${OPTARG};; m) MODE=${OPTARG};;
s) STATIC="ON" s) SHARED="OFF"
LIBMODE="Static";; LIBMODE="Static";;
d) DOC="ON";; d) DOC="ON";;
u) SVNUP=1;; u) SVNUP=1;;