-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial CMake'ified version of zlib based on CMake a186124
- Loading branch information
0 parents
commit 62601ff
Showing
33 changed files
with
11,846 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# do not do coverage in this directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
PROJECT(CMZLIB) | ||
|
||
INCLUDE_DIRECTORIES( | ||
"${CMZLIB_SOURCE_DIR}" | ||
"${CMZLIB_SOURCE_DIR}/.." | ||
"${CMZLIB_BINARY_DIR}/.." | ||
) | ||
|
||
# source files for zlib | ||
SET(ZLIB_SRCS | ||
adler32.c compress.c crc32.c deflate.c gzio.c inffast.c | ||
inflate.c inftrees.c trees.c uncompr.c zutil.c | ||
) | ||
|
||
# for windows add the .def and .rc files to the source list | ||
# if building shared libs | ||
IF(WIN32) | ||
IF(BUILD_SHARED_LIBS) | ||
SET(ZLIB_DLL 1) | ||
IF(NOT UNIX) | ||
IF(NOT BORLAND) | ||
IF(NOT MINGW) | ||
SET(ZLIB_SRCS ${ZLIB_SRCS} zlib.def zlib.rc ) | ||
ENDIF(NOT MINGW) | ||
ENDIF(NOT BORLAND) | ||
ENDIF(NOT UNIX) | ||
ENDIF(BUILD_SHARED_LIBS) | ||
ENDIF(WIN32) | ||
|
||
CONFIGURE_FILE(${CMZLIB_SOURCE_DIR}/.NoDartCoverage | ||
${CMZLIB_BINARY_DIR}/.NoDartCoverage) | ||
CONFIGURE_FILE(${CMZLIB_SOURCE_DIR}/zlibDllConfig.h.in | ||
${CMZLIB_BINARY_DIR}/zlibDllConfig.h) | ||
|
||
FOREACH(name zlib zconf cm_zlib_mangle) | ||
CONFIGURE_FILE(${CMZLIB_SOURCE_DIR}/${name}.h | ||
${CMZLIB_BINARY_DIR}/${name}.h COPYONLY) | ||
ENDFOREACH(name) | ||
|
||
|
||
ADD_LIBRARY(cmzlib ${ZLIB_SRCS}) | ||
|
||
INSTALL(FILES Copyright.txt DESTINATION ${CMake_DOC_DEST}/cmzlib) |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
'zlib' general purpose compression library | ||
version 1.2.3, July 18th, 2005 | ||
|
||
Copyright (C) 1995-2005 Jean-loup Gailly and Mark Adler | ||
|
||
This software is provided 'as-is', without any express or implied | ||
warranty. In no event will the authors be held liable for any damages | ||
arising from the use of this software. | ||
|
||
Permission is granted to anyone to use this software for any purpose, | ||
including commercial applications, and to alter it and redistribute it | ||
freely, subject to the following restrictions: | ||
|
||
1. The origin of this software must not be misrepresented; you must not | ||
claim that you wrote the original software. If you use this software | ||
in a product, an acknowledgment in the product documentation would be | ||
appreciated but is not required. | ||
2. Altered source versions must be plainly marked as such, and must not be | ||
misrepresented as being the original software. | ||
3. This notice may not be removed or altered from any source distribution. | ||
|
||
Jean-loup Gailly Mark Adler | ||
[email protected] [email protected] |
Oops, something went wrong.