]> git.saurik.com Git - wxWidgets.git/blame - wxPython/b.bat
merged wxRegConf rename fix from 2.2
[wxWidgets.git] / wxPython / b.bat
CommitLineData
c368d904
RD
1@echo off
2setlocal
3
4set FLAGS=USE_SWIG=1 IN_CVS_TREE=1
5
6
7rem Use non-default python?
743e91ff 8iff "%1" == "15" .or. "%1" == "20" .or. "%1" == "21" then
c6b4bf32 9 set PYTHON=c:\tools\python%1%\python.exe
c368d904
RD
10 shift
11else
9416aa89
RD
12 beep
13 echo You must specify Python version as first parameter.
14 quit
c368d904 15endiff
c6b4bf32 16set SETUP=%PYTHON% -u setup.py
c368d904
RD
17
18
c6b4bf32
RD
19%PYTHON% -c "import sys;print '\n', sys.version, '\n'"
20
c368d904
RD
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
493f1553
RD
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
c368d904
RD
38rem "i" --> install
39elseiff "%1" == "i" then
40 shift
41 set CMD=%SETUP% build install
42
d7ec6564
RD
43rem "r" --> make installer
44elseiff "%1" == "r" then
45 shift
46 set CMD=%PYTHON% distrib\make_installer.py
47
c368d904
RD
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
de20db99
RD
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
c368d904
RD
63rem (no command arg) --> normal build for development
64else
de20db99 65 set CMD=%SETUP% %FLAGS% HYBRID=0 build_ext --inplace --debug %1 %2 %3 %4 %5 %6 %7 %8 %9
c368d904
RD
66endiff
67
68
69
70echo %CMD%
71%CMD%
72
73iff "%OTHERCMD%" != "" then
185d7c3e 74 echo %OTHERCMD%
c368d904
RD
75 %OTHERCMD%
76endiff
77