Skip to content

Commit

Permalink
Initial CMake'ified version of zlib based on CMake a186124
Browse files Browse the repository at this point in the history
  • Loading branch information
jcfr committed Mar 2, 2012
0 parents commit 62601ff
Show file tree
Hide file tree
Showing 33 changed files with 11,846 additions and 0 deletions.
1 change: 1 addition & 0 deletions .NoDartCoverage
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# do not do coverage in this directory
43 changes: 43 additions & 0 deletions CMakeLists.txt
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)
855 changes: 855 additions & 0 deletions ChangeLog

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions Copyright.txt
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]
Loading

0 comments on commit 62601ff

Please sign in to comment.