This is an example project using nghttp2_asio library with patches for:
- building dynamic nghttp2_asio with MSVC
- building static nghttp2_asio (checked on macOS and Linux)
- installing nghttp2_asio via vcpkg
git clone https://github.com/vserdyuk/nghttp2_asio_test.git
cd nghttp2_asio_test
git submodule update --init
cd vcpkg
bootstrap-vcpkg.bat
or (macOS/Linux)
./bootstrap-vcpkg.sh
More info on vcpkg is on the official page.
vcpkg install nghttp2[asio]:x64-windows
or
.\vcpkg install nghttp2[asio]:x64-osx
or
.\vcpkg install nghttp2[asio]:x64-linux
From the project's root directory
cmake -B out/build -S .
cmake --build out/build
- nghttp2: nghttp2/nghttp2#1615
- getopt-win32 (buggy _BEGIN_EXTERN_C/_END_EXTERN_C macros): TODO
- vcpkg: if 1 and 2 accepted