head	1.1;
branch	1.1.1;
access;
symbols
	perseant-exfatfs:1.1.1.1.0.2
	perseant-exfatfs-base-20261102:1.1.1.1
	zlib-1-3-2:1.1.1.1
	ZLIB:1.1.1;
locks; strict;
comment	@# @;


1.1
date	2026.05.03.16.34.35;	author christos;	state Exp;
branches
	1.1.1.1;
next	;
commitid	WC5vTA5Qzr0V6oEG;

1.1.1.1
date	2026.05.03.16.34.35;	author christos;	state Exp;
branches
	1.1.1.1.2.1;
next	;
commitid	WC5vTA5Qzr0V6oEG;

1.1.1.1.2.1
date	2026.05.03.16.34.35;	author perseant;	state dead;
branches;
next	1.1.1.1.2.2;
commitid	3QTNojfCEH9lUb2H;

1.1.1.1.2.2
date	2026.11.04.22.36.22;	author perseant;	state Exp;
branches;
next	;
commitid	3QTNojfCEH9lUb2H;


desc
@@


1.1
log
@Initial revision
@
text
@cmake_minimum_required(VERSION 3.12...3.31)

project(
    testzlib
    VERSION 1.0.0
    LANGUAGES C
    DESCRIPTION "A little program to test zlib"
    HOMEPAGE_URL "https://www.zlib.net")

option(ZLIB_TESTZLIB_BUILD_SHARED "Enable building testzlib" ON)
option(ZLIB_TESTZLIB_BUILD_STATIC "Enable building static linked testzlib" ON)
option(ZLIB_TESTZLIB_INSTALL "Enable installation of testzlib" ON)

if(ZLIB_TESTZLIB_BUILD_SHARED)
    add_executable(zlib_testzlib testzlib.c)
    target_link_libraries(zlib_testzlib PRIVATE ZLIB::ZLIB)

    set_target_properties(zlib_testzlib
        PROPERTIES
            OUTPUT_NAME testzlib)

    if(ZLIB_TESTZLIB_INSTALL)
        install(
            TARGETS zlib_testzlib
            COMPONENT Runtime
            RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
    endif(ZLIB_TESTZLIB_INSTALL)
endif(ZLIB_TESTZLIB_BUILD_SHARED)

if(ZLIB_TESTZLIB_BUILD_STATIC)
    add_executable(zlib_testzlibStatic testzlib.c)
    target_link_libraries(zlib_testzlibStatic PRIVATE ZLIB::ZLIBSTATIC)

    set_target_properties(zlib_testzlibStatic
        PROPERTIES
            OUTPUT_NAME testzlibStatic)

    if(ZLIB_TESTZLIB_INSTALL)
        install(
            TARGETS zlib_testzlibStatic
            COMPONENT Runtime
            RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
    endif(ZLIB_TESTZLIB_INSTALL)
endif(ZLIB_TESTZLIB_BUILD_STATIC)
@


1.1.1.1
log
@import zlib-1.3.2 (previous was 1.3.1)


Version 1.3.2 has these key updates from 1.3.1:

    Address findings of the 7ASecurity audit of zlib.
	Check for negative lengths in crc32_combine functions.
	Copy only the initialized window contents in inflateCopy.
	Prevent the use of insecure functions without an explicit request.
	Add compressBound_z and deflateBound_z functions for large values.
	Use atomics to build inflate fixed tables once.
	Add --undefined option to ./configure for UBSan checker.
	Copy only the initialized deflate state in deflateCopy.
	Zero inflate state on allocation.
	Add compress_z and uncompress_z functions.
    Complete rewrite of cmake support.
    Remove untgz from contrib.
    Vectorize the CRC-32 calculation on the s390x.
    Remove vstudio projects in lieu of cmake-generated projects.
    Add zipAlreadyThere() to minizip zip.c to help avoid duplicates.
    Add deflateUsed() function to get the used bits in the last byte.
    Fix bug in inflatePrime() for 16-bit ints.
    Add a "G" option to force gzip, disabling transparency in gzread().
    Return all available uncompressed data on error in gzread.c.
    Support non-blocking devices in the gz* routines.
@
text
@@


1.1.1.1.2.1
log
@file CMakeLists.txt was added on branch perseant-exfatfs on 2026-11-04 22:36:22 +0000
@
text
@d1 44
@


1.1.1.1.2.2
log
@Sync with HEAD
@
text
@a0 44
cmake_minimum_required(VERSION 3.12...3.31)

project(
    testzlib
    VERSION 1.0.0
    LANGUAGES C
    DESCRIPTION "A little program to test zlib"
    HOMEPAGE_URL "https://www.zlib.net")

option(ZLIB_TESTZLIB_BUILD_SHARED "Enable building testzlib" ON)
option(ZLIB_TESTZLIB_BUILD_STATIC "Enable building static linked testzlib" ON)
option(ZLIB_TESTZLIB_INSTALL "Enable installation of testzlib" ON)

if(ZLIB_TESTZLIB_BUILD_SHARED)
    add_executable(zlib_testzlib testzlib.c)
    target_link_libraries(zlib_testzlib PRIVATE ZLIB::ZLIB)

    set_target_properties(zlib_testzlib
        PROPERTIES
            OUTPUT_NAME testzlib)

    if(ZLIB_TESTZLIB_INSTALL)
        install(
            TARGETS zlib_testzlib
            COMPONENT Runtime
            RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
    endif(ZLIB_TESTZLIB_INSTALL)
endif(ZLIB_TESTZLIB_BUILD_SHARED)

if(ZLIB_TESTZLIB_BUILD_STATIC)
    add_executable(zlib_testzlibStatic testzlib.c)
    target_link_libraries(zlib_testzlibStatic PRIVATE ZLIB::ZLIBSTATIC)

    set_target_properties(zlib_testzlibStatic
        PROPERTIES
            OUTPUT_NAME testzlibStatic)

    if(ZLIB_TESTZLIB_INSTALL)
        install(
            TARGETS zlib_testzlibStatic
            COMPONENT Runtime
            RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
    endif(ZLIB_TESTZLIB_INSTALL)
endif(ZLIB_TESTZLIB_BUILD_STATIC)
@


