فهرست منبع

Merge pull request #3825 from ras0219-msft/patch-1

Add Vcpkg to C++ installation instructions for Windows
Jisi Liu 7 سال پیش
والد
کامیت
25a90e82ff
1فایلهای تغییر یافته به همراه10 افزوده شده و 0 حذف شده
  1. 10 0
      src/README.md

+ 10 - 0
src/README.md

@@ -184,6 +184,16 @@ In the downloads section, download the zip file protoc-$VERSION-win32.zip.
 It contains the protoc binary as well as public proto files of protobuf
 It contains the protoc binary as well as public proto files of protobuf
 library.
 library.
 
 
+Protobuf and its dependencies can be installed directly by using `vcpkg`:
+
+    >vcpkg install protobuf protobuf:x64-windows
+
+If zlib support is desired, you'll also need to install the zlib feature:
+
+    >vcpkg install protobuf[zlib] protobuf[zlib]:x64-windows
+
+See https://github.com/Microsoft/vcpkg for more information.
+
 To build from source using Microsoft Visual C++, see [cmake/README.md](../cmake/README.md).
 To build from source using Microsoft Visual C++, see [cmake/README.md](../cmake/README.md).
 
 
 To build from source using Cygwin or MinGW, follow the Unix installation
 To build from source using Cygwin or MinGW, follow the Unix installation