2004-06-14 23:36:44 -04:00
|
|
|
#!/bin/bash
|
2004-06-08 19:42:22 -04:00
|
|
|
|
2006-10-10 23:56:40 -04:00
|
|
|
# set -o xtrace
|
2004-06-08 19:42:22 -04:00
|
|
|
|
|
|
|
function error {
|
|
|
|
echo -----------------
|
|
|
|
echo -- ERROR! --
|
|
|
|
echo -----------------
|
|
|
|
exit $1
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$1" == "both" ]; then
|
|
|
|
shift
|
|
|
|
.make debug $@ && .make hybrid $@
|
|
|
|
exit $?
|
|
|
|
|
|
|
|
elif [ "$1" == "both-uni" ]; then
|
|
|
|
shift
|
|
|
|
.make debug-uni $@ && .make hybrid-uni $@
|
|
|
|
exit $?
|
|
|
|
|
|
|
|
elif [ "$1" == "both-hybrid" ]; then
|
|
|
|
shift
|
|
|
|
.make hybrid $@ && .make hybrid-uni $@
|
|
|
|
exit $?
|
|
|
|
|
|
|
|
elif [ "$1" == "all" ]; then
|
|
|
|
shift
|
|
|
|
.make debug $@ && \
|
|
|
|
.make hybrid $@ && \
|
|
|
|
.make debug-uni $@ && \
|
|
|
|
.make hybrid-uni $@
|
|
|
|
exit $?
|
|
|
|
|
|
|
|
elif [ "$1" == "debug" ]; then
|
|
|
|
BUILD_TYPE=$1
|
|
|
|
WXLIBDIR=mswd
|
|
|
|
shift
|
|
|
|
|
|
|
|
elif [ "$1" == "hybrid" ]; then
|
|
|
|
BUILD_TYPE=$1
|
|
|
|
WXLIBDIR=mswh
|
|
|
|
shift
|
|
|
|
|
|
|
|
elif [ "$1" == "release" ]; then
|
|
|
|
BUILD_TYPE=$1
|
|
|
|
WXLIBDIR=msw
|
|
|
|
shift
|
|
|
|
|
|
|
|
elif [ "$1" == "debug-uni" ]; then
|
|
|
|
BUILD_TYPE=$1
|
|
|
|
WXLIBDIR=mswud
|
|
|
|
shift
|
|
|
|
|
|
|
|
elif [ "$1" == "hybrid-uni" ]; then
|
|
|
|
BUILD_TYPE=$1
|
|
|
|
WXLIBDIR=mswuh
|
|
|
|
shift
|
|
|
|
|
|
|
|
elif [ "$1" == "release-uni" ]; then
|
|
|
|
BUILD_TYPE=$1
|
|
|
|
WXLIBDIR=mswu
|
|
|
|
shift
|
|
|
|
|
|
|
|
else
|
|
|
|
echo "Invalid build type: $1 options are"
|
|
|
|
echo " debug"
|
|
|
|
echo " hybrid"
|
|
|
|
echo " debug-uni"
|
|
|
|
echo " hybrid-uni"
|
|
|
|
echo " both"
|
|
|
|
echo " both-uni"
|
|
|
|
echo " both-hybrid"
|
|
|
|
echo " all"
|
|
|
|
echo " release"
|
|
|
|
echo " release-uni"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
echo ------------------
|
2004-09-30 19:20:20 -04:00
|
|
|
echo cd $WXWIN/build/msw
|
2004-06-08 19:42:22 -04:00
|
|
|
cd $WXWIN/build/msw
|
|
|
|
nmake -f .makesetup.mk $WXWIN/lib/vc_dll/$WXLIBDIR/wx/setup.h
|
2006-07-04 00:01:16 -04:00
|
|
|
if [ ! $? = 0 ]; then error 2; fi
|
2004-06-08 19:42:22 -04:00
|
|
|
|
|
|
|
echo ------------------
|
|
|
|
echo cd $WXWIN/build/msw
|
|
|
|
cd $WXWIN/build/msw
|
|
|
|
$WXWIN/build/msw/.mymake $BUILD_TYPE $@
|
2006-07-04 00:01:16 -04:00
|
|
|
if [ ! $? = 0 ]; then error 2; fi
|
2004-06-08 19:42:22 -04:00
|
|
|
|
|
|
|
|
|
|
|
echo ------------------
|
|
|
|
echo cd ../../contrib/build/gizmos
|
|
|
|
cd ../../contrib/build/gizmos
|
|
|
|
$WXWIN/build/msw/.mymake $BUILD_TYPE $@
|
2006-07-04 00:01:16 -04:00
|
|
|
if [ ! $? = 0 ]; then error 2; fi
|
2004-06-08 19:42:22 -04:00
|
|
|
cd -
|
|
|
|
|
|
|
|
|
2006-10-10 23:56:40 -04:00
|
|
|
# echo ------------------
|
|
|
|
# echo cd ../../contrib/build/animate
|
|
|
|
# cd ../../contrib/build/animate
|
|
|
|
# $WXWIN/build/msw/.mymake $BUILD_TYPE $@
|
|
|
|
# if [ ! $? = 0 ]; then error 2; fi
|
|
|
|
# cd -
|
2004-06-08 19:42:22 -04:00
|
|
|
|
|
|
|
|
|
|
|
echo ------------------
|
|
|
|
echo cd ../../contrib/build/stc
|
|
|
|
cd ../../contrib/build/stc
|
|
|
|
$WXWIN/build/msw/.mymake $BUILD_TYPE $@
|
2006-07-04 00:01:16 -04:00
|
|
|
if [ ! $? = 0 ]; then error 2; fi
|
2004-06-08 19:42:22 -04:00
|
|
|
cd -
|
|
|
|
|
|
|
|
|
2005-02-28 14:19:25 -05:00
|
|
|
# echo ------------------
|
|
|
|
# echo cd ../../contrib/build/ogl
|
|
|
|
# cd ../../contrib/build/ogl
|
|
|
|
# $WXWIN/build/msw/.mymake $BUILD_TYPE CPPFLAGS="-DwxUSE_DEPRECATED=0" $@
|
2006-07-04 00:01:16 -04:00
|
|
|
# if [ ! $? = 0 ]; then error 2; fi
|
2005-02-28 14:19:25 -05:00
|
|
|
# cd -
|
2004-06-08 19:42:22 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo -----------------
|
|
|
|
echo -- SUCCESS! --
|
|
|
|
echo -----------------
|
2004-09-30 19:20:20 -04:00
|
|
|
# copy DLLs to a dir on the PATH
|
|
|
|
# copy /U $WXWIN/lib/vc_dll/*.dll $WXWIN/BIN
|
|
|
|
# copy /U $WXWIN/lib/vc_dll/*.pdb $WXWIN/BIN
|
2004-06-08 19:42:22 -04:00
|
|
|
exit 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|