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