]> git.saurik.com Git - wxWidgets.git/blame - wxPython/b.bat
total wxBrush cleanup: made private stuff private, fixed data (un)sharing, create...
[wxWidgets.git] / wxPython / b.bat
CommitLineData
c368d904 1@echo off
bf705731
RD
2REM ----------------------------------------------------------------------
3REM Note: This is a 4NT script
4REM ----------------------------------------------------------------------
c368d904
RD
5setlocal
6
7set FLAGS=USE_SWIG=1 IN_CVS_TREE=1
8
9
10rem Use non-default python?
bf705731 11iff "%1" == "15" .or. "%1" == "20" .or. "%1" == "21" .or. "%1" == "22" then
4309b812 12 set VER=%1
c6b4bf32 13 set PYTHON=c:\tools\python%1%\python.exe
c368d904
RD
14 shift
15else
9416aa89
RD
16 beep
17 echo You must specify Python version as first parameter.
18 quit
c368d904 19endiff
c6b4bf32 20set SETUP=%PYTHON% -u setup.py
c368d904
RD
21
22
c6b4bf32
RD
23%PYTHON% -c "import sys;print '\n', sys.version, '\n'"
24
c368d904
RD
25
26rem "c" --> clean
27iff "%1" == "c" then
28 shift
29 set CMD=%SETUP% %FLAGS% clean
30 set OTHERCMD=del wxPython\*.pyd
31
32rem just remove the *.pyd's
33elseiff "%1" == "d" then
34 shift
35 set CMD=del wxPython\*.pyd
36
493f1553
RD
37rem touch all the *.i files so swig will regenerate
38elseiff "%1" == "t" then
39 shift
4268f798
RD
40 set CMD=echo Finished!
41 find . -name "*.i" | xargs -l touch
493f1553 42
c368d904
RD
43rem "i" --> install
44elseiff "%1" == "i" then
45 shift
46 set CMD=%SETUP% build install
47
d7ec6564
RD
48rem "r" --> make installer
49elseiff "%1" == "r" then
50 shift
51 set CMD=%PYTHON% distrib\make_installer.py
52
c368d904
RD
53rem "s" --> source dist
54elseiff "%1" == "s" then
55 shift
56 set CMD=%SETUP sdist
57
58rem "f" --> FINAL
59elseiff "%1" == "f" then
60 shift
61 set CMD=%SETUP% %FLAGS% FINAL=1 build_ext --inplace %1 %2 %3 %4 %5 %6 %7 %8 %9
62
de20db99
RD
63rem "h" --> HYBRID
64elseiff "%1" == "h" then
65 shift
66 set CMD=%SETUP% %FLAGS% HYBRID=1 build_ext --inplace %1 %2 %3 %4 %5 %6 %7 %8 %9
67
25832b3f
RD
68rem "a" --> make all installers
69elseiff "%1" == "a" then
70 shift
71 set CMD=echo Finished!
25832b3f 72
c5e8ed23
RD
73 call b.bat 15 c
74 call b.bat 15 f
293a0a86
RD
75 cd demo
76 p15 encode_bitmaps.py
77 cd -
c5e8ed23
RD
78 call b.bat 15 r
79 call b.bat 15 c
80 call b.bat 15 h
81 call b.bat 15 r
82
25832b3f
RD
83 call b.bat 21 c
84 call b.bat 21 f
85 call b.bat 21 r
86 call b.bat 21 c
87 call b.bat 21 h
88 call b.bat 21 r
89
4309b812
RD
90 call b.bat 22 c
91 call b.bat 22 f
92 call b.bat 22 r
93 call b.bat 22 c
94 call b.bat 22 h
95 call b.bat 22 r
bf705731
RD
96
97
4309b812
RD
98rem "b" --> both debug and hybrid builds
99elseiff "%1" == "b" then
100 shift
101 set CMD=echo Finished!
102 call b.bat %VER% h
103 call b.bat %VER%
25832b3f 104
c368d904
RD
105rem (no command arg) --> normal build for development
106else
de20db99 107 set CMD=%SETUP% %FLAGS% HYBRID=0 build_ext --inplace --debug %1 %2 %3 %4 %5 %6 %7 %8 %9
c368d904
RD
108endiff
109
110
111
112echo %CMD%
113%CMD%
114
115iff "%OTHERCMD%" != "" then
185d7c3e 116 echo %OTHERCMD%
c368d904
RD
117 %OTHERCMD%
118endiff
119