]> git.saurik.com Git - wxWidgets.git/blob - wxPython/b.bat
refresh the window when the size changed
[wxWidgets.git] / wxPython / b.bat
1 @echo off
2 REM ----------------------------------------------------------------------
3 REM Note: This is a 4NT script
4 REM ----------------------------------------------------------------------
5 setlocal
6
7 set FLAGS=USE_SWIG=1 IN_CVS_TREE=1
8
9
10 rem Use non-default python?
11 iff "%1" == "15" .or. "%1" == "20" .or. "%1" == "21" .or. "%1" == "22" then
12 set PYTHON=c:\tools\python%1%\python.exe
13 shift
14 else
15 beep
16 echo You must specify Python version as first parameter.
17 quit
18 endiff
19 set SETUP=%PYTHON% -u setup.py
20
21
22 %PYTHON% -c "import sys;print '\n', sys.version, '\n'"
23
24
25 rem "c" --> clean
26 iff "%1" == "c" then
27 shift
28 set CMD=%SETUP% %FLAGS% clean
29 set OTHERCMD=del wxPython\*.pyd
30
31 rem just remove the *.pyd's
32 elseiff "%1" == "d" then
33 shift
34 set CMD=del wxPython\*.pyd
35
36 rem touch all the *.i files so swig will regenerate
37 elseiff "%1" == "t" then
38 shift
39 set CMD=touch src\*.i & touch contrib\glcanvas\*.i & touch contrib\ogl\*.i & touch contrib\stc\*.i
40
41 rem "i" --> install
42 elseiff "%1" == "i" then
43 shift
44 set CMD=%SETUP% build install
45
46 rem "r" --> make installer
47 elseiff "%1" == "r" then
48 shift
49 set CMD=%PYTHON% distrib\make_installer.py
50
51 rem "s" --> source dist
52 elseiff "%1" == "s" then
53 shift
54 set CMD=%SETUP sdist
55
56 rem "f" --> FINAL
57 elseiff "%1" == "f" then
58 shift
59 set CMD=%SETUP% %FLAGS% FINAL=1 build_ext --inplace %1 %2 %3 %4 %5 %6 %7 %8 %9
60
61 rem "h" --> HYBRID
62 elseiff "%1" == "h" then
63 shift
64 set CMD=%SETUP% %FLAGS% HYBRID=1 build_ext --inplace %1 %2 %3 %4 %5 %6 %7 %8 %9
65
66 rem "a" --> make all installers
67 elseiff "%1" == "a" then
68 shift
69 set CMD=echo Finished!
70 call b.bat 15 c
71 call b.bat 15 f
72 call b.bat 15 r
73 call b.bat 15 c
74 call b.bat 15 h
75 call b.bat 15 r
76
77 call b.bat 21 c
78 call b.bat 21 f
79 call b.bat 21 r
80 call b.bat 21 c
81 call b.bat 21 h
82 call b.bat 21 r
83
84 rem call b.bat 22 c
85 rem call b.bat 22 f
86 rem call b.bat 22 r
87 rem call b.bat 22 c
88 rem call b.bat 22 h
89 rem call b.bat 22 r
90
91
92
93 rem (no command arg) --> normal build for development
94 else
95 set CMD=%SETUP% %FLAGS% HYBRID=0 build_ext --inplace --debug %1 %2 %3 %4 %5 %6 %7 %8 %9
96 endiff
97
98
99
100 echo %CMD%
101 %CMD%
102
103 iff "%OTHERCMD%" != "" then
104 echo %OTHERCMD%
105 %OTHERCMD%
106 endiff
107