diff options
| author | Vollstrecker <werner@vollstreckernet.de> | 2025-12-31 10:52:11 +0100 |
|---|---|---|
| committer | Mark Adler <git@madler.net> | 2026-01-12 10:55:15 -0800 |
| commit | f7df8cc974c5ca0f2d1ec3a5b93f10dd852973a8 (patch) | |
| tree | 43ee37780bebca4e5227ee2a944174900727ca80 | |
| parent | 6f0e6f10b18c9a3f6f7f540c1250cb4a340c2a49 (diff) | |
| download | zlib-f7df8cc974c5ca0f2d1ec3a5b93f10dd852973a8.tar.gz zlib-f7df8cc974c5ca0f2d1ec3a5b93f10dd852973a8.tar.bz2 zlib-f7df8cc974c5ca0f2d1ec3a5b93f10dd852973a8.zip | |
CMake: Added contrib/infback9.
| -rw-r--r-- | contrib/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | contrib/infback9/CMakeLists.txt | 19 |
2 files changed, 23 insertions, 0 deletions
diff --git a/contrib/CMakeLists.txt b/contrib/CMakeLists.txt index f5916f3..c3e302a 100644 --- a/contrib/CMakeLists.txt +++ b/contrib/CMakeLists.txt | |||
| @@ -4,6 +4,7 @@ option(ZLIB_BUILD_MINIZIP "Enable building libminizip contrib library" OFF) | |||
| 4 | option(ZLIB_WITH_GVMAT64 | 4 | option(ZLIB_WITH_GVMAT64 |
| 5 | "Enable an optiomized longest_match for 32 bits x86_64" | 5 | "Enable an optiomized longest_match for 32 bits x86_64" |
| 6 | OFF) | 6 | OFF) |
| 7 | option(ZLIB_WITH_INFBACK9 "Build with support for method 9 deflate" OFF) | ||
| 7 | 8 | ||
| 8 | if(ZLIB_BUILD_ADA) | 9 | if(ZLIB_BUILD_ADA) |
| 9 | set(ZLIBADA_BUILD_SHARED ${ZLIB_BUILD_SHARED}) | 10 | set(ZLIBADA_BUILD_SHARED ${ZLIB_BUILD_SHARED}) |
| @@ -29,3 +30,6 @@ endif(ZLIB_BUILD_MINIZIP) | |||
| 29 | if(ZLIB_WITH_GVMAT64) | 30 | if(ZLIB_WITH_GVMAT64) |
| 30 | add_subdirectory(gcc_gvmat64/) | 31 | add_subdirectory(gcc_gvmat64/) |
| 31 | endif(ZLIB_WITH_GVMAT64) | 32 | endif(ZLIB_WITH_GVMAT64) |
| 33 | if(ZLIB_WITH_INFBACK9) | ||
| 34 | add_subdirectory(infback9/) | ||
| 35 | endif(ZLIB_WITH_INFBACK9) | ||
diff --git a/contrib/infback9/CMakeLists.txt b/contrib/infback9/CMakeLists.txt new file mode 100644 index 0000000..e4bb49e --- /dev/null +++ b/contrib/infback9/CMakeLists.txt | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | if(ZLIB_BUILD_SHARED) | ||
| 2 | target_sources(zlib | ||
| 3 | PRIVATE | ||
| 4 | infback9.c | ||
| 5 | inftree9.c | ||
| 6 | infback9.h | ||
| 7 | inffix9.h | ||
| 8 | inftree9.h) | ||
| 9 | endif(ZLIB_BUILD_SHARED) | ||
| 10 | |||
| 11 | if(ZLIB_BUILD_STATIC) | ||
| 12 | target_sources(zlibstatic | ||
| 13 | PRIVATE | ||
| 14 | infback9.c | ||
| 15 | inftree9.c | ||
| 16 | infback9.h | ||
| 17 | inffix9.h | ||
| 18 | inftree9.h) | ||
| 19 | endif(ZLIB_BUILD_STATIC) | ||
