From: Robin Dunn Date: Wed, 28 Aug 2002 20:02:20 +0000 (+0000) Subject: Mode distrib scripts and such X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/09740c31b9d87156893ea13def17bd2a31d8feeb?ds=inline Mode distrib scripts and such git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/distrib/README.devel.txt b/wxPython/distrib/README.devel.txt new file mode 100644 index 0000000000..080bf7bb6b --- /dev/null +++ b/wxPython/distrib/README.devel.txt @@ -0,0 +1,27 @@ +This tarball contains all the files needed (I hope!) to allow you to +write win32 programs or Python extension modules that link to the same +wxWindows DLL that wxPython does. Files for both the normal (ANSI) +and unicode builds are included. + +You'll need to add the following directories to your Include path (the +/I flag for MSVC): + + wxPython-[version]\lib\mswdllh [for ANSI builds] + wxPython-[version]\lib\mswdlluh [for Unicode builds] + wxPython-[version]\include + +And also you should link with one of the wxmsw*.lib files in the lib +dir, use the one with the 'u' in the name for the Unicode build and +the one without for the ANSI build. + +I've also included some makefiles in the src dir to give you an idea +of what compiler and linker flags are required. You can also get this +info from wxPython's setup.py script. + +I'm sure I've forgotten something, so when you discover what it is +please let me know. Also, if anyone feels like turning this text into +a more detailed HOW-TO please send your text to me. + + +Robin + diff --git a/wxPython/distrib/makedemo b/wxPython/distrib/makedemo index 7dfe6cc356..bf340d4335 100755 --- a/wxPython/distrib/makedemo +++ b/wxPython/distrib/makedemo @@ -28,8 +28,8 @@ rm -f `find _distrib_tgz/wxPython-$1 -name *.so` cd _distrib_tgz -tar cvf ../dist/wxPython-demo-$1.tar wxPython-$1 -gzip ../dist/wxPython-demo-$1.tar +tar cvf ../dist/wxPythonDemo-$1.tar wxPython-$1 +gzip ../dist/wxPythonDemo-$1.tar cd .. rm -r _distrib_tgz diff --git a/wxPython/distrib/makedev.bat b/wxPython/distrib/makedev.bat index a7bc43f3d3..03368b9732 100755 --- a/wxPython/distrib/makedev.bat +++ b/wxPython/distrib/makedev.bat @@ -1,47 +1,70 @@ @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 +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%\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 +rem *** copy files +copy distrib\README.devel.txt %BASE%\README.txt + +mkdir %BASE%\include +mkdir %BASE%\include\wx +copy /s %WXWIN%\include\wx\* %BASE%\include\wx +mkdir %BASE%\lib +mkdir %BASE%\lib\mswdllh +mkdir %BASE%\lib\mswdlluh +copy /s %WXWIN%\lib\mswdllh\* %BASE%\lib\mswdllh +copy /s %WXWIN%\lib\mswdlluh\* %BASE%\lib\mswdlluh +copy %WXWIN%\lib\wxmsw*h.lib %BASE%\lib +copy %WXWIN%\lib\wxmsw*h.dll %BASE%\lib +copy %WXWIN%\lib\mslu.txt %BASE%\lib +copy %WXWIN%\lib\unicows.dll %BASE%\lib +copy %WXWIN%\lib\unicows.lib %BASE%\lib mkdir %BASE%\src -copy %WXWIN%\src\makevc.env %BASE%\src -copy %WXWIN%\src\*.vc %BASE%\src +copy %WXWIN%\src\makevc.env %BASE%\src +copy %WXWIN%\src\makelib.vc %BASE%\src + + +rem *** remove unneeded files +del /sxzy %BASE%\include\wx\CVS +del /sxzy %BASE%\include\wx\generic\CVS +del /sxzy %BASE%\include\wx\gtk\CVS +del /sxzy %BASE%\include\wx\html\CVS +del /sxzy %BASE%\include\wx\mac\CVS +del /sxzy %BASE%\include\wx\mgl\CVS +del /sxzy %BASE%\include\wx\motif\CVS +del /sxzy %BASE%\include\wx\msw\CVS +del /sxzy %BASE%\include\wx\msw\ctl3d\CVS +del /sxzy %BASE%\include\wx\msw\gnuwin32\CVS +del /sxzy %BASE%\include\wx\msw\gnuwin32\gl\CVS +del /sxzy %BASE%\include\wx\msw\ole\CVS +del /sxzy %BASE%\include\wx\os2\CVS +del /sxzy %BASE%\include\wx\protocol\CVS +del /sxzy %BASE%\include\wx\univ\CVS +del /sxzy %BASE%\include\wx\unix\CVS +del /sxzy %BASE%\include\wx\x11\CVS +del /sxzy %BASE%\include\wx\x11\nanox\CVS +del /sxzy %BASE%\include\wx\x11\nanox\X11\CVS -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 -mkdir %BASE%\include -mkdir %BASE%\include\wx -copy /s %WXWIN%\include\wx\* %BASE%\include\wx +rem *** bundle it all up +cd _distrib_zip +tar cvf ..\dist\wxPythonWIN32-devel-%1.tar wxPython-%1 +gzip -9 ..\dist\wxPythonWIN32-devel-%1.tar -zip -r dist\wxPython-devel-win32-%1.zip %BASE% -del /sxzy %BASE% +rem *** cleanup +cd .. +del /sxzy _distrib_zip endlocal diff --git a/wxPython/distrib/makedocs.bat b/wxPython/distrib/makedocs.bat new file mode 100755 index 0000000000..4e353fb32c --- /dev/null +++ b/wxPython/distrib/makedocs.bat @@ -0,0 +1,26 @@ +@echo off + +rem **** Make a directory to build up a distribution tree +md _distrib_zip +md _distrib_zip\wxPython-%1 + +cd _distrib_zip + +rem **** copy the docs into the tree +md wxPython-%1\docs +md wxPython-%1\docs\wx +md wxPython-%1\docs\ogl +copy %WXWIN%\docs\html\wx\*.* wxPython-%1\docs\wx +copy wxPython-%1\docs\wx\wx.htm wxPython-%1\docs\wx\index.htm +copy %WXWIN%\docs\html\ogl\*.* wxPython-%1\docs\ogl +copy wxPython-%1\docs\ogl\ogl.htm wxPython-%1\docs\ogl\index.htm + +rem **** zip up the docs +rem zip -r ..\distrib\wxPython-docs-%1.zip wxPython-%1\docs +tar cvf ..\dist\wxPythonDocs-%1.tar wxPython-%1 +gzip -9 ..\dist\wxPythonDocs-%1.tar + + +rem **** Cleanup +cd .. +del /sxzy _distrib_zip