1 2add_definitions(-DNO_VIZ) 3include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/zlib) 4 5list(APPEND SOLO_SOURCE 6 adler32.c 7 crc32.c 8 deflate.c 9 inffast.c 10 inflate.c 11 inftrees.c 12 trees.c 13 zutil.c) 14 15list(APPEND SOURCE 16 compress.c 17 gzclose.c 18 gzlib.c 19 gzread.c 20 gzwrite.c 21 infback.c 22 uncompr.c) 23 24list(APPEND MINIZIP_SOURCE 25 contrib/minizip/crypt.h 26 contrib/minizip/ioapi.c 27 contrib/minizip/ioapi.h 28 contrib/minizip/iowin32.c 29 contrib/minizip/iowin32.h 30 contrib/minizip/unzip.c 31 contrib/minizip/unzip.h 32 contrib/minizip/zip.c 33 contrib/minizip/zip.h) 34 35 36if(CMAKE_CROSSCOMPILING) 37 add_library(zlib ${SOURCE} ${SOLO_SOURCE}) 38 add_library(zlib_solo ${SOLO_SOURCE}) 39 add_target_compile_definitions(zlib_solo Z_SOLO) 40 add_library(minizip ${MINIZIP_SOURCE}) 41 add_dependencies(minizip xdk) 42else() 43 add_library(zlibhost ${SOLO_SOURCE}) 44 add_target_compile_definitions(zlibhost Z_SOLO) 45endif() 46