mirror of
https://gitea.invidious.io/iv-org/litespeed-quic.git
synced 2024-08-15 00:53:43 +00:00
* fix MSVC compiler shared library issues - mostly around 'extern const' * add vcpkg install getopt to appveyor-windows.yml show appveyor where to get getopt from vcpkg (non-static lib to avoid LGPL violation) * add missing else case in lsquic_shared_support.h for windows static lib path * have cmake spit out it's version have cmake copy dependent dlls to build dir for tests on windows (getopt.dll) * copy getopt.dll dep for tests added commented version that requires >= 3.21 but handles any dll deps * try caching boringssl dir to reduce CI build time since it's always same commit specified in config file define VCPKG_ROOT in env since I can't seem to find it by VCPKG_ROOT or VCPKG_INSTALLED_DIR in appveyor's cmake v3.16 + vcpkg * make windows cache dependent on yml and cmd * sync up with changes to ls-qpack
23 lines
858 B
Batchfile
23 lines
858 B
Batchfile
vcpkg list
|
|
|
|
if exist ".\boringssl\CMakeLists.txt" (
|
|
echo cached
|
|
) else (
|
|
git clone https://boringssl.googlesource.com/boringssl
|
|
cd boringssl
|
|
git checkout a2278d4d2cabe73f6663e3299ea7808edfa306b9
|
|
cmake -DCMAKE_GENERATOR_PLATFORM=x64 --config Debug -DBUILD_SHARED_LIBS=OFF -DOPENSSL_NO_ASM=1 .
|
|
msbuild /m ALL_BUILD.vcxproj
|
|
cd ..
|
|
)
|
|
|
|
git submodule init
|
|
|
|
git submodule update --checkout --force --recursive
|
|
|
|
set VCPKG_ROOT=c:/tools/vcpkg/
|
|
|
|
cmake -DCMAKE_GENERATOR_PLATFORM=x64 -DBUILD_SHARED_LIBS=OFF -DVCPKG_TARGET_TRIPLET=x64-windows-static -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE=c:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake -DGETOPT_INCLUDE_DIR=c:/tools/vcpkg/installed/x64-windows/include -DGETOPT_LIB=c:/tools/vcpkg/installed/x64-windows/lib/getopt.lib -DBORINGSSL_DIR=%cd%\boringssl .
|
|
|
|
|
|
msbuild /m ALL_BUILD.vcxproj
|