aboutsummaryrefslogtreecommitdiffhomepage
path: root/vsprojects/readme.txt
diff options
context:
space:
mode:
authorGravatar kenton@google.com <kenton@google.com@630680e5-0e50-0410-840e-4b1c322b438d>2009-04-27 22:28:10 +0000
committerGravatar kenton@google.com <kenton@google.com@630680e5-0e50-0410-840e-4b1c322b438d>2009-04-27 22:28:10 +0000
commit50ede8ba177dc6421a413dc73732b523ac24242d (patch)
treebc611b259770b0723292e3a8eba69fb368f25e52 /vsprojects/readme.txt
parentd37d46dfbcedadeb439ad0367f8afcf8867dca43 (diff)
Update MSVC project files for rev 120, and add instructions for compiling with zlib.
Diffstat (limited to 'vsprojects/readme.txt')
-rw-r--r--vsprojects/readme.txt25
1 files changed, 25 insertions, 0 deletions
diff --git a/vsprojects/readme.txt b/vsprojects/readme.txt
index b4c8962f..8a4ac9fc 100644
--- a/vsprojects/readme.txt
+++ b/vsprojects/readme.txt
@@ -54,6 +54,31 @@ recommend that you do NOT expose protocol buffer objects in your library's
public interface, and that you statically link protocol buffers into your
library.
+ZLib support
+============
+
+If you want to include GzipInputStream and GzipOutputStream
+(google/protobuf/io/gzip_stream.h) in libprotoc, you will need to do a few
+additional steps:
+
+1) Obtain a copy of the zlib library. The pre-compiled DLL at zlib.net works.
+2) Make sure zlib's two headers are in your include path and that the .lib file
+ is in your library path. You could place all three files directly into the
+ vsproject directory to compile libprotobuf, but they need to be visible to
+ your own project as well, so you should probably just put them into the
+ VC shared icnlude and library directories.
+3) Right-click on the "tests" project and choose "properties". Navigate the
+ sidebar to "Configuration Properties" -> "Linker" -> "Input".
+4) Under "Additional Dependencies", add the name of the zlib .lib file (e.g.
+ zdll.lib). Make sure to update both the Debug and Release configurations.
+5) If you are compiling libprotobuf and libprotoc as DLLs (see previous
+ section), repeat steps 2 and 3 for the libprotobuf and libprotoc projects.
+ If you are compiling them as static libraries, then you will need to link
+ against the zlib library directly from your own app.
+6) Edit config.h (in the vsprojects directory) and un-comment the line that
+ #defines HAVE_ZLIB. (Or, alternatively, define this macro via the project
+ settings.)
+
Notes on Compiler Warnings
==========================