mirror of
https://github.com/amnezia-vpn/openvpn3.git
synced 2026-05-17 08:26:28 +03:00
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:
14
README.rst
14
README.rst
@@ -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
14
vcpkg.json
Normal 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"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user