2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
add_definitions(
|
|
|
|
-DWIN32
|
|
|
|
-DNDEBUG
|
2018-03-06 02:12:25 +00:00
|
|
|
-DUSE_WIN32_FILEIO
|
|
|
|
-DTIF_PLATFORM_CONSOLE)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
include_directories(
|
2016-04-20 12:36:25 +00:00
|
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/libtiff
|
|
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/zlib)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2014-02-11 11:12:10 +00:00
|
|
|
list(APPEND SOURCE
|
2017-02-17 13:43:05 +00:00
|
|
|
#mkg3states.c
|
2011-05-16 13:12:07 +00:00
|
|
|
tif_aux.c
|
|
|
|
tif_close.c
|
|
|
|
tif_codec.c
|
|
|
|
tif_color.c
|
|
|
|
tif_compress.c
|
|
|
|
tif_dir.c
|
|
|
|
tif_dirinfo.c
|
|
|
|
tif_dirread.c
|
|
|
|
tif_dirwrite.c
|
|
|
|
tif_dumpmode.c
|
|
|
|
tif_error.c
|
|
|
|
tif_extension.c
|
|
|
|
tif_fax3.c
|
|
|
|
tif_fax3sm.c
|
|
|
|
tif_flush.c
|
|
|
|
tif_getimage.c
|
2017-02-17 13:43:05 +00:00
|
|
|
#tif_jbig.c
|
|
|
|
#tif_jpeg.c
|
2011-05-16 13:12:07 +00:00
|
|
|
tif_luv.c
|
2017-02-17 13:43:05 +00:00
|
|
|
#tif_lzma.c
|
2011-05-16 13:12:07 +00:00
|
|
|
tif_lzw.c
|
|
|
|
tif_next.c
|
2017-02-17 13:43:05 +00:00
|
|
|
#tif_ojpeg.c
|
2011-05-16 13:12:07 +00:00
|
|
|
tif_open.c
|
|
|
|
tif_packbits.c
|
|
|
|
tif_pixarlog.c
|
|
|
|
tif_predict.c
|
|
|
|
tif_print.c
|
|
|
|
tif_read.c
|
2017-02-17 13:43:05 +00:00
|
|
|
#tif_stream.cxx
|
2011-05-16 13:12:07 +00:00
|
|
|
tif_strip.c
|
|
|
|
tif_swab.c
|
|
|
|
tif_thunder.c
|
|
|
|
tif_tile.c
|
|
|
|
tif_version.c
|
|
|
|
tif_warning.c
|
2019-03-11 19:33:40 +00:00
|
|
|
#tif_webp.c
|
2011-05-16 13:12:07 +00:00
|
|
|
tif_win32.c
|
|
|
|
tif_write.c
|
2014-02-11 11:12:10 +00:00
|
|
|
tif_zip.c
|
2019-03-11 19:33:40 +00:00
|
|
|
#tif_zstd.c
|
2014-02-11 11:12:10 +00:00
|
|
|
precomp.h)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2019-03-20 13:19:48 +00:00
|
|
|
add_library(libtiff MODULE ${SOURCE} libtiff.def)
|
2020-09-18 09:49:18 +00:00
|
|
|
|
2012-10-24 21:44:47 +00:00
|
|
|
set_module_type(libtiff win32dll)
|
2011-05-23 18:27:16 +00:00
|
|
|
target_link_libraries(libtiff zlib getopt)
|
2012-07-21 13:22:01 +00:00
|
|
|
add_importlibs(libtiff user32 msvcrt kernel32 ntdll)
|
2014-02-11 11:12:10 +00:00
|
|
|
add_pch(libtiff precomp.h SOURCE)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(TARGET libtiff DESTINATION reactos/system32 FOR all)
|
2011-09-04 17:32:30 +00:00
|
|
|
|
2020-10-16 06:41:35 +00:00
|
|
|
if(MSVC)
|
2020-09-18 09:49:18 +00:00
|
|
|
# error C4311: 'type cast': pointer truncation from 'thandle_t' to 'int'
|
|
|
|
remove_target_compile_option(libtiff "/we4311")
|
|
|
|
# error C4312: 'type cast': conversion from 'int' to 'thandle_t' of greater size
|
|
|
|
remove_target_compile_option(libtiff "/we4312")
|
|
|
|
else()
|
2020-04-16 12:59:38 +00:00
|
|
|
target_compile_options(libtiff PRIVATE "-Wno-unused-but-set-variable")
|
2011-09-04 17:32:30 +00:00
|
|
|
endif()
|