]> git.saurik.com Git - wxWidgets.git/blob - wxPython/distrib/makedev.bat
also correct run-time check for gtk_message_dialog_format_secondary_text() availability
[wxWidgets.git] / wxPython / distrib / makedev.bat
1 @echo off
2 rem Builds a zip containing stuff needed to link with the wxWindows DLL
3 rem shipped with wxPython. This should allow other developers to create apps
4 rem or extensions that can share the same DLL.
5
6 setlocal
7 set BASE=_distrib_zip\wxPython-%1
8
9 set TYPE=h
10 if %2 == "debug" set TYPE=d
11
12 set DELTYPE=d
13 if %2 == "debug" set DELTYPE=h
14
15 rem **** Make a directory to build up a distribution tree
16 mkdir _distrib_zip
17 mkdir %BASE%
18
19
20 rem *** copy files
21 copy distrib\README.devel.txt %BASE%\README.txt
22
23
24 mkdir %BASE%\include
25 mkdir %BASE%\include\wx
26 copy /s %WXWIN%\include\wx\* %BASE%\include\wx
27
28 copy /s %WXWIN%\contrib\include\wx\gizmos %BASE%\include\wx\gizmos
29 copy /s %WXWIN%\contrib\include\wx\ogl %BASE%\include\wx\ogl
30 copy /s %WXWIN%\contrib\include\wx\stc %BASE%\include\wx\stc
31
32 copy /s %WXWIN%\wxPython\include\wx\* %BASE%\include\wx
33 mkdir %BASE%\include\wx\wxPython\i_files
34 copy %WXWIN%\wxPython\src\*.i %BASE%\include\wx\wxPython\i_files
35 copy %WXWIN%\wxPython\src\*.py %BASE%\include\wx\wxPython\i_files
36
37 mkdir %BASE%\lib
38 mkdir %BASE%\lib\vc_dll
39 mkdir %BASE%\lib\vc_dll\msw%TYPE%
40 mkdir %BASE%\lib\vc_dll\mswu%TYPE%
41
42 copy /s %WXWIN%\lib\vc_dll\msw%TYPE%\* %BASE%\lib\vc_dll\mswh
43 copy /s %WXWIN%\lib\vc_dll\mswu%TYPE%\* %BASE%\lib\vc_dll\mswuh
44 copy %WXWIN%\lib\vc_dll\* %BASE%\lib\vc_dll
45
46
47 rem *** remove unneeded files
48 cd _distrib_zip
49
50 ffind /SB wx*%DELTYPE%_*.* > del-files
51 ffind /SB wx*%DELTYPE%.* >> del-files
52 ffind /SB .#* >> del-files
53 ffind /SB .cvsignore >> del-files
54
55 for %f in (@del-files) do rm -fv %f
56 rem del /y @del-files
57
58
59 ffind /SB /A:D CVS > del-dirs
60 echo wxPython-%1\include\wx\cocoa >> del-dirs
61 echo wxPython-%1\include\wx\gtk >> del-dirs
62 echo wxPython-%1\include\wx\mac >> del-dirs
63 echo wxPython-%1\include\wx\mgl >> del-dirs
64 echo wxPython-%1\include\wx\motif >> del-dirs
65 echo wxPython-%1\include\wx\os2 >> del-dirs
66 echo wxPython-%1\include\wx\univ >> del-dirs
67 echo wxPython-%1\include\wx\unix >> del-dirs
68 echo wxPython-%1\include\wx\x11 >> del-dirs
69
70 for %d in (@del-dirs) do rm -rfv %d
71 rem del /sxzy @del-dirs
72
73 rm del-files
74 rm del-dirs
75
76 rem *** bundle it all up TODO: don't hard-code the 2.8
77 set EXT=
78 if %2 == "debug" set EXT="-debug"
79 tar cvf ../dist/wxPython2.8-win32-devel-%1%EXT%.tar wxPython-%1
80 bzip2 -9 ../dist/wxPython2.8-win32-devel-%1%EXT%.tar
81
82 rem *** cleanup
83 cd ..
84 rm -rf _distrib_zip
85
86 endlocal
87
88
89