@@ -59,34 +59,60 @@ pushd "$MINIZLIB_SOURCE_DIR"
5959 windows* )
6060 load_vsvars
6161
62- opts=" $( replace_switch /Zi /Z7 $LL_BUILD_RELEASE ) "
63- plainopts=" $( remove_switch /GR $( remove_cxxstd $opts ) ) "
64-
65- mkdir -p " build"
66- pushd " build"
67- cmake $( cygpath -m ${top} /${MINIZLIB_SOURCE_DIR} ) -G " Ninja Multi-Config" \
68- -DCMAKE_BUILD_TYPE=" Release" \
69- -DCMAKE_C_FLAGS:STRING=" $plainopts " \
70- -DCMAKE_CXX_FLAGS:STRING=" $opts " \
71- -DCMAKE_MSVC_DEBUG_INFORMATION_FORMAT=" Embedded" \
72- " ${config[@]} " \
73- -DCMAKE_INSTALL_PREFIX=$( cygpath -m $stage ) \
74- -DCMAKE_INSTALL_LIBDIR=" $( cygpath -m " $stage /lib/release" ) " \
75- -DZLIB_INCLUDE_DIR=" $( cygpath -m " $stage /packages/include/zlib-ng/" ) " \
76- -DZLIB_LIBRARY=" $( cygpath -m " $stage /packages/lib/release/zlib.lib" ) "
77-
78- cmake --build . --config Release --parallel $AUTOBUILD_CPU_COUNT
79-
80- # conditionally run unit tests
81- # if [ "${DISABLE_UNIT_TESTS:-0}" = "0" ]; then
82- # ctest -C Release
83- # fi
62+ mkdir -p " build_debug"
63+ pushd " build_debug"
64+ opts=" $( replace_switch /Zi /Z7 $LL_BUILD_DEBUG ) "
65+ plainopts=" $( remove_switch /GR $( remove_cxxstd $opts ) ) "
66+
67+ cmake $( cygpath -m ${top} /${MINIZLIB_SOURCE_DIR} ) -G " Ninja Multi-Config" \
68+ -DCMAKE_BUILD_TYPE=" Debug" \
69+ -DCMAKE_C_FLAGS:STRING=" $plainopts " \
70+ -DCMAKE_CXX_FLAGS:STRING=" $opts " \
71+ -DCMAKE_MSVC_DEBUG_INFORMATION_FORMAT=" Embedded" \
72+ " ${config[@]} " \
73+ -DCMAKE_INSTALL_PREFIX=$( cygpath -m $stage ) \
74+ -DCMAKE_INSTALL_LIBDIR=" $( cygpath -m " $stage /lib/debug" ) " \
75+ -DZLIB_INCLUDE_DIR=" $( cygpath -m " $stage /packages/include/zlib-ng/" ) " \
76+ -DZLIB_LIBRARY=" $( cygpath -m " $stage /packages/lib/debug/zlibd.lib" ) "
77+
78+ cmake --build . --config Debug --parallel $AUTOBUILD_CPU_COUNT
79+
80+ # conditionally run unit tests
81+ # if [ "${DISABLE_UNIT_TESTS:-0}" = "0" ]; then
82+ # ctest -C Debug
83+ # fi
84+
85+ cmake --install . --config Debug
86+ popd
8487
85- cmake --install . --config Release
88+ mkdir -p " build_release"
89+ pushd " build_release"
90+ opts=" $( replace_switch /Zi /Z7 $LL_BUILD_RELEASE ) "
91+ plainopts=" $( remove_switch /GR $( remove_cxxstd $opts ) ) "
92+
93+ cmake $( cygpath -m ${top} /${MINIZLIB_SOURCE_DIR} ) -G " Ninja Multi-Config" \
94+ -DCMAKE_BUILD_TYPE=" Release" \
95+ -DCMAKE_C_FLAGS:STRING=" $plainopts " \
96+ -DCMAKE_CXX_FLAGS:STRING=" $opts " \
97+ -DCMAKE_MSVC_DEBUG_INFORMATION_FORMAT=" Embedded" \
98+ " ${config[@]} " \
99+ -DCMAKE_INSTALL_PREFIX=$( cygpath -m $stage ) \
100+ -DCMAKE_INSTALL_LIBDIR=" $( cygpath -m " $stage /lib/release" ) " \
101+ -DZLIB_INCLUDE_DIR=" $( cygpath -m " $stage /packages/include/zlib-ng/" ) " \
102+ -DZLIB_LIBRARY=" $( cygpath -m " $stage /packages/lib/release/zlib.lib" ) "
103+
104+ cmake --build . --config Release --parallel $AUTOBUILD_CPU_COUNT
105+
106+ # conditionally run unit tests
107+ # if [ "${DISABLE_UNIT_TESTS:-0}" = "0" ]; then
108+ # ctest -C Release
109+ # fi
110+
111+ cmake --install . --config Release
112+ popd
86113
87114 mkdir -p $stage /include/minizip-ng
88115 mv $stage /include/minizip/* .h " $stage /include/minizip-ng/"
89- popd
90116 ;;
91117
92118 # ------------------------- darwin, darwin64 -------------------------
0 commit comments