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