]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/b.win32
2 # ----------------------------------------------------------------------
4 # To Robin: I tried to avoid making any changes to the existing
5 # build scripts, but my env requires me to specify Windows paths...
6 # if this breaks something at your end, let me know and we can
7 # figure out some solution for both of us.
8 if [ "$SWIGDIR" = "" ]; then
9 SWIGDIR
=$PROJECTS\\SWIG
-1.3
.27
13 # Use non-default python?
15 21 | 2.1) VER
=21; shift ;;
16 22 | 2.2) VER
=22; shift ;;
17 23 | 2.3) VER
=23; shift ;;
18 24 | 2.4) VER
=24; shift ;;
23 PYTHON
=$TOOLS/python
$VER/python.exe
25 SETUP
="$PYTHON -u setup.py"
26 $PYTHON -c "import sys;print '\n', sys.version, '\n'"
29 FLAGS
="USE_SWIG=1 SWIG=$SWIGDIR\\swig.exe"
33 if [ "$p" = "UNICODE=0" -o "$p" = "UNICODE=1" ]; then
39 FLAGS
="$FLAGS $UNIFLAG"
47 if [ "$1" = "c" ]; then
49 CMD
="$SETUP $FLAGS clean $@"
50 OTHERCMD
="rm wx/*.pyd"
52 # just remove the *.pyd's
53 elif [ "$1" = "d" ]; then
57 # touch all the *.i files so swig will regenerate
58 elif [ "$1" = "t" ]; then
61 find .
-name "*.i" | xargs -l touch
64 elif [ "$1" = "i" ]; then
66 CMD
="$SETUP build install"
68 # "r" --> make installer
69 elif [ "$1" = "r" ]; then
71 CMD
="$PYTHON -u distrib\make_installer.py $@"
74 elif [ "$1" = "s" ]; then
79 elif [ "$1" == "f" ]; then
81 CMD
="$SETUP $FLAGS FINAL=1 build_ext --inplace $@"
84 elif [ "$1" = "h" ]; then
86 CMD
="$SETUP $FLAGS HYBRID=1 build_ext --inplace $@"
88 # "a" --> make all installers
89 elif [ "$1" = "a" ]; then
108 # "b" --> both debug and hybrid builds
109 elif [ "$1" = "b" ]; then
115 # (no command arg) --> normal debug build for development
117 CMD
="$SETUP $FLAGS HYBRID=0 build_ext --inplace --debug $@"
122 if [ "$CMD" != "" ]; then
127 if [ "$OTHERCMD" != "" ]; then