Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Modules/ThirdParty/ZLIB/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ if(ITK_USE_SYSTEM_ZLIB)
else()
set(ITKZLIB_INCLUDE_DIRS
${ITKZLIB_BINARY_DIR}/src
${ITKZLIB_BINARY_DIR}/src/itkzlib-ng
${ITKZLIB_SOURCE_DIR}/src
)
set(ITKZLIB_LIBRARIES itkzlib)
Expand Down
130 changes: 116 additions & 14 deletions Modules/ThirdParty/ZLIB/UpdateFromUpstream.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,56 +4,158 @@ set -e
set -x
shopt -s dotglob

readonly name="zlib"
readonly ownership="Zlib Upstream <kwrobot@kitware.com>"
readonly name="zlib-ng"
readonly ownership="Zlib-ng Upstream <kwrobot@kitware.com>"
readonly subtree="Modules/ThirdParty/ZLIB/src/itk$name"
readonly repo="https://gitlab.kitware.com/third-party/zlib.git"
readonly tag="for/itk-v1.2.11-2017-01-15-cacf7f1d"
readonly repo="https://github.com/zlib-ng/zlib-ng.git"
readonly tag="2.0.5"
readonly paths="
CMakeLists.txt

cmake/toolchain-powerpc64le.cmake
cmake/test-tools.cmake
cmake/toolchain-sparc64.cmake
cmake/detect-arch.c
cmake/test-compress.cmake
cmake/run-and-redirect.cmake
cmake/toolchain-powerpc.cmake
cmake/toolchain-s390x.cmake
cmake/toolchain-mingw-i686.cmake
cmake/detect-arch.cmake
cmake/toolchain-aarch64.cmake
cmake/toolchain-arm.cmake
cmake/run-and-compare.cmake
cmake/detect-sanitizer.cmake
cmake/detect-install-dirs.cmake
cmake/detect-coverage.cmake
cmake/toolchain-powerpc64.cmake
cmake/toolchain-mingw-x86_64.cmake

arch/s390/dfltcc_common.c
arch/s390/dfltcc_deflate.c
arch/s390/dfltcc_inflate.h
arch/s390/README.md
arch/s390/dfltcc_inflate.c
arch/s390/dfltcc_common.h
arch/s390/dfltcc_detail.h
arch/s390/Makefile.in
arch/s390/dfltcc_deflate.h
arch/.gitignore
arch/generic/Makefile.in
arch/power/adler32_power8.c
arch/power/Makefile.in
arch/power/power.c
arch/power/power.h
arch/power/slide_hash_power8.c
arch/x86/slide_avx.c
arch/x86/INDEX.md
arch/x86/insert_string_sse.c
arch/x86/chunkset_avx.c
arch/x86/crc_folding.c
arch/x86/slide_sse.c
arch/x86/compare258_avx.c
arch/x86/Makefile.in
arch/x86/chunkset_sse.c
arch/x86/x86.h
arch/x86/compare258_sse.c
arch/x86/crc_folding.h
arch/x86/adler32_ssse3.c
arch/x86/adler32_avx.c
arch/x86/x86.c
arch/arm/armfeature.c
arch/arm/insert_string_acle.c
arch/arm/adler32_neon.c
arch/arm/Makefile.in
arch/arm/arm.h
arch/arm/slide_neon.c
arch/arm/ctzl.h
arch/arm/chunkset_neon.c
arch/arm/crc32_acle.c

adler32.c
chunkset.c
compare258.c
compress.c
crc32.c
crc32_comb.c
deflate.c
gzclose.c
deflate_fast.c
deflate_medium.c
deflate_quick.c
deflate_slow.c
functable.c
gzlib.c
gzread.c
gzwrite.c
infback.c
inffast.c
inflate.c
inftrees.c
insert_string.c
trees.c
uncompr.c
zutil.c

crc32.h
adler32_p.h
chunkset_tpl.h
crc32_comb_tbl.h
crc32_p.h
crc32_tbl.h
deflate.h
deflate_p.h
fallback_builtins.h
functable.h
gzguts.h
inffast.h
inffixed.h
inffixed_tbl.h
inflate.h
inflate_p.h
inftrees.h
insert_string_tpl.h
match_tpl.h
trees.h
trees_emit.h
trees_tbl.h
zbuild.h
zendian.h
zlib.h
zlib-ng.h
zutil.h
zutil_p.h

zconf.h.cmakein
zlib.pc.cmakein
zconf-ng.h.in
zlib.pc.in
zconf.h.in
Makefile.in

win32/zlib-ng1.rc
win32/Makefile.arm
win32/Makefile.a64
win32/Makefile.msc
win32/zlibcompat.def
win32/zlib1.rc
win32/DLL_FAQ.txt
win32/zlib-ng.def
win32/zlib.def

tools/maketrees.c
tools/makefixed.c
tools/config.sub
tools/makecrct.c

.gitattributes
ChangeLog
README
README.kitware.md
FAQ
INDEX
README.md
INDEX.md
"


extract_source () {
git_archive
pushd "${extractdir}/${name}-reduced"
echo "* -whitespace" > .gitattributes
chmod u+x test/pkgcheck.sh
chmod u+x tools/codecov-upload.sh
popd
}

. "${BASH_SOURCE%/*}/../../../Utilities/Maintenance/update-third-party.bash"
4 changes: 3 additions & 1 deletion Modules/ThirdParty/ZLIB/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ set(ITK3P_INSTALL_INCLUDE_DIR "${ITKZLIB_INSTALL_INCLUDE_DIR}")
set(ITK3P_INSTALL_RUNTIME_DIR "${ITKZLIB_INSTALL_RUNTIME_DIR}")
set(ITK3P_INSTALL_LIBRARY_DIR "${ITKZLIB_INSTALL_LIBRARY_DIR}")
set(ITK3P_INSTALL_ARCHIVE_DIR "${ITKZLIB_INSTALL_ARCHIVE_DIR}")
add_subdirectory(itkzlib)
set(ZLIB_COMPAT ON)
set(ZLIB_ENABLE_TESTS OFF)
add_subdirectory(itkzlib-ng)
2 changes: 1 addition & 1 deletion Modules/ThirdParty/ZLIB/src/itk_zlib.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#ifdef ITK_USE_SYSTEM_ZLIB
# include <zlib.h>
#else
# include "itkzlib/zlib.h"
# include "itkzlib-ng/zlib.h"
#endif

#endif
Loading