vcpkg: switch to manifest mode

Add vcpkg manifest with list of dependencies, which got
consumed by cmake configure phase and stored per-project.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
This commit is contained in:
Lev Stipakov
2021-04-16 10:55:04 +03:00
parent 6da31163f6
commit b3c98c59ff
2 changed files with 16 additions and 12 deletions

View File

@@ -196,20 +196,10 @@ Prerequisites:
* CMake
* vcpkg
Download and build dependencies:
::
> git clone https://github.com/Microsoft/vcpkg.git
> cd vcpkg
> bootstrap-vcpkg.bat
> vcpkg integrate install
> vcpkg install openssl-windows:x64-windows asio:x64-windows tap-windows6:x64-windows lz4:x64-windows gtest:x64-windows
Download and build core test client:
::
> git clone https://github.com/OpenVPN/openvpn3.git
> cmake -DCMAKE_TOOLCHAIN_FILE=<path_to_vcpkg>\scripts\buildsystems\vcpkg.cmake -A x64 -B build openvpn3
> git clone https://github.com/OpenVPN/openvpn3.git core && cd core
> cmake -B build -S . -DCMAKE_TOOLCHAIN_FILE=<path_to_vcpkg>\scripts\buildsystems\vcpkg.cmake -DVCPKG_OVERLAY_PORTS=deps\vcpkg-ports
> cmake --build build --config Release --target ovpncli
Testing

14
vcpkg.json Normal file
View File

@@ -0,0 +1,14 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg/master/scripts/vcpkg.schema.json",
"name": "openvpn3",
"version-string": "3.7",
"dependencies": [
"gtest",
"lz4",
"openssl",
"jsoncpp",
"asio",
"tap-windows6",
"ovpn-dco-win"
]
}