]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/b.win32
2 # ----------------------------------------------------------------------
4 if [ "$SWIGDIR" = "" ]; then
5 SWIGDIR
=$PROJECTS\\SWIG
-1.3
.29
9 # Use non-default python?
11 21 | 2.1) VER
=21; shift ;;
12 22 | 2.2) VER
=22; shift ;;
13 23 | 2.3) VER
=23; shift ;;
14 24 | 2.4) VER
=24; shift ;;
15 25 | 2.5) VER
=25; shift ;;
20 PYTHON
=$TOOLS/python
$VER/python.exe
22 SETUP
="$PYTHON -u setup.py"
23 $PYTHON -c "import sys;print '\n', sys.version, '\n'"
26 FLAGS
="USE_SWIG=1 SWIG=$SWIGDIR\\swig.exe"
30 if [ "$p" = "UNICODE=0" -o "$p" = "UNICODE=1" ]; then
36 FLAGS
="$FLAGS $UNIFLAG"
44 if [ "$1" = "c" ]; then
46 CMD
="$SETUP $FLAGS clean $@"
47 OTHERCMD
="rm wx/*.pyd"
49 # just remove the *.pyd's
50 elif [ "$1" = "d" ]; then
54 # touch all the *.i files so swig will regenerate
55 elif [ "$1" = "t" ]; then
58 find .
-name "*.i" | xargs -l touch
61 elif [ "$1" = "i" ]; then
63 CMD
="$SETUP build install"
65 # "r" --> make installer
66 elif [ "$1" = "r" ]; then
68 CMD
="$PYTHON -u distrib\make_installer.py $@"
71 elif [ "$1" = "s" ]; then
76 elif [ "$1" == "f" ]; then
78 CMD
="$SETUP $FLAGS FINAL=1 build_ext --inplace $@"
81 elif [ "$1" = "h" ]; then
83 CMD
="$SETUP $FLAGS HYBRID=1 build_ext --inplace $@"
85 # "a" --> make all installers
86 elif [ "$1" = "a" ]; then
105 # "b" --> both debug and hybrid builds
106 elif [ "$1" = "b" ]; then
112 # (no command arg) --> normal debug build for development
114 CMD
="$SETUP $FLAGS HYBRID=0 build_ext --inplace --debug $@"
119 if [ "$CMD" != "" ]; then
124 if [ "$OTHERCMD" != "" ]; then