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