File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
<Project DefaultTargets =" Build" ToolsVersion =" 4.0" xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
2
2
<PropertyGroup >
3
- <_LibZipSharpNugetVersion >1.0.14 </_LibZipSharpNugetVersion >
3
+ <_LibZipSharpNugetVersion >1.0.15 </_LibZipSharpNugetVersion >
4
4
</PropertyGroup >
5
5
</Project >
Original file line number Diff line number Diff line change @@ -16,7 +16,10 @@ stages:
16
16
jobs :
17
17
- job : buildWindows
18
18
pool :
19
- vmImage : vs2017-win2016
19
+ vmImage : windows-latest
20
+ variables :
21
+ LIBZIP_FEATURES : -DENABLE_COMMONCRYPTO=OFF -DENABLE_GNUTLS=OFF -DENABLE_MBEDTLS=OFF -DENABLE_OPENSSL=OFF -DENABLE_WINDOWS_CRYPTO=OFF -DBUILD_TOOLS=OFF -DBUILD_REGRESS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_DOC=OFF -DENABLE_BZIP2=OFF -DENABLE_LZMA=OFF
22
+ COMMON_CMAKE_PARAMS : -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 16 2019" -DBUILD_SHARED_LIBS=ON -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded -DCMAKE_POLICY_DEFAULT_CMP0074=NEW -DCMAKE_POLICY_DEFAULT_CMP0091=NEW
20
23
steps :
21
24
- script : |
22
25
echo "Hello"
@@ -29,15 +32,15 @@ stages:
29
32
external\vcpkg\vcpkg.exe install zlib:x64-windows-static
30
33
mkdir .\build\Windows\64
31
34
cd .\build\Windows\64
32
- cmake --config Release -DENABLE_BZIP2=OFF -DENABLE_LZMA=OFF -DCMAKE_C_FLAGS="/O2" -DCMAKE_TOOLCHAIN_FILE= ..\..\..\external\vcpkg\scripts\buildsystems\vcpkg.cmake ..\..\..\external\libzip -G "Visual Studio 15 2017 Win64" -DBUILD_SHARED_LIBS=on -DVCPKG_TARGET_TRIPLET=x64-windows-static
35
+ cmake $(LIBZIP_FEATURES) $(COMMON_CMAKE_PARAMS) -DZLIB_ROOT= ..\..\..\external\vcpkg\installed\x64-windows-static -A x64 ..\..\..\external\libzip
33
36
cmake --build . --config Release -v
34
37
displayName: "x64 Build"
35
38
- script : |
36
39
external\vcpkg\vcpkg.exe integrate install
37
40
external\vcpkg\vcpkg.exe install zlib:x86-windows-static
38
41
mkdir .\build\Windows\32
39
42
cd .\build\Windows\32
40
- cmake --config Release -DENABLE_BZIP2=OFF -DENABLE_LZMA=OFF -DCMAKE_C_FLAGS="/O2" -DCMAKE_TOOLCHAIN_FILE= ..\..\..\external\vcpkg\scripts\buildsystems\vcpkg.cmake ..\..\..\external\libzip -G "Visual Studio 15 2017" -DBUILD_SHARED_LIBS=on -DVCPKG_TARGET_TRIPLET=x86-windows-static
43
+ cmake $(LIBZIP_FEATURES) $(COMMON_CMAKE_PARAMS) -DZLIB_ROOT= ..\..\..\external\vcpkg\installed\x86-windows-static -A Win32 ..\..\..\external\libzip
41
44
cmake --build . --config Release -v
42
45
displayName: "x86 Build"
43
46
- task : ArchiveFiles@2
You can’t perform that action at this time.
0 commit comments