]>
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
-cvs
12 FLAGS
="USE_SWIG=1 SWIG=$SWIGDIR\\swig.exe"
14 # Use non-default python?
16 21 | 2.1) VER
=21; shift ;;
17 22 | 2.2) VER
=22; shift ;;
18 23 | 2.3) VER
=23; shift ;;
19 24 | 2.4) VER
=24; shift ;;
24 PYTHON
=$TOOLS/python
$VER/python.exe
26 SETUP
="$PYTHON -u setup.py"
27 $PYTHON -c "import sys;print '\n', sys.version, '\n'"
32 if [ "$1" = "c" ]; then
34 CMD
="$SETUP $FLAGS clean $@"
35 OTHERCMD
="rm wx/*.pyd"
37 # just remove the *.pyd's
38 elif [ "$1" = "d" ]; then
42 # touch all the *.i files so swig will regenerate
43 elif [ "$1" = "t" ]; then
46 find .
-name "*.i" | xargs -l touch
49 elif [ "$1" = "i" ]; then
51 CMD
="$SETUP build install"
53 # "r" --> make installer
54 elif [ "$1" = "r" ]; then
56 CMD
="$PYTHON -u distrib\make_installer.py $@"
59 elif [ "$1" = "s" ]; then
64 elif [ "$1" == "f" ]; then
66 CMD
="$SETUP $FLAGS FINAL=1 build_ext --inplace $@"
69 elif [ "$1" = "h" ]; then
71 CMD
="$SETUP $FLAGS HYBRID=1 build_ext --inplace $@"
73 # "a" --> make all installers
74 elif [ "$1" = "a" ]; then
93 # "b" --> both debug and hybrid builds
94 elif [ "$1" = "b" ]; then
100 # (no command arg) --> normal debug build for development
102 CMD
="$SETUP $FLAGS HYBRID=0 build_ext --inplace --debug $@"
107 if [ "$CMD" != "" ]; then
112 if [ "$OTHERCMD" != "" ]; then