# TiffIO.pri : define evrything common to TiffIO and TiffIO-debug # # $Id: TiffIO.pri,v 1.29 2006/08/30 09:40:47 gascuel Exp $ # #----------------------------------------------------------------------------- # qmake runtime options: # # DEFINES+=Q_STATIC_PLUGIN=1 (Qt3) or QT_STATICPLUGIN=1 (Qt4) # : if defined at compile time, and TiffIO.pri is included # in your project, then the codec is linked within your # project, and initialised automatically at run time. # (See test.pro for an example). # # CONFIG+=no-zlib : Do not support zlib (even if found) # CONFIG+=no-jpeg : Do not support lib jpeg (even if found) # CONFIG+=no-lzw : Do not support lzw compression from libtiff sources. # CONFIG+=no-lzw-encode : Do support lzw decode, but not encode. # #----------------------------------------------------------------------------- # # I *strongly* urge you not to compile with a different version of LibTiff... # Nevertheless, some of your folks have to live dangerously for whatever # reason, so the config file enable you to do that : # # qmake TIFF=/home/me/libtiff-3.7.4/src TiffIO.pro # compiles using a different directory to look for tiff's sources. # # qmake CONFIG+=libtiff TiffIO.pro # compiles using a precompiled tiff library, located in the TIFF_ROOT # (command line argument, or env var) directory. # # TIFF_ROOT defaults to "/usr", hence using the unix standard # "/usr/include/tiffio.h" and "/usr/lib/libtiff.so" (or .a) files. # #----------------------------------------------------------------------------- # # Using your own version of the jpeg lib (eg. from $QTDIR/src/3rdparty/libjpeg) # for win32 : # # - Compile the lib, in order to have a directory with both the jpeglib.h # and libjpeg.lib # # - run qmake with the 'JPEG=$QTDIR/src/3rdparty/libjpeg' option (or your # own directory). # # This is helpfull, because even you you install Qt3 or Qt4 with jpeg support, # they are inside a dll (Qt of plugin), where jpeg symbols are not exported, # hence you can't link against them. # #----------------------------------------------------------------------------- CONFIG -= debug_and_release debug_and_release_target CONFIG *= qt # Note: we have our own error handler, no needs to compile TIFF's own # (that generates link error on Qt4/nmake compiles). DEFINES += TIF_PLATFORM_CONSOLE=1 SOURCES += \ pcx.cpp # qt3: SOURCES += TiffIO_Qt3.cpp # qt4: SOURCES += pcx.cpp