# Generated from tiff.pro.

#####################################################################
## QTiffPlugin Plugin:
#####################################################################

qt_internal_add_plugin(QTiffPlugin
    OUTPUT_NAME qtiff
    TYPE imageformats
    SOURCES
        main.cpp
        qtiffhandler.cpp qtiffhandler_p.h
    PUBLIC_LIBRARIES
        Qt::Core
        Qt::Gui
)

#### Keys ignored in scope 1:.:.:tiff.pro:<TRUE>:
# OTHER_FILES = "tiff.json"
# QT_FOR_CONFIG = "imageformats-private"

## Scopes:
#####################################################################

qt_internal_extend_target(QTiffPlugin CONDITION QT_FEATURE_system_tiff
    LIBRARIES
        TIFF::TIFF
)

qt_internal_extend_target(QTiffPlugin CONDITION NOT QT_FEATURE_system_tiff
    SOURCES
        ../../../3rdparty/libtiff/libtiff/tif_aux.c
        ../../../3rdparty/libtiff/libtiff/tif_close.c
        ../../../3rdparty/libtiff/libtiff/tif_codec.c
        ../../../3rdparty/libtiff/libtiff/tif_color.c
        ../../../3rdparty/libtiff/libtiff/tif_compress.c
        ../../../3rdparty/libtiff/libtiff/tif_dir.c
        ../../../3rdparty/libtiff/libtiff/tif_dirinfo.c
        ../../../3rdparty/libtiff/libtiff/tif_dirread.c
        ../../../3rdparty/libtiff/libtiff/tif_dirwrite.c
        ../../../3rdparty/libtiff/libtiff/tif_dumpmode.c
        ../../../3rdparty/libtiff/libtiff/tif_error.c
        ../../../3rdparty/libtiff/libtiff/tif_extension.c
        ../../../3rdparty/libtiff/libtiff/tif_fax3.c
        ../../../3rdparty/libtiff/libtiff/tif_fax3sm.c
        ../../../3rdparty/libtiff/libtiff/tif_flush.c
        ../../../3rdparty/libtiff/libtiff/tif_getimage.c
        ../../../3rdparty/libtiff/libtiff/tif_luv.c
        ../../../3rdparty/libtiff/libtiff/tif_lzw.c
        ../../../3rdparty/libtiff/libtiff/tif_next.c
        ../../../3rdparty/libtiff/libtiff/tif_open.c
        ../../../3rdparty/libtiff/libtiff/tif_packbits.c
        ../../../3rdparty/libtiff/libtiff/tif_pixarlog.c
        ../../../3rdparty/libtiff/libtiff/tif_predict.c
        ../../../3rdparty/libtiff/libtiff/tif_print.c
        ../../../3rdparty/libtiff/libtiff/tif_read.c
        ../../../3rdparty/libtiff/libtiff/tif_strip.c
        ../../../3rdparty/libtiff/libtiff/tif_swab.c
        ../../../3rdparty/libtiff/libtiff/tif_thunder.c
        ../../../3rdparty/libtiff/libtiff/tif_tile.c
        ../../../3rdparty/libtiff/libtiff/tif_version.c
        ../../../3rdparty/libtiff/libtiff/tif_warning.c
        ../../../3rdparty/libtiff/libtiff/tif_write.c
        ../../../3rdparty/libtiff/libtiff/tif_zip.c
        ../../../3rdparty/libtiff/port/snprintf.c
    INCLUDE_DIRECTORIES
        ../../../3rdparty/libtiff/libtiff
)

qt_internal_extend_target(QTiffPlugin CONDITION WIN32 AND NOT QT_FEATURE_system_tiff
    SOURCES
        ../../../3rdparty/libtiff/libtiff/tif_win32.c
)

qt_internal_extend_target(QTiffPlugin CONDITION UNIX AND NOT QT_FEATURE_system_tiff
    SOURCES
        ../../../3rdparty/libtiff/libtiff/tif_unix.c
)

qt_internal_extend_target(QTiffPlugin CONDITION ANDROID AND NOT QT_FEATURE_system_tiff
    SOURCES
        ../../../3rdparty/libtiff/port/lfind.c
)

qt_internal_extend_target(QTiffPlugin CONDITION QT_FEATURE_system_zlib AND NOT QT_FEATURE_system_tiff
    LIBRARIES
        ZLIB::ZLIB
)

qt_internal_extend_target(QTiffPlugin CONDITION NOT QT_FEATURE_system_tiff AND NOT QT_FEATURE_system_zlib
    LIBRARIES
        Qt::ZlibPrivate
)
