]>
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 ;;
19 PYTHON
=$TOOLS/python
$VER/python.exe
21 SETUP
="$PYTHON -u setup.py"
22 $PYTHON -c "import sys;print '\n', sys.version, '\n'"
25 FLAGS
="USE_SWIG=1 SWIG=$SWIGDIR\\swig.exe"
29 if [ "$p" = "UNICODE=0" -o "$p" = "UNICODE=1" ]; then
35 FLAGS
="$FLAGS $UNIFLAG"
43 if [ "$1" = "c" ]; then
45 CMD
="$SETUP $FLAGS clean $@"
46 OTHERCMD
="rm wx/*.pyd"
48 # just remove the *.pyd's
49 elif [ "$1" = "d" ]; then
53 # touch all the *.i files so swig will regenerate
54 elif [ "$1" = "t" ]; then
57 find .
-name "*.i" | xargs -l touch
60 elif [ "$1" = "i" ]; then
62 CMD
="$SETUP build install"
64 # "r" --> make installer
65 elif [ "$1" = "r" ]; then
67 CMD
="$PYTHON -u distrib\make_installer.py $@"
70 elif [ "$1" = "s" ]; then
75 elif [ "$1" == "f" ]; then
77 CMD
="$SETUP $FLAGS FINAL=1 build_ext --inplace $@"
80 elif [ "$1" = "h" ]; then
82 CMD
="$SETUP $FLAGS HYBRID=1 build_ext --inplace $@"
84 # "a" --> make all installers
85 elif [ "$1" = "a" ]; then
104 # "b" --> both debug and hybrid builds
105 elif [ "$1" = "b" ]; then
111 # (no command arg) --> normal debug build for development
113 CMD
="$SETUP $FLAGS HYBRID=0 build_ext --inplace --debug $@"
118 if [ "$CMD" != "" ]; then
123 if [ "$OTHERCMD" != "" ]; then