]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/distrib/build_packages.sh
12 unicode
) unicode
=yes ;;
16 if [ "$WXWIN" = "" ]; then
17 export WXWIN
=`pwd`/..
/..
20 echo "wxWidgets directory is: $WXWIN"
22 if [ "$OSTYPE" = "cygwin" ]; then
23 # do setup of build environment vars
24 if [ "$TOOLS" = "" ]; then
25 export TOOLS
=`cygpath C:\\`
28 if [ "$SWIGDIR" = "" ]; then
29 export SWIGDIR
=$TOOLS/SWIG
-1.3
.24
34 if [ $debug = yes ]; then
37 if [ $unicode = yes ]; then
38 UNICODE_FLAG
="UNICODE=1"
41 # copy wxPython build scripts
42 cp $WXWIN/wxPython
/distrib
/msw
/.m
* $WXWIN/build
/msw
44 # setup wxPython defines
45 cp $WXWIN/include
/wx
/msw
/setup0.h
$WXWIN/include
/wx
/msw
/setup.h
46 $TOOLS/Python
$PY_VERSION/python
`cygpath -d $WXWIN/wxPython/distrib/create_setup.h.py` $UNICODE_FLAG
48 export PATH
=${PATH}:${WXWIN}/lib
/vc_dll
:${TOOLS}/Python
${PY_VERSION}
51 # remove old build files
54 if [ $unicode = yes ]; then
59 # make tools for docs creation, etc.
62 # update the language files
66 $TOOLS/Python
$PY_VERSION/python
`cygpath -d $WXWIN/wxPython/distrib/makemo.py`
70 rm -rf build build.unicode
73 # re-generate SWIG files
74 $WXWIN/wxPython
/b
$PY_VERSION t
76 # build the hybrid extension
77 # NOTE: Win Python needs Windows-style pathnames, so we
79 export WXWIN
=`cygpath -w $WXWIN`
80 export SWIGDIR
=`cygpath -w $SWIGDIR`
82 $WXWIN/wxPython
/b
$PY_VERSION h
$DEBUG_FLAG $UNICODE_FLAG
84 # make the dev package
85 $WXWIN/wxPython
/distrib
/makedev
87 $TOOLS/Python
$PY_VERSION/python
`cygpath -d $WXWIN/wxPython/distrib/make_installer_inno4.py` $UNICODE_FLAG
88 elif [ "$OSTYPE" = "darwin" ]; then
91 # re-generate SWIG files
92 $WXWIN/wxPython
/b
$PY_VERSION t
95 if [ "$PY_VERSION" = "24" ]; then
100 if [ $unicode = yes ]; then
104 sudo distrib
/mac
/wxPythonOSX
/build
$PY_DOT_VER panther inplace
$UNICODE_OPT
106 echo "OSTYPE $OSTYPE not yet supported by this build script."
109 # Now make the demo and docs tarballs
111 $WXWIN/wxPython
/distrib
/makedocs
112 $WXWIN/wxPython
/distrib
/makedemo