2011-05-16 13:12:07 +00:00
|
|
|
|
2016-09-04 15:15:01 +00:00
|
|
|
add_definitions(-DNO_VIZ)
|
2012-07-18 17:13:22 +00:00
|
|
|
|
2016-09-04 17:31:50 +00:00
|
|
|
list(APPEND SOLO_SOURCE
|
2011-05-16 13:12:07 +00:00
|
|
|
adler32.c
|
|
|
|
crc32.c
|
|
|
|
deflate.c
|
|
|
|
inffast.c
|
|
|
|
inflate.c
|
|
|
|
inftrees.c
|
|
|
|
trees.c
|
|
|
|
zutil.c)
|
|
|
|
|
2016-09-04 17:31:50 +00:00
|
|
|
list(APPEND SOURCE
|
|
|
|
compress.c
|
|
|
|
gzclose.c
|
|
|
|
gzlib.c
|
|
|
|
gzread.c
|
|
|
|
gzwrite.c
|
|
|
|
infback.c
|
|
|
|
uncompr.c)
|
|
|
|
|
2018-04-03 20:15:20 +00:00
|
|
|
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)
|
|
|
|
|
|
|
|
|
2011-05-16 13:12:07 +00:00
|
|
|
if(CMAKE_CROSSCOMPILING)
|
2016-09-04 17:31:50 +00:00
|
|
|
add_library(zlib ${SOURCE} ${SOLO_SOURCE})
|
2019-11-15 13:07:46 +00:00
|
|
|
target_include_directories(zlib PRIVATE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/zlib)
|
2016-09-04 17:31:50 +00:00
|
|
|
add_library(zlib_solo ${SOLO_SOURCE})
|
2020-04-16 12:59:38 +00:00
|
|
|
target_compile_definitions(zlib_solo PRIVATE Z_SOLO)
|
2019-11-15 13:07:46 +00:00
|
|
|
target_include_directories(zlib_solo PRIVATE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/zlib)
|
2018-04-03 20:15:20 +00:00
|
|
|
add_library(minizip ${MINIZIP_SOURCE})
|
2019-04-06 11:56:48 +00:00
|
|
|
add_dependencies(minizip psdk)
|
2019-11-15 13:07:46 +00:00
|
|
|
target_include_directories(minizip PRIVATE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/zlib)
|
2011-05-16 13:12:07 +00:00
|
|
|
else()
|
2017-02-05 09:42:43 +00:00
|
|
|
add_library(zlibhost ${SOLO_SOURCE})
|
2020-04-16 12:59:38 +00:00
|
|
|
target_compile_definitions(zlibhost PRIVATE Z_SOLO)
|
2019-11-15 13:07:46 +00:00
|
|
|
target_include_directories(zlibhost PUBLIC ${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/zlib)
|
2011-05-16 13:12:07 +00:00
|
|
|
endif()
|