]> git.saurik.com Git - wxWidgets.git/commitdiff
Mode distrib scripts and such
authorRobin Dunn <robin@alldunn.com>
Wed, 28 Aug 2002 20:02:20 +0000 (20:02 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 28 Aug 2002 20:02:20 +0000 (20:02 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/distrib/README.devel.txt [new file with mode: 0644]
wxPython/distrib/makedemo
wxPython/distrib/makedev.bat
wxPython/distrib/makedocs.bat [new file with mode: 0755]

diff --git a/wxPython/distrib/README.devel.txt b/wxPython/distrib/README.devel.txt
new file mode 100644 (file)
index 0000000..080bf7b
--- /dev/null
@@ -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
+
index 7dfe6cc35656fddd121f99367bc88f2ed5302944..bf340d4335b64170d74d1e839c4da55e73a67cf4 100755 (executable)
@@ -28,8 +28,8 @@ rm -f `find  _distrib_tgz/wxPython-$1 -name *.so`
 
 cd _distrib_tgz
 
 
 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
 
 cd ..
 rm -r _distrib_tgz
index a7bc43f3d38d68522c8698c06d0f5305c4131498..03368b97327526b486c82fc91f87b9bde9968539 100755 (executable)
@@ -1,47 +1,70 @@
 @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
+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
 
 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
 
 
 endlocal
 
diff --git a/wxPython/distrib/makedocs.bat b/wxPython/distrib/makedocs.bat
new file mode 100755 (executable)
index 0000000..4e353fb
--- /dev/null
@@ -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