From bab2b0db48892639d6a548414481991d81d6e611 Mon Sep 17 00:00:00 2001 From: Phoebe <20694052+PhoebeHui@users.noreply.github.com> Date: Fri, 24 Jan 2020 07:46:25 +0800 Subject: [PATCH] Add vcpkg installation instructions (#5732) * Add vcpkg installation instructions * Update comments --- docs/source/Building.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/source/Building.md b/docs/source/Building.md index a89671109..ad9e972be 100644 --- a/docs/source/Building.md +++ b/docs/source/Building.md @@ -29,6 +29,19 @@ Building should also produce two sample executables, `flatsamplebinary` and *Note that you MUST be in the root of the FlatBuffers distribution when you run 'flattests' or `flatsampletext`, or it will fail to load its files.* +## Building with VCPKG + +You can download and install flatbuffers using the [vcpkg](https://github.com/Microsoft/vcpkg/) dependency manager: + + git clone https://github.com/Microsoft/vcpkg.git + cd vcpkg + ./bootstrap-vcpkg.sh + ./vcpkg integrate install + ./vcpkg install flatbuffers + +The flatbuffers port in vcpkg is kept up to date by Microsoft team members and community contributors. +If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg) on the vcpkg repository. + ## Building for Android There is a `flatbuffers/android` directory that contains all you need to build