]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/distrib/build_packages.sh
8 if [ "$1" = "all" ]; then
19 unicode
) unicode
=yes ;;
24 if [ "$WXWIN" = "" ]; then
25 export WXWIN
=`pwd`/..
/..
28 if [ $all = yes ]; then
29 $WXWIN/wxPython
/distrib
/build_packages.sh
23
30 $WXWIN/wxPython
/distrib
/build_packages.sh
23 unicode
31 $WXWIN/wxPython
/distrib
/build_packages.sh
24
32 $WXWIN/wxPython
/distrib
/build_packages.sh
24 unicode
35 echo "wxWidgets directory is: $WXWIN"
37 if [ "$OSTYPE" = "cygwin" ]; then
38 # do setup of build environment vars
39 if [ "$TOOLS" = "" ]; then
40 export TOOLS
=`cygpath C:\\`
43 if [ "$SWIGDIR" = "" ]; then
44 export SWIGDIR
=$TOOLS/SWIG
-1.3
.24
49 if [ $debug = yes ]; then
52 if [ $unicode = yes ]; then
53 UNICODE_FLAG
="UNICODE=1"
56 # copy wxPython build scripts
57 cp $WXWIN/wxPython
/distrib
/msw
/.m
* $WXWIN/build
/msw
59 # setup wxPython defines
60 cp $WXWIN/include
/wx
/msw
/setup0.h
$WXWIN/include
/wx
/msw
/setup.h
61 $TOOLS/Python
$PY_VERSION/python
`cygpath -d $WXWIN/wxPython/distrib/create_setup.h.py` $UNICODE_FLAG
63 export PATH
=${PATH}:${WXWIN}/lib
/vc_dll
:${TOOLS}/Python
${PY_VERSION}
66 # remove old build files
69 if [ $unicode = yes ]; then
73 # make tools for docs creation, etc.
78 # update the language files
79 $TOOLS/Python
$PY_VERSION/python
`cygpath -d $WXWIN/wxPython/distrib/makemo.py`
80 rm -rf build build.unicode
83 # re-generate SWIG files
84 if [ $reswig = yes ]; then
85 $WXWIN/wxPython
/b
$PY_VERSION t
88 # build the hybrid extension
89 # NOTE: Win Python needs Windows-style pathnames, so we
91 export WXWIN
=`cygpath -w $WXWIN`
92 export SWIGDIR
=`cygpath -w $SWIGDIR`
94 $WXWIN/wxPython
/b
$PY_VERSION h
$DEBUG_FLAG $UNICODE_FLAG
96 # make the dev package
97 $WXWIN/wxPython
/distrib
/makedev
98 $WXWIN/wxPython
/distrib
/makedocs
99 $WXWIN/wxPython
/distrib
/makedemo
101 $TOOLS/Python
$PY_VERSION/python
`cygpath -d $WXWIN/wxPython/distrib/make_installer_inno4.py` $UNICODE_FLAG
102 elif [ "$OSTYPE" = "darwin" ]; then
103 OSX_VERSION
=`sw_vers -productVersion`
104 echo "OS X Version: ${OSX_VERSION:0:4}"
107 if [ ! -d dist
]; then
110 # re-generate SWIG files
112 if [ $reswig = yes ]; then
117 if [ "$PY_VERSION" = "24" ]; then
122 if [ $unicode = yes ]; then
126 # On Tiger, build Universal.
128 if [ ${OSX_VERSION:0:4} = "10.4" ]; then
132 #sudo $WXWIN/wxPython/distrib/makedocs
133 $WXWIN/wxPython
/distrib
/makedemo
134 export TARBALLDIR
=$WXWIN/wxPython
/dist
135 echo "distrib/mac/wxPythonOSX/build $PY_DOT_VER panther inplace $UNICODE_OPT $RESWIG"
137 distrib
/mac
/wxPythonOSX
/build
$PY_DOT_VER panther inplace
$UNICODE_OPT $RESWIG $UNIV_OPT
139 echo "OSTYPE $OSTYPE not yet supported by this build script."
142 # return to original dir
143 cd $WXWIN/wxPython
/distrib