]> git.saurik.com Git - wxWidgets.git/blob - wxPython/b.win32
removed duplicate entries for UTF-16/32 (which are aliases for either LE or BE varian...
[wxWidgets.git] / wxPython / b.win32
1 #!/bin/bash
2 # ----------------------------------------------------------------------
3
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
10 fi
11
12
13 # Use non-default python?
14 case $1 in
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 ;;
19
20 *) VER=24
21 esac
22
23 PYTHON=$TOOLS/python$VER/python.exe
24
25 SETUP="$PYTHON -u setup.py"
26 $PYTHON -c "import sys;print '\n', sys.version, '\n'"
27
28
29 FLAGS="USE_SWIG=1 SWIG=$SWIGDIR\\swig.exe"
30 UNIFLAG="UNICODE=1"
31
32 for p in $*; do
33 if [ "$p" = "UNICODE=0" -o "$p" = "UNICODE=1" ]; then
34 UNIFLAG=""
35 break
36 fi
37 done
38
39 FLAGS="$FLAGS $UNIFLAG"
40
41
42
43
44
45
46 # "c" --> clean
47 if [ "$1" = "c" ]; then
48 shift
49 CMD="$SETUP $FLAGS clean $@"
50 OTHERCMD="rm wx/*.pyd"
51
52 # just remove the *.pyd's
53 elif [ "$1" = "d" ]; then
54 shift
55 CMD="rm wx/*.pyd"
56
57 # touch all the *.i files so swig will regenerate
58 elif [ "$1" = "t" ]; then
59 shift
60 CMD=
61 find . -name "*.i" | xargs -l touch
62
63 # "i" --> install
64 elif [ "$1" = "i" ]; then
65 shift
66 CMD="$SETUP build install"
67
68 # "r" --> make installer
69 elif [ "$1" = "r" ]; then
70 shift
71 CMD="$PYTHON -u distrib\make_installer.py $@"
72
73 # "s" --> source dist
74 elif [ "$1" = "s" ]; then
75 shift
76 CMD="$SETUP sdist"
77
78 # "f" --> FINAL
79 elif [ "$1" == "f" ]; then
80 shift
81 CMD="$SETUP $FLAGS FINAL=1 build_ext --inplace $@"
82
83 # "h" --> HYBRID
84 elif [ "$1" = "h" ]; then
85 shift
86 CMD="$SETUP $FLAGS HYBRID=1 build_ext --inplace $@"
87
88 # "a" --> make all installers
89 elif [ "$1" = "a" ]; then
90 shift
91 CMD=
92
93 # $0 22 d
94 # $0 22 h
95 # $0 22 r
96 # $0 22 d UNICODE=1
97 # $0 22 h UNICODE=1
98 # $0 22 r UNICODE=1
99
100 $0 23 d
101 $0 23 h
102 $0 23 r
103 $0 23 d UNICODE=1
104 $0 23 h UNICODE=1
105 $0 23 r UNICODE=1
106
107
108 # "b" --> both debug and hybrid builds
109 elif [ "$1" = "b" ]; then
110 shift
111 CMD="echo Finished!"
112 $0 $VER $@
113 $0 $VER h $@
114
115 # (no command arg) --> normal debug build for development
116 else
117 CMD="$SETUP $FLAGS HYBRID=0 build_ext --inplace --debug $@"
118 fi
119
120
121
122 if [ "$CMD" != "" ]; then
123 echo $CMD
124 $CMD
125 fi
126
127 if [ "$OTHERCMD" != "" ]; then
128 echo $OTHERCMD
129 $OTHERCMD
130 fi
131