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