@@ -137,14 +137,19 @@ echo "==> Setting up nghttp2..."
137137if [ " $OS " = " Darwin" ] && command -v brew & > /dev/null && brew list libnghttp2 & > /dev/null; then
138138 echo " ✓ Using Homebrew's libnghttp2"
139139 echo " Location: $( brew --prefix libnghttp2) "
140+ # On Windows with vcpkg, use vcpkg's nghttp2
141+ elif [ " $OS " = " Windows" ] && [ -n " $VCPKG_ROOT " ] && [ -d " $VCPKG_ROOT /installed/x64-windows" ]; then
142+ echo " ✓ Using vcpkg's nghttp2"
143+ echo " Location: $VCPKG_ROOT /installed/x64-windows"
140144# On Windows with MSYS2, use the MSYS2 package
141145elif [ " $OS " = " Windows" ] && [ -d " /mingw64/include/nghttp2" ]; then
142146 echo " ✓ Using MSYS2's nghttp2"
143147 echo " Location: /mingw64"
144- # On Windows without MSYS2, skip
148+ # On Windows without vcpkg or MSYS2, skip
145149elif [ " $OS " = " Windows" ]; then
146- echo " ⊘ nghttp2 on Windows requires MSYS2 or vcpkg"
147- echo " Run: pacman -S mingw-w64-x86_64-nghttp2 (MSYS2)"
150+ echo " ⊘ nghttp2 on Windows requires vcpkg or MSYS2"
151+ echo " vcpkg: vcpkg install nghttp2:x64-windows"
152+ echo " MSYS2: pacman -S mingw-w64-x86_64-nghttp2"
148153else
149154 # Build from source on Linux or if Homebrew version not available
150155 if [ ! -d " nghttp2" ]; then
@@ -198,10 +203,12 @@ if [ "$OS" = "Linux" ]; then
198203fi
199204if [ " $OS " = " Darwin" ] && command -v brew & > /dev/null && brew list libnghttp2 & > /dev/null; then
200205 echo " ✓ nghttp2: $( brew --prefix libnghttp2) (Homebrew)"
206+ elif [ " $OS " = " Windows" ] && [ -n " $VCPKG_ROOT " ] && [ -d " $VCPKG_ROOT /installed/x64-windows" ]; then
207+ echo " ✓ nghttp2: $VCPKG_ROOT /installed/x64-windows (vcpkg)"
201208elif [ " $OS " = " Windows" ] && [ -d " /mingw64/include/nghttp2" ]; then
202209 echo " ✓ nghttp2: /mingw64 (MSYS2)"
203210elif [ " $OS " = " Windows" ]; then
204- echo " ⊘ nghttp2: Install via MSYS2 (mingw-w64-x86_64-nghttp2) "
211+ echo " ⊘ nghttp2: Install via vcpkg or MSYS2 "
205212else
206213 echo " ✓ nghttp2: $VENDOR_DIR /nghttp2/install"
207214fi
0 commit comments