]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/b.bat
fix text scrolling in GTK2 (patch 703988)
[wxWidgets.git] / wxPython / b.bat
... / ...
CommitLineData
1@echo off
2REM ----------------------------------------------------------------------
3REM Note: This is a 4NT script
4REM ----------------------------------------------------------------------
5call wxset.btm
6setlocal
7
8set FLAGS=USE_SWIG=1 IN_CVS_TREE=1
9
10
11rem Use non-default python?
12iff "%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
16else
17 beep
18 echo You must specify Python version as first parameter.
19 quit
20endiff
21set SETUP=%PYTHON% -u setup.py
22
23
24%PYTHON% -c "import sys;print '\n', sys.version, '\n'"
25
26
27rem "c" --> clean
28iff "%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
33rem just remove the *.pyd's
34elseiff "%1" == "d" then
35 shift
36 set CMD=del wxPython\*.pyd
37 set OTHERCMD=del wxPython\*.pdb
38
39rem touch all the *.i files so swig will regenerate
40elseiff "%1" == "t" then
41 shift
42 set CMD=echo Finished!
43 find . -name "*.i" | xargs -l touch
44
45rem "i" --> install
46elseiff "%1" == "i" then
47 shift
48 set CMD=%SETUP% build install
49
50rem "r" --> make installer
51elseiff "%1" == "r" then
52 shift
53 set CMD=%PYTHON% distrib\make_installer.py %1 %2 %3 %4 %5 %6 %7 %8 %9
54
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
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
70rem "a" --> make all installers
71elseiff "%1" == "a" then
72 shift
73 set CMD=echo Finished!
74
75 call b.bat 21 d
76 call b.bat 21 h
77 call b.bat 21 r
78 call b.bat 21 d UNICODE=1
79 call b.bat 21 h UNICODE=1
80 call b.bat 21 r UNICODE=1
81
82 call b.bat 22 d
83 call b.bat 22 h
84 call b.bat 22 r
85 call b.bat 22 d UNICODE=1
86 call b.bat 22 h UNICODE=1
87 call b.bat 22 r UNICODE=1
88
89 call b.bat 23 d
90 call b.bat 23 h
91 call b.bat 23 r
92 call b.bat 23 d UNICODE=1
93 call b.bat 23 h UNICODE=1
94 call b.bat 23 r UNICODE=1
95
96
97rem "b" --> both debug and hybrid builds
98elseiff "%1" == "b" then
99 shift
100 set CMD=echo Finished!
101 call b.bat %VER% %1 %2 %3 %4 %5 %6 %7 %8 %9
102 call b.bat %VER% h %1 %2 %3 %4 %5 %6 %7 %8 %9
103
104rem (no command arg) --> normal build for development
105else
106 set CMD=%SETUP% %FLAGS% HYBRID=0 build_ext --inplace --debug %1 %2 %3 %4 %5 %6 %7 %8 %9
107endiff
108
109
110
111echo %CMD%
112%CMD%
113
114iff "%OTHERCMD%" != "" then
115 echo %OTHERCMD%
116 %OTHERCMD%
117endiff
118