mirror of
https://github.com/reactos/reactos.git
synced 2024-09-11 13:23:51 +00:00
46 lines
985 B
CMake
46 lines
985 B
CMake
|
|
add_definitions(-DNO_VIZ)
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/zlib)
|
|
|
|
list(APPEND SOLO_SOURCE
|
|
adler32.c
|
|
crc32.c
|
|
deflate.c
|
|
inffast.c
|
|
inflate.c
|
|
inftrees.c
|
|
trees.c
|
|
zutil.c)
|
|
|
|
list(APPEND SOURCE
|
|
compress.c
|
|
gzclose.c
|
|
gzlib.c
|
|
gzread.c
|
|
gzwrite.c
|
|
infback.c
|
|
uncompr.c)
|
|
|
|
list(APPEND MINIZIP_SOURCE
|
|
contrib/minizip/crypt.h
|
|
contrib/minizip/ioapi.c
|
|
contrib/minizip/ioapi.h
|
|
contrib/minizip/iowin32.c
|
|
contrib/minizip/iowin32.h
|
|
contrib/minizip/unzip.c
|
|
contrib/minizip/unzip.h
|
|
contrib/minizip/zip.c
|
|
contrib/minizip/zip.h)
|
|
|
|
|
|
if(CMAKE_CROSSCOMPILING)
|
|
add_library(zlib ${SOURCE} ${SOLO_SOURCE})
|
|
add_library(zlib_solo ${SOLO_SOURCE})
|
|
add_target_compile_definitions(zlib_solo Z_SOLO)
|
|
add_library(minizip ${MINIZIP_SOURCE})
|
|
add_dependencies(minizip xdk)
|
|
else()
|
|
add_library(zlibhost ${SOLO_SOURCE})
|
|
add_target_compile_definitions(zlibhost Z_SOLO)
|
|
endif()
|