904 Commits

Author SHA1 Message Date
Vollstrecker
82665659ad CMake: Remove leading underscore from _LARGEFILE64_SOURCE. 2025-01-31 19:59:10 -08:00
Vollstrecker
a7c6dbf821 CMake: Detect visibility attribute in MSVC. 2025-01-31 19:59:10 -08:00
Vollstrecker
79d96ebdb7 CMake: Clear variable with unset. 2025-01-31 19:59:10 -08:00
Vollstrecker
b5c01971c2 CMake: Remove zconf.h.
zconf.h is always created by cmake and configure.
2025-01-31 19:59:10 -08:00
Vollstrecker
3d6dc3c3aa CMake: Create zconf.h from zconf.h.in.
Instead of zconf.h.cmakein, which is removed.
2025-01-31 19:59:10 -08:00
Vollstrecker
9e058e8443 CMake: Add option for ZLIB_PREFIX. 2025-01-31 19:59:10 -08:00
Vollstrecker
53c2727aaf CMake: Silence deprecation warning on the action runners. 2025-01-31 19:59:10 -08:00
Vollstrecker
15ba5055a9 CMake: Adapt pkgconfig-file to the GnuInstallDirs layout. 2025-01-31 19:59:10 -08:00
Vollstrecker
155d88378e CMake: Test static builds. 2025-01-31 19:59:10 -08:00
Vollstrecker
fd00a94838 CMake: Disable MinGW and Cygwin tests. 2025-01-31 19:59:10 -08:00
Vollstrecker
b74d77a0dd CMake: Install compatible DLL on MinGW. 2025-01-31 19:59:10 -08:00
Vollstrecker
e0b78cea4f CMake: Name the shared library cygz.dll on Cygwin. 2025-01-31 19:59:10 -08:00
Vollstrecker
494830e2df CMake: Remove use of ZLIB_BUILD_EXAMPLES option in workflow. 2025-01-31 19:59:10 -08:00
Vollstrecker
01ef679251 CMake: Pass CC and CFLAGS to the tests. 2025-01-31 19:59:10 -08:00
Vollstrecker
4d74e4498e CMake: Add the version to the exported configuration. 2025-01-31 19:59:10 -08:00
Vollstrecker
6084c550c3 CMake: Set the platform and configuration for the tests. 2025-01-31 19:59:10 -08:00
Vollstrecker
1fce5f2cdf CMake: Add more tests. 2025-01-31 19:59:10 -08:00
Vollstrecker
7dc2b78206 CMake: Add test for usage with find_package. 2025-01-31 19:59:10 -08:00
Vollstrecker
a794225144 CMake: Permit install to put different things in different places. 2025-01-31 19:59:10 -08:00
Vollstrecker
f4624f3f03 CMake: Add zlibExport. 2025-01-31 19:59:10 -08:00
Vollstrecker
e37a1a8345 CMake: Warn if no build-type is selected. 2025-01-31 19:59:10 -08:00
Vollstrecker
f7ab6e4373 CMake: Add aliases to match the export names. 2025-01-31 19:59:10 -08:00
Vollstrecker
f0175c69e2 CMake: Add INSTALL_INTERFACE for a proper export. 2025-01-31 19:59:10 -08:00
Vollstrecker
633ec87677 CMake: Add zlib1.rc to Cygwin build. 2025-01-31 19:59:10 -08:00
Vollstrecker
48b9ee48ca CMake: Use CMAKE_DEBUG_POSTFIX for simplification. 2025-01-31 19:59:10 -08:00
Vollstrecker
c33f3bc641 CMake: Move version setting for Cygwin into set_target_properties. 2025-01-31 19:59:10 -08:00
Vollstrecker
b6cb6f4c21 CMake: Rename examples to testing to reflect their intent. 2025-01-31 19:59:10 -08:00
Vollstrecker
c18815b630 CMake: Simplify to one install option.
What to install is chosen with components.
2025-01-31 19:59:10 -08:00
Vollstrecker
64e8307d6a CMake: Make formatting consistent. 2025-01-31 19:59:10 -08:00
Vollstrecker
ffbbe01b6d CMake: Remove allowance for unclosed constructs. 2025-01-31 19:59:10 -08:00
Vollstrecker
1af1bb6ce4 CMake: Let cmake handle zlib1.rc. 2025-01-31 19:59:10 -08:00
Vollstrecker
899ef97c4a CMake: Use the same definition we checked for off64_t.
Move to target_compile_definitions.
2025-01-31 19:59:10 -08:00
Vollstrecker
31d2462c1d CMake: Move compile_definitions to the targets. 2025-01-31 19:59:10 -08:00
Vollstrecker
feb7fd325a CMake: Remove doubled include directories. 2025-01-31 19:59:10 -08:00
Vollstrecker
902f6eedf3 CMake: Remove checks for sys/types.h, stdint.h and stddef.h.
This is done by check_type_size.
2025-01-31 19:59:10 -08:00
Vollstrecker
2b2eec69b5 CMake: Remove unneeded renaming for in-tree builds and the option for it. 2025-01-31 19:59:10 -08:00
Vollstrecker
6762467523 CMake: Rename examples and tests to avoid chain building confusion. 2025-01-31 19:58:40 -08:00
Vollstrecker
76c6a8601c CMake: Set version in project call.
Use variables set by it.
2025-01-31 07:41:44 -08:00
Vollstrecker
6628a10f14 CMake: Move versionscript block to zlib definition. 2025-01-31 07:41:44 -08:00
Vollstrecker
7f849d109f CMake: Bump minimum version. 2025-01-31 07:41:44 -08:00
Vollstrecker
ae5946e5d8 CMake: Add pdb install.
Adjust minimum required version for regex.
2025-01-31 07:41:44 -08:00
Vollstrecker
74247f0947 CMake: Install libs with static and debug suffix.
Add option to also install zlib1.ddl for compatibility.
2025-01-31 07:41:44 -08:00
Vollstrecker
ee00230f8e CMake: Switch to GNUInstallDirs. 2025-01-31 07:41:44 -08:00
Vollstrecker
b3907c2cd9 CMake: Add options for shared and static build. 2025-01-31 07:41:43 -08:00
Josh Varga
2359cd3d60 Add Bazel targets. 2025-01-21 23:29:35 -05:00
Mark Adler
71045aef60 Fix indent in infback.c. 2024-12-30 18:52:33 -08:00
Mark Adler
ef24c4c750 Reject invalid MAX_WBITS values at compile time. 2024-11-08 19:37:34 -08:00
AlexisWilke
6d3a66a11a Avoid attempting to redefine z_const in zconf.h. 2024-10-13 17:40:35 -07:00
Oscar Lesta
64191119d8 Add Haiku to configure for proper LDSHARED settings. 2024-10-07 07:28:11 -07:00
Mark Adler
d476828316 Repair github workflows for their updated macOS runner gcc name. 2024-09-01 13:35:20 -07:00