-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
@ECHO OFF | ||
SET ZLIB_VERSION=1.3 | ||
|
||
IF NOT EXIST build_ci\libs ( | ||
MKDIR build_ci\libs | ||
) | ||
CD build_ci\libs | ||
IF NOT EXIST zlib-%ZLIB_VERSION%.zip ( | ||
ECHO Downloading https://github.com/libarchive/zlib/archive/v%ZLIB_VERSION%.zip | ||
curl -L -o zlib-%ZLIB_VERSION%.zip https://github.com/libarchive/zlib/archive/v%ZLIB_VERSION%.zip || EXIT /b 1 | ||
) | ||
IF NOT EXIST zlib-%ZLIB_VERSION% ( | ||
ECHO Unpacking zlib-%ZLIB_VERSION%.zip | ||
C:\windows\system32\tar.exe -x -f zlib-%ZLIB_VERSION%.zip || EXIT /b 1 | ||
) | ||
CD zlib-%ZLIB_VERSION% | ||
cmake -G "Visual Studio 17 2022" . || EXIT /b 1 | ||
cmake --build . --target ALL_BUILD --config Release || EXIT /b 1 | ||
cmake --build . --target RUN_TESTS --config Release || EXIT /b 1 | ||
cmake --build . --target INSTALL --config Release || EXIT /b 1 | ||
|
||
@EXIT /b 0 |