Vollstrecker
4d74e4498e
CMake: Add the version to the exported configuration.
2 days ago
Vollstrecker
6084c550c3
CMake: Set the platform and configuration for the tests.
2 days ago
Vollstrecker
1fce5f2cdf
CMake: Add more tests.
2 days ago
Vollstrecker
7dc2b78206
CMake: Add test for usage with find_package.
2 days ago
Vollstrecker
a794225144
CMake: Permit install to put different things in different places.
2 days ago
Vollstrecker
f4624f3f03
CMake: Add zlibExport.
2 days ago
Vollstrecker
e37a1a8345
CMake: Warn if no build-type is selected.
2 days ago
Vollstrecker
f7ab6e4373
CMake: Add aliases to match the export names.
2 days ago
Vollstrecker
f0175c69e2
CMake: Add INSTALL_INTERFACE for a proper export.
2 days ago
Vollstrecker
633ec87677
CMake: Add zlib1.rc to Cygwin build.
2 days ago
Vollstrecker
48b9ee48ca
CMake: Use CMAKE_DEBUG_POSTFIX for simplification.
2 days ago
Vollstrecker
c33f3bc641
CMake: Move version setting for Cygwin into set_target_properties.
2 days ago
Vollstrecker
b6cb6f4c21
CMake: Rename examples to testing to reflect their intent.
2 days ago
Vollstrecker
c18815b630
CMake: Simplify to one install option.
...
What to install is chosen with components.
2 days ago
Vollstrecker
64e8307d6a
CMake: Make formatting consistent.
2 days ago
Vollstrecker
ffbbe01b6d
CMake: Remove allowance for unclosed constructs.
2 days ago
Vollstrecker
1af1bb6ce4
CMake: Let cmake handle zlib1.rc.
2 days ago
Vollstrecker
899ef97c4a
CMake: Use the same definition we checked for off64_t.
...
Move to target_compile_definitions.
2 days ago
Vollstrecker
31d2462c1d
CMake: Move compile_definitions to the targets.
2 days ago
Vollstrecker
feb7fd325a
CMake: Remove doubled include directories.
2 days ago
Vollstrecker
902f6eedf3
CMake: Remove checks for sys/types.h, stdint.h and stddef.h.
...
This is done by check_type_size.
2 days ago
Vollstrecker
2b2eec69b5
CMake: Remove unneeded renaming for in-tree builds and the option for it.
2 days ago
Vollstrecker
6762467523
CMake: Rename examples and tests to avoid chain building confusion.
2 days ago
Vollstrecker
76c6a8601c
CMake: Set version in project call.
...
Use variables set by it.
3 days ago
Vollstrecker
6628a10f14
CMake: Move versionscript block to zlib definition.
3 days ago
Vollstrecker
7f849d109f
CMake: Bump minimum version.
3 days ago
Vollstrecker
ae5946e5d8
CMake: Add pdb install.
...
Adjust minimum required version for regex.
3 days ago
Vollstrecker
74247f0947
CMake: Install libs with static and debug suffix.
...
Add option to also install zlib1.ddl for compatibility.
3 days ago
Vollstrecker
ee00230f8e
CMake: Switch to GNUInstallDirs.
3 days ago
Vollstrecker
b3907c2cd9
CMake: Add options for shared and static build.
3 days ago
Josh Varga
2359cd3d60
Add Bazel targets.
2 weeks ago
Mark Adler
71045aef60
Fix indent in infback.c.
1 month ago
Mark Adler
ef24c4c750
Reject invalid MAX_WBITS values at compile time.
3 months ago
AlexisWilke
6d3a66a11a
Avoid attempting to redefine z_const in zconf.h.
4 months ago
Oscar Lesta
64191119d8
Add Haiku to configure for proper LDSHARED settings.
4 months ago
Mark Adler
d476828316
Repair github workflows for their updated macOS runner gcc name.
5 months ago
Mark Adler
f7d01aae6e
Avoid out-of-bounds pointer arithmetic in inflateCopy().
...
Though it does not matter for code correctness, clang's UBSan
injects code that complains about computing a pointer from an array
where the result is out-of-bounds for that array, even though the
pointer is never dereferenced. Go figure. This commit avoids that
possibility when computing distcode in inflateCopy().
5 months ago
Mark Adler
2968a496d9
Remove unneeded dependency on limits.h in examples/zran.c.
5 months ago
Mark Adler
fff132fe7c
Avoid the use of a reserved macro name in contrib/minizip/ioapi.h.
5 months ago
Mark Adler
545f194963
Add old gcc ULONG_LONG_MAX macro to find a 64-bit type in zutil.h.
6 months ago
Mark Adler
4cacc3562b
Add header file dependencies to contrib/minizip/Makefile.
6 months ago
Mark Adler
be24a8f4ca
Avoid use of stdint.h in contrib/minizip.
6 months ago
Mark Adler
164b8e3c9f
Avoid use of uintmax_t in enough.c.
6 months ago
Meiye-lj
3f44e55d5d
Add required gzguts.h dependencies in Makefile.in.
6 months ago
Mark Adler
ceadaf28df
Fix test/infcover.c function prototype when ZLIB_CONST defined.
7 months ago
Mark Adler
3adaa095a7
One more correction for deflateUsed() bits in stored case.
7 months ago
Mark Adler
884e0c0809
Correct used bits from deflateUsed() for deflate_stored() case.
7 months ago
Mark Adler
e011d8c164
Add deflateUsed() function to get the used bits in the last byte.
...
This returns the number of used bits in the last byte of a stream
that has just been compressed with deflate.
7 months ago
Ram Shanker
534864bccd
Add build folder to .gitignore.
...
A library is usually expected to be built in a folder /build at
its root. Whenever this repository is added as a submodule of
another project and compiled, git shows all the generated files as
changes. To suppress those git messages, this ignores the build
folder.
7 months ago
Mark Adler
7e6f0784cc
Remedy conflict between libzip and minizip zip.h.
...
minizip.pc.in would add @include@/minizip to the include path,
which would permit simply #include <zip.h> to use minizip. However
that conflicts with the zip.h from libzip that is put in the root
include directory. This now does not add /minizip to the include
path. Now when using pkg-config, #include <minizip/zip.h> must be
used, where #include <zip.h> would be used for libzip. This is an
incompatible change with the previous state. Users of minizip and
pkg-config will need to update their code. #include <unzip.h> will
need to be updated to #include <minizip/unzip.h> as well.
8 months ago