Merge branch 'master' of github.com:htacg/tidy-html5

This commit is contained in:
Geoff McLane 2015-05-12 13:22:03 +02:00
commit 21ce85afe8

View file

@ -30,28 +30,31 @@ if [ -f "$BLDLOG" ]; then
rm -f $BLDLOG rm -f $BLDLOG
fi fi
BLDDBG=0
TMPOPTS="" TMPOPTS=""
############################################## ##############################################
### ***** NOTE THIS INSTALL LOCATION ***** ### ### ***** NOTE THIS INSTALL LOCATION ***** ###
### Change to suit your taste, environment ### ### Change to suit your taste, environment ###
##############################################
# TMPINST="$HOME/projects/install/tidy"
# TMPOPTS="-DCMAKE_INSTALL_PREFIX=$TMPINST"
#############################################
# To build SHARED library
TMPOPTS="$TMPOPTS -DBUILD_SHARED_LIB:BOOL=TRUE"
TMPINST="/usr" TMPINST="/usr"
TMPOPTS="$TMPOPTS -DCMAKE_INSTALL_PREFIX=$TMPINST" TMPOPTS="$TMPOPTS -DCMAKE_INSTALL_PREFIX=$TMPINST"
##############################################
### Accept user argument
for arg in $@; do for arg in $@; do
case $arg in case $arg in
VERBOSE) TMPOPTS="$TMPOPTS -DCMAKE_VERBOSE_MAKEFILE=ON" ;; VERBOSE) TMPOPTS="$TMPOPTS -DCMAKE_VERBOSE_MAKEFILE=ON" ;;
DEBUG) TMPOPTS="$TMPOPTS -DCMAKE_BUILD_TYPE=Debug -DENABLE_DEBUG_SYMBOLS:BOOL=TRUE" ;; DEBUG) BLDDBG=1 ;;
SHARED) TMPOPTS="$TMPOPTS -DBUILD_SHARED_LIB:BOOL=TRUE" ;; SHARED) TMPOPTS="$TMPOPTS -DBUILD_SHARED_LIB:BOOL=TRUE" ;;
*) TMPOPTS="$TMPOPTS $arg" ;; *) TMPOPTS="$TMPOPTS $arg" ;;
esac esac
done done
if [ "$BLDDBG" = "1" ]; then
TMPOPTS="$TMPOPTS -DCMAKE_BUILD_TYPE=Debug -DENABLE_DEBUG_SYMBOLS:BOOL=TRUE"
else
TMPOPTS="$TMPOPTS -DCMAKE_BUILD_TYPE=Release"
fi
echo "$BN: Will do: 'cmake $TMPSRC $TMPOPTS' to $BLDLOG" echo "$BN: Will do: 'cmake $TMPSRC $TMPOPTS' to $BLDLOG"
wait_for_input wait_for_input