]> git.saurik.com Git - wxWidgets.git/blame - wxPython/b.bat
Problem fixed, removed comments about it
[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
d14a1e28 8set FLAGS=USE_SWIG=1 SWIG=e:/projects/SWIG-cvs/swig.exe
c368d904
RD
9
10rem Use non-default python?
1e4a197e 11iff "%1" == "15" .or. "%1" == "20" .or. "%1" == "21" .or. "%1" == "22" .or. "%1" == "23" then
4309b812 12 set VER=%1
0815db26 13 set PYTHON=%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
b96c7a38 29 set CMD=%SETUP% %FLAGS% clean %1 %2 %3 %4 %5 %6 %7 %8 %9
d14a1e28 30 set OTHERCMD=del wx\*.pyd
c368d904
RD
31
32rem just remove the *.pyd's
33elseiff "%1" == "d" then
34 shift
d14a1e28
RD
35 set CMD=del wx\*.pyd
36 set OTHERCMD=del wx\*.pdb
c368d904 37
493f1553
RD
38rem touch all the *.i files so swig will regenerate
39elseiff "%1" == "t" then
40 shift
4268f798
RD
41 set CMD=echo Finished!
42 find . -name "*.i" | xargs -l touch
493f1553 43
c368d904
RD
44rem "i" --> install
45elseiff "%1" == "i" then
46 shift
47 set CMD=%SETUP% build install
48
d7ec6564
RD
49rem "r" --> make installer
50elseiff "%1" == "r" then
51 shift
b86cccf1 52 set CMD=%PYTHON% -u distrib\make_installer.py %1 %2 %3 %4 %5 %6 %7 %8 %9
d7ec6564 53
c368d904
RD
54rem "s" --> source dist
55elseiff "%1" == "s" then
56 shift
57 set CMD=%SETUP sdist
58
59rem "f" --> FINAL
60elseiff "%1" == "f" then
61 shift
62 set CMD=%SETUP% %FLAGS% FINAL=1 build_ext --inplace %1 %2 %3 %4 %5 %6 %7 %8 %9
63
de20db99
RD
64rem "h" --> HYBRID
65elseiff "%1" == "h" then
66 shift
67 set CMD=%SETUP% %FLAGS% HYBRID=1 build_ext --inplace %1 %2 %3 %4 %5 %6 %7 %8 %9
68
25832b3f
RD
69rem "a" --> make all installers
70elseiff "%1" == "a" then
71 shift
72 set CMD=echo Finished!
25832b3f 73
1e4a197e 74 call b.bat 22 d
4309b812
RD
75 call b.bat 22 h
76 call b.bat 22 r
1e4a197e
RD
77 call b.bat 22 d UNICODE=1
78 call b.bat 22 h UNICODE=1
79 call b.bat 22 r UNICODE=1
80
81 call b.bat 23 d
82 call b.bat 23 h
83 call b.bat 23 r
84 call b.bat 23 d UNICODE=1
85 call b.bat 23 h UNICODE=1
86 call b.bat 23 r UNICODE=1
bf705731
RD
87
88
4309b812
RD
89rem "b" --> both debug and hybrid builds
90elseiff "%1" == "b" then
91 shift
92 set CMD=echo Finished!
355a2516 93 call b.bat %VER% %1 %2 %3 %4 %5 %6 %7 %8 %9
f114b858 94 call b.bat %VER% h %1 %2 %3 %4 %5 %6 %7 %8 %9
25832b3f 95
c368d904
RD
96rem (no command arg) --> normal build for development
97else
de20db99 98 set CMD=%SETUP% %FLAGS% HYBRID=0 build_ext --inplace --debug %1 %2 %3 %4 %5 %6 %7 %8 %9
c368d904
RD
99endiff
100
101
102
103echo %CMD%
104%CMD%
105
106iff "%OTHERCMD%" != "" then
185d7c3e 107 echo %OTHERCMD%
c368d904
RD
108 %OTHERCMD%
109endiff
110