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