Files
gMod/BuildLibZip.ps1
T
DubbleClick 5fa4e93b02 make libzip build too
todo: specify cmake find_library to check the paths we install to
2023-11-12 18:52:10 +01:00

16 lines
569 B
PowerShell

$gModDir = (Get-Location).Path
Write-Host Set current directory to $gModDir
rm -r -fo build
cmake -B build
cd build/_deps/zlib-src
cmake -A Win32 -DCMAKE_INSTALL_PREFIX="$($gModDir)\bin\zlib" .
cmake --build . --config Release
cmake --install . --config Release
cd $gModDir
cd build/_deps/libzip-src
cmake -A Win32 -DZLIB_LIBRARY="$($gModDir)\bin\zlib\lib\zlibstatic.lib" -DZLIB_INCLUDE_DIR="$($gModDir)\bin\zlib\include" -DCMAKE_INSTALL_PREFIX="$($gModDir)\bin\libzip" . .
cmake --build . --config Release
cmake --install . --config Release
cd $gModDir
cmake -B build