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