diff options
| author | Vollstrecker <werner@vollstreckernet.de> | 2025-12-30 18:49:01 +0100 |
|---|---|---|
| committer | Mark Adler <git@madler.net> | 2026-01-12 10:55:15 -0800 |
| commit | 6f0e6f10b18c9a3f6f7f540c1250cb4a340c2a49 (patch) | |
| tree | e8f8cfa519c5df45d8affb66eae365b09c82897f | |
| parent | fe28c0216e61770b6b1adb6886f74e40dac9e529 (diff) | |
| download | zlib-6f0e6f10b18c9a3f6f7f540c1250cb4a340c2a49.tar.gz zlib-6f0e6f10b18c9a3f6f7f540c1250cb4a340c2a49.tar.bz2 zlib-6f0e6f10b18c9a3f6f7f540c1250cb4a340c2a49.zip | |
CMake: Added contrib/gcc_gvmat64.
| -rw-r--r-- | contrib/CMakeLists.txt | 7 | ||||
| -rw-r--r-- | contrib/gcc_gvmat64/CMakeLists.txt | 14 |
2 files changed, 21 insertions, 0 deletions
diff --git a/contrib/CMakeLists.txt b/contrib/CMakeLists.txt index 63a838d..f5916f3 100644 --- a/contrib/CMakeLists.txt +++ b/contrib/CMakeLists.txt | |||
| @@ -1,6 +1,9 @@ | |||
| 1 | option(ZLIB_BUILD_ADA "Enable building of Ada bindings" OFF) | 1 | option(ZLIB_BUILD_ADA "Enable building of Ada bindings" OFF) |
| 2 | option(ZLIB_BUILD_BLAST "Enable building of blast binary" OFF) | 2 | option(ZLIB_BUILD_BLAST "Enable building of blast binary" OFF) |
| 3 | option(ZLIB_BUILD_MINIZIP "Enable building libminizip contrib library" OFF) | 3 | option(ZLIB_BUILD_MINIZIP "Enable building libminizip contrib library" OFF) |
| 4 | option(ZLIB_WITH_GVMAT64 | ||
| 5 | "Enable an optiomized longest_match for 32 bits x86_64" | ||
| 6 | OFF) | ||
| 4 | 7 | ||
| 5 | if(ZLIB_BUILD_ADA) | 8 | if(ZLIB_BUILD_ADA) |
| 6 | set(ZLIBADA_BUILD_SHARED ${ZLIB_BUILD_SHARED}) | 9 | set(ZLIBADA_BUILD_SHARED ${ZLIB_BUILD_SHARED}) |
| @@ -22,3 +25,7 @@ if(ZLIB_BUILD_MINIZIP) | |||
| 22 | set(MINIZIP_BUILD_TESTING ${ZLIB_BUILD_TESTING}) | 25 | set(MINIZIP_BUILD_TESTING ${ZLIB_BUILD_TESTING}) |
| 23 | add_subdirectory(minizip/) | 26 | add_subdirectory(minizip/) |
| 24 | endif(ZLIB_BUILD_MINIZIP) | 27 | endif(ZLIB_BUILD_MINIZIP) |
| 28 | |||
| 29 | if(ZLIB_WITH_GVMAT64) | ||
| 30 | add_subdirectory(gcc_gvmat64/) | ||
| 31 | endif(ZLIB_WITH_GVMAT64) | ||
diff --git a/contrib/gcc_gvmat64/CMakeLists.txt b/contrib/gcc_gvmat64/CMakeLists.txt new file mode 100644 index 0000000..2f90d75 --- /dev/null +++ b/contrib/gcc_gvmat64/CMakeLists.txt | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | enable_language(ASM) | ||
| 2 | |||
| 3 | # Need to push CMAKE_ASM_COMPILE_OBJECT to cache as otherwise it's not | ||
| 4 | # available in top-level | ||
| 5 | |||
| 6 | set(CMAKE_ASM_COMPILE_OBJECT ${CMAKE_ASM_COMPILE_OBJECT} CACHE INTERNAL "" FORCE) | ||
| 7 | |||
| 8 | if(ZLIB_BUILD_SHARED) | ||
| 9 | target_sources(zlib PRIVATE gvmat64.S) | ||
| 10 | endif(ZLIB_BUILD_SHARED) | ||
| 11 | |||
| 12 | if(ZLIB_BUILD_STATIC) | ||
| 13 | target_sources(zlibstatic PRIVATE gvmat64.S) | ||
| 14 | endif(ZLIB_BUILD_STATIC) | ||
