]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/distrib/makedev.bat
Get/SetTitle only for wxTopLevelWindow (wxMGL part).
[wxWidgets.git] / wxPython / distrib / makedev.bat
index a7bc43f3d38d68522c8698c06d0f5305c4131498..31df78063b5a29e4b708d5eda8981c2f14616b03 100755 (executable)
@@ -1,47 +1,79 @@
 @echo off
 rem   Builds a zip containing stuff needed to link with the wxWindows DLL
 @echo off
 rem   Builds a zip containing stuff needed to link with the wxWindows DLL
-rem   shipped with wxPython.  This allows other developers to create apps
+rem   shipped with wxPython.  This should allow other developers to create apps
 rem   or extensions that can share the same DLL.
 
 setlocal
 rem   or extensions that can share the same DLL.
 
 setlocal
+set BASE=_distrib_zip\wxPython-%1
 
 
-set BASE=wxPython-devel
-
+rem **** Make a directory to build up a distribution tree
+mkdir _distrib_zip
 mkdir %BASE%
 
 mkdir %BASE%
 
-mkdir %BASE%\ReleaseDLL
-mkdir %BASE%\HybridDLL
-copy /s %WXWIN%\ReleaseDLL %BASE%\ReleaseDLL
-copy /s %WXWIN%\HybridDLL %BASE%\HybridDLL
 
 
-mkdir %BASE%\lib
-copy %WXWIN%\lib\*.lib %BASE\lib
-del %BASE%\lib\*d.lib
-copy %WXWIN%\lib\*.dll %BASE\lib
-del %BASE%\lib\*d.dll
-copy %WXWIN%\lib\*.pdb %BASE\lib
-del %BASE%\lib\*d.pdb
-copy /s %WXWIN%\lib\mswdll %BASE\lib\mswdll
-copy /s %WXWIN%\lib\mswdllh %BASE\lib\mswdllh
-
-
-mkdir %BASE%\src
-copy %WXWIN%\src\makevc.env %BASE%\src
-copy %WXWIN%\src\*.vc %BASE%\src
-
-mkdir %BASE%\src\msw
-mkdir %BASE%\src\msw\ReleaseDLL
-copy %WXWIN%\src\msw\ReleaseDLL\dummy*.obj %BASE%\src\msw\ReleaseDLL
-mkdir %BASE%\src\msw\HybridDLL
-copy %WXWIN%\src\msw\HybridDLL\dummy*.obj %BASE%\src\msw\HybridDLL
+rem *** copy files
+copy distrib\README.devel.txt %BASE%\README.txt
+
 
 mkdir %BASE%\include
 mkdir %BASE%\include\wx
 
 mkdir %BASE%\include
 mkdir %BASE%\include\wx
-copy /s %WXWIN%\include\wx\* %BASE%\include\wx
+copy /s %WXWIN%\include\wx\*                 %BASE%\include\wx
+
+copy /s %WXWIN%\contrib\include\wx\gizmos    %BASE%\include\wx\gizmos
+copy /s %WXWIN%\contrib\include\wx\ogl       %BASE%\include\wx\ogl
+copy /s %WXWIN%\contrib\include\wx\stc       %BASE%\include\wx\stc
+
+copy /s %WXWIN%\wxPython\include\wx\*        %BASE%\include\wx
+mkdir %BASE%\include\wx\wxPython\i_files
+copy  %WXWIN%\wxPython\src\*.i               %BASE%\include\wx\wxPython\i_files
+copy  %WXWIN%\wxPython\src\*.py              %BASE%\include\wx\wxPython\i_files
+
+mkdir %BASE%\lib
+mkdir %BASE%\lib\vc_dll
+mkdir %BASE%\lib\vc_dll\mswh
+mkdir %BASE%\lib\vc_dll\mswuh
+
+copy /s %WXWIN%\lib\vc_dll\mswh\*            %BASE%\lib\vc_dll\mswh
+copy /s %WXWIN%\lib\vc_dll\mswuh\*           %BASE%\lib\vc_dll\mswuh
+copy %WXWIN%\lib\vc_dll\*                    %BASE%\lib\vc_dll
+
+
+rem *** remove unneeded files
+cd _distrib_zip
+
+ffind /SB wx*d_*.*             >  del-files
+ffind /SB wx*d.*               >> del-files
+ffind /SB .#*                  >> del-files
+ffind /SB .cvsignore           >> del-files
+
+for %f in (@del-files) do      rm -fv %f
+rem del /y @del-files
+
+
+ffind /SB /A:D CVS                     >  del-dirs
+echo  wxPython-%1\include\wx\cocoa     >> del-dirs
+echo  wxPython-%1\include\wx\gtk       >> del-dirs
+echo  wxPython-%1\include\wx\mac       >> del-dirs
+echo  wxPython-%1\include\wx\mgl       >> del-dirs
+echo  wxPython-%1\include\wx\motif     >> del-dirs
+echo  wxPython-%1\include\wx\os2       >> del-dirs
+echo  wxPython-%1\include\wx\univ      >> del-dirs
+echo  wxPython-%1\include\wx\unix      >> del-dirs
+echo  wxPython-%1\include\wx\x11       >> del-dirs
+
+for %d in (@del-dirs) do       rm -rfv %d
+rem del /sxzy @del-dirs
+
+rm del-files
+rm del-dirs
 
 
+rem *** bundle it all up  TODO: don't hard-code the 2.6
+tar cvf ../dist/wxPython2.6-win32-devel-%1.tar wxPython-%1
+gzip -9 ../dist/wxPython2.6-win32-devel-%1.tar
 
 
-zip -r dist\wxPython-devel-win32-%1.zip %BASE%
-del /sxzy %BASE%
+rem *** cleanup
+cd ..
+rm -rf _distrib_zip
 
 endlocal
 
 
 endlocal