Adding Reswig and Universal binary options to both build_packages.sh and the wxPythonOSX/build script.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37192 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Kevin Ollivier
2006-01-28 02:11:22 +00:00
parent 3110909fec
commit e61e59643e
2 changed files with 34 additions and 5 deletions

View File

@@ -100,14 +100,17 @@ if [ "$OSTYPE" = "cygwin" ]; then
$TOOLS/Python$PY_VERSION/python `cygpath -d $WXWIN/wxPython/distrib/make_installer_inno4.py` $UNICODE_FLAG
elif [ "$OSTYPE" = "darwin" ]; then
OSX_VERSION=`sw_vers -productVersion`
echo "OS X Version: ${OSX_VERSION:0:4}"
cd $WXWIN/wxPython
if [ ! -d dist ]; then
mkdir dist
fi
# re-generate SWIG files
RESWIG=
if [ $reswig = yes ]; then
$WXWIN/wxPython/b $PY_VERSION t
RESWIG=reswig
fi
PY_DOT_VER=2.3
@@ -120,11 +123,18 @@ elif [ "$OSTYPE" = "darwin" ]; then
UNICODE_OPT=unicode
fi
# On Tiger, build Universal.
UNIV_OPT=
if [ ${OSX_VERSION:0:4} = "10.4" ]; then
UNIV_OPT="universal"
fi
#sudo $WXWIN/wxPython/distrib/makedocs
$WXWIN/wxPython/distrib/makedemo
export TARBALLDIR=$WXWIN/wxPython/dist
echo "distrib/mac/wxPythonOSX/build $PY_DOT_VER panther inplace $UNICODE_OPT $RESWIG"
distrib/mac/wxPythonOSX/build $PY_DOT_VER panther inplace $UNICODE_OPT
distrib/mac/wxPythonOSX/build $PY_DOT_VER panther inplace $UNICODE_OPT $RESWIG $UNIV_OPT
else
echo "OSTYPE $OSTYPE not yet supported by this build script."
fi