]> git.saurik.com Git - wxWidgets.git/blob - wxPython/b.bat
standardize configure flags in RPMs
[wxWidgets.git] / wxPython / b.bat
1 @echo off
2 REM ----------------------------------------------------------------------
3 REM Note: This is a 4NT script
4 REM ----------------------------------------------------------------------
5 call wxset.btm
6 setlocal
7
8 set FLAGS=USE_SWIG=1 IN_CVS_TREE=1
9
10
11 rem Use non-default python?
12 iff "%1" == "15" .or. "%1" == "20" .or. "%1" == "21" .or. "%1" == "22" .or. "%1" == "23" then
13 set VER=%1
14 set PYTHON=%TOOLS%\python%1%\python.exe
15 shift
16 else
17 beep
18 echo You must specify Python version as first parameter.
19 quit
20 endiff
21 set SETUP=%PYTHON% -u setup.py
22
23
24 %PYTHON% -c "import sys;print '\n', sys.version, '\n'"
25
26
27 rem "c" --> clean
28 iff "%1" == "c" then
29 shift
30 set CMD=%SETUP% %FLAGS% clean %1 %2 %3 %4 %5 %6 %7 %8 %9
31 set OTHERCMD=del wxPython\*.pyd
32
33 rem just remove the *.pyd's
34 elseiff "%1" == "d" then
35 shift
36 set CMD=del wxPython\*.pyd
37 set OTHERCMD=del wxPython\*.pdb
38
39 rem touch all the *.i files so swig will regenerate
40 elseiff "%1" == "t" then
41 shift
42 set CMD=echo Finished!
43 find . -name "*.i" | xargs -l touch
44
45 rem "i" --> install
46 elseiff "%1" == "i" then
47 shift
48 set CMD=%SETUP% build install
49
50 rem "r" --> make installer
51 elseiff "%1" == "r" then
52 shift
53 set CMD=%PYTHON% distrib\make_installer.py %1 %2 %3 %4 %5 %6 %7 %8 %9
54
55 rem "s" --> source dist
56 elseiff "%1" == "s" then
57 shift
58 set CMD=%SETUP sdist
59
60 rem "f" --> FINAL
61 elseiff "%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
65 rem "h" --> HYBRID
66 elseiff "%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
70 rem "a" --> make all installers
71 elseiff "%1" == "a" then
72 shift
73 set CMD=echo Finished!
74
75 call b.bat 22 d
76 call b.bat 22 h
77 call b.bat 22 r
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
88
89
90 rem "b" --> both debug and hybrid builds
91 elseiff "%1" == "b" then
92 shift
93 set CMD=echo Finished!
94 call b.bat %VER% %1 %2 %3 %4 %5 %6 %7 %8 %9
95 call b.bat %VER% h %1 %2 %3 %4 %5 %6 %7 %8 %9
96
97 rem (no command arg) --> normal build for development
98 else
99 set CMD=%SETUP% %FLAGS% HYBRID=0 build_ext --inplace --debug %1 %2 %3 %4 %5 %6 %7 %8 %9
100 endiff
101
102
103
104 echo %CMD%
105 %CMD%
106
107 iff "%OTHERCMD%" != "" then
108 echo %OTHERCMD%
109 %OTHERCMD%
110 endiff
111