diff --git a/docs/cn/getting_started.md b/docs/cn/getting_started.md index bf9dca1f93..3afdb56041 100644 --- a/docs/cn/getting_started.md +++ b/docs/cn/getting_started.md @@ -170,6 +170,17 @@ $ sh run_tests.sh ### 使用cmake编译brpc 参考[这里](#使用cmake编译brpc) +### 使用vcpkg编译brpc + +[vcpkg](https://github.com/microsoft/vcpkg) 是一个全平台支持的包管理器,你可以使用以下步骤vcpkg轻松编译brpc: + +```shell +$ git clone https://github.com/microsoft/vcpkg.git +$ ./bootstrap-vcpkg.bat # 使用 powershell +$ ./bootstrap-vcpkg.sh # 使用 bash +$ ./vcpkg install brpc +``` + ## 自己构建依赖的Linux ### 依赖准备 diff --git a/docs/en/getting_started.md b/docs/en/getting_started.md index 3baf3a67eb..4b4d14f575 100644 --- a/docs/en/getting_started.md +++ b/docs/en/getting_started.md @@ -107,6 +107,18 @@ Examples link brpc statically, if you need to link the shared version, remove `C $ mkdir build && cd build && cmake -DBUILD_UNIT_TESTS=ON .. && make && make test ``` +### Compile brpc with vcpkg + +[vcpkg](https://github.com/microsoft/vcpkg) is a package manager that supports all platforms, +you can use vcpkg to build llvm with the following step: + +```shell +$ git clone https://github.com/microsoft/vcpkg.git +$ ./bootstrap-vcpkg.bat # for powershell +$ ./bootstrap-vcpkg.sh # for bash +$ ./vcpkg install brpc +``` + ## Fedora/CentOS ### Prepare deps