| 1 | TARGET = qtiff
|
|---|
| 2 | include(../../qpluginbase.pri)
|
|---|
| 3 |
|
|---|
| 4 | QTDIR_build:REQUIRES = "!contains(QT_CONFIG, no-tiff)"
|
|---|
| 5 |
|
|---|
| 6 | HEADERS += qtiffhandler.h
|
|---|
| 7 | SOURCES += main.cpp \
|
|---|
| 8 | qtiffhandler.cpp
|
|---|
| 9 |
|
|---|
| 10 | contains(QT_CONFIG, system-tiff) {
|
|---|
| 11 | unix:LIBS += -ltiff
|
|---|
| 12 | win32:LIBS += libtiff.lib
|
|---|
| 13 | }
|
|---|
| 14 | !contains(QT_CONFIG, system-tiff) {
|
|---|
| 15 | INCLUDEPATH += ../../../3rdparty/libtiff/libtiff
|
|---|
| 16 | SOURCES += \
|
|---|
| 17 | ../../../3rdparty/libtiff/libtiff/tif_aux.c \
|
|---|
| 18 | ../../../3rdparty/libtiff/libtiff/tif_close.c \
|
|---|
| 19 | ../../../3rdparty/libtiff/libtiff/tif_codec.c \
|
|---|
| 20 | ../../../3rdparty/libtiff/libtiff/tif_color.c \
|
|---|
| 21 | ../../../3rdparty/libtiff/libtiff/tif_compress.c \
|
|---|
| 22 | ../../../3rdparty/libtiff/libtiff/tif_dir.c \
|
|---|
| 23 | ../../../3rdparty/libtiff/libtiff/tif_dirinfo.c \
|
|---|
| 24 | ../../../3rdparty/libtiff/libtiff/tif_dirread.c \
|
|---|
| 25 | ../../../3rdparty/libtiff/libtiff/tif_dirwrite.c \
|
|---|
| 26 | ../../../3rdparty/libtiff/libtiff/tif_dumpmode.c \
|
|---|
| 27 | ../../../3rdparty/libtiff/libtiff/tif_error.c \
|
|---|
| 28 | ../../../3rdparty/libtiff/libtiff/tif_extension.c \
|
|---|
| 29 | ../../../3rdparty/libtiff/libtiff/tif_fax3.c \
|
|---|
| 30 | ../../../3rdparty/libtiff/libtiff/tif_fax3sm.c \
|
|---|
| 31 | ../../../3rdparty/libtiff/libtiff/tif_flush.c \
|
|---|
| 32 | ../../../3rdparty/libtiff/libtiff/tif_getimage.c \
|
|---|
| 33 | ../../../3rdparty/libtiff/libtiff/tif_luv.c \
|
|---|
| 34 | ../../../3rdparty/libtiff/libtiff/tif_lzw.c \
|
|---|
| 35 | ../../../3rdparty/libtiff/libtiff/tif_next.c \
|
|---|
| 36 | ../../../3rdparty/libtiff/libtiff/tif_open.c \
|
|---|
| 37 | ../../../3rdparty/libtiff/libtiff/tif_packbits.c \
|
|---|
| 38 | ../../../3rdparty/libtiff/libtiff/tif_pixarlog.c \
|
|---|
| 39 | ../../../3rdparty/libtiff/libtiff/tif_predict.c \
|
|---|
| 40 | ../../../3rdparty/libtiff/libtiff/tif_print.c \
|
|---|
| 41 | ../../../3rdparty/libtiff/libtiff/tif_read.c \
|
|---|
| 42 | ../../../3rdparty/libtiff/libtiff/tif_strip.c \
|
|---|
| 43 | ../../../3rdparty/libtiff/libtiff/tif_swab.c \
|
|---|
| 44 | ../../../3rdparty/libtiff/libtiff/tif_thunder.c \
|
|---|
| 45 | ../../../3rdparty/libtiff/libtiff/tif_tile.c \
|
|---|
| 46 | ../../../3rdparty/libtiff/libtiff/tif_version.c \
|
|---|
| 47 | ../../../3rdparty/libtiff/libtiff/tif_warning.c \
|
|---|
| 48 | ../../../3rdparty/libtiff/libtiff/tif_write.c \
|
|---|
| 49 | ../../../3rdparty/libtiff/libtiff/tif_zip.c
|
|---|
| 50 | win32 {
|
|---|
| 51 | SOURCES += ../../../3rdparty/libtiff/libtiff/tif_win32.c
|
|---|
| 52 | }
|
|---|
| 53 | os2 {
|
|---|
| 54 | SOURCES += ../../../3rdparty/libtiff/libtiff/tif_unix.c
|
|---|
| 55 | }
|
|---|
| 56 | unix: {
|
|---|
| 57 | SOURCES += ../../../3rdparty/libtiff/libtiff/tif_unix.c
|
|---|
| 58 | }
|
|---|
| 59 | wince*: {
|
|---|
| 60 | SOURCES += ../../../corelib/kernel/qfunctions_wince.cpp
|
|---|
| 61 | }
|
|---|
| 62 | }
|
|---|
| 63 |
|
|---|
| 64 | contains(QT_CONFIG, system-zlib) {
|
|---|
| 65 | LIBS += -lz
|
|---|
| 66 | }
|
|---|
| 67 | !contains(QT_CONFIG, system-zlib) {
|
|---|
| 68 | INCLUDEPATH += ../../../3rdparty/zlib
|
|---|
| 69 | }
|
|---|
| 70 |
|
|---|
| 71 | QTDIR_build:DESTDIR = $$QT_BUILD_TREE/plugins/imageformats
|
|---|
| 72 | target.path += $$[QT_INSTALL_PLUGINS]/imageformats
|
|---|
| 73 | INSTALLS += target
|
|---|