| 1 | # -*-mode:sh-*-
|
|---|
| 2 | # Qt image handling
|
|---|
| 3 |
|
|---|
| 4 | # Qt kernel module
|
|---|
| 5 |
|
|---|
| 6 | HEADERS += \
|
|---|
| 7 | image/qbitmap.h \
|
|---|
| 8 | image/qicon.h \
|
|---|
| 9 | image/qiconengine.h \
|
|---|
| 10 | image/qiconengineplugin.h \
|
|---|
| 11 | image/qimage.h \
|
|---|
| 12 | image/qimage_p.h \
|
|---|
| 13 | image/qimageiohandler.h \
|
|---|
| 14 | image/qimagereader.h \
|
|---|
| 15 | image/qimagewriter.h \
|
|---|
| 16 | image/qmovie.h \
|
|---|
| 17 | image/qnativeimage_p.h \
|
|---|
| 18 | image/qpaintengine_pic_p.h \
|
|---|
| 19 | image/qpicture.h \
|
|---|
| 20 | image/qpicture_p.h \
|
|---|
| 21 | image/qpictureformatplugin.h \
|
|---|
| 22 | image/qpixmap.h \
|
|---|
| 23 | image/qpixmap_raster_p.h \
|
|---|
| 24 | image/qpixmapcache.h \
|
|---|
| 25 | image/qpixmapdata_p.h \
|
|---|
| 26 | image/qpixmapdatafactory_p.h \
|
|---|
| 27 | image/qpixmapfilter_p.h
|
|---|
| 28 |
|
|---|
| 29 | SOURCES += \
|
|---|
| 30 | image/qbitmap.cpp \
|
|---|
| 31 | image/qicon.cpp \
|
|---|
| 32 | image/qimage.cpp \
|
|---|
| 33 | image/qimageiohandler.cpp \
|
|---|
| 34 | image/qimagereader.cpp \
|
|---|
| 35 | image/qimagewriter.cpp \
|
|---|
| 36 | image/qpaintengine_pic.cpp \
|
|---|
| 37 | image/qpicture.cpp \
|
|---|
| 38 | image/qpictureformatplugin.cpp \
|
|---|
| 39 | image/qpixmap.cpp \
|
|---|
| 40 | image/qpixmapcache.cpp \
|
|---|
| 41 | image/qpixmapdata.cpp \
|
|---|
| 42 | image/qpixmapdatafactory.cpp \
|
|---|
| 43 | image/qpixmapfilter.cpp \
|
|---|
| 44 | image/qiconengine.cpp \
|
|---|
| 45 | image/qiconengineplugin.cpp \
|
|---|
| 46 | image/qmovie.cpp \
|
|---|
| 47 | image/qpixmap_raster.cpp \
|
|---|
| 48 | image/qnativeimage.cpp \
|
|---|
| 49 |
|
|---|
| 50 | win32 {
|
|---|
| 51 | SOURCES += image/qpixmap_win.cpp
|
|---|
| 52 | }
|
|---|
| 53 | embedded {
|
|---|
| 54 | SOURCES += image/qpixmap_qws.cpp
|
|---|
| 55 | }
|
|---|
| 56 | x11 {
|
|---|
| 57 | HEADERS += image/qpixmap_x11_p.h
|
|---|
| 58 | SOURCES += image/qpixmap_x11.cpp
|
|---|
| 59 | }
|
|---|
| 60 | mac {
|
|---|
| 61 | HEADERS += image/qpixmap_mac_p.h
|
|---|
| 62 | SOURCES += image/qpixmap_mac.cpp
|
|---|
| 63 | }
|
|---|
| 64 |
|
|---|
| 65 | # Built-in image format support
|
|---|
| 66 | HEADERS += \
|
|---|
| 67 | image/qbmphandler_p.h \
|
|---|
| 68 | image/qppmhandler_p.h \
|
|---|
| 69 | image/qxbmhandler_p.h \
|
|---|
| 70 | image/qxpmhandler_p.h
|
|---|
| 71 |
|
|---|
| 72 | SOURCES += \
|
|---|
| 73 | image/qbmphandler.cpp \
|
|---|
| 74 | image/qppmhandler.cpp \
|
|---|
| 75 | image/qxbmhandler.cpp \
|
|---|
| 76 | image/qxpmhandler.cpp
|
|---|
| 77 |
|
|---|
| 78 | # 3rd party / system PNG support
|
|---|
| 79 | !contains(QT_CONFIG, no-png) {
|
|---|
| 80 | HEADERS += image/qpnghandler_p.h
|
|---|
| 81 | SOURCES += image/qpnghandler.cpp
|
|---|
| 82 |
|
|---|
| 83 | contains(QT_CONFIG, system-png) {
|
|---|
| 84 | unix:LIBS += -lpng
|
|---|
| 85 | win32:LIBS += libpng.lib
|
|---|
| 86 | } else {
|
|---|
| 87 | !isEqual(QT_ARCH, i386):!isEqual(QT_ARCH, x86_64):DEFINES += PNG_NO_ASSEMBLER_CODE
|
|---|
| 88 | INCLUDEPATH += ../3rdparty/libpng ../3rdparty/zlib
|
|---|
| 89 | SOURCES += ../3rdparty/libpng/png.c \
|
|---|
| 90 | ../3rdparty/libpng/pngerror.c \
|
|---|
| 91 | ../3rdparty/libpng/pngget.c \
|
|---|
| 92 | ../3rdparty/libpng/pngmem.c \
|
|---|
| 93 | ../3rdparty/libpng/pngpread.c \
|
|---|
| 94 | ../3rdparty/libpng/pngread.c \
|
|---|
| 95 | ../3rdparty/libpng/pngrio.c \
|
|---|
| 96 | ../3rdparty/libpng/pngrtran.c \
|
|---|
| 97 | ../3rdparty/libpng/pngrutil.c \
|
|---|
| 98 | ../3rdparty/libpng/pngset.c \
|
|---|
| 99 | ../3rdparty/libpng/pngtrans.c \
|
|---|
| 100 | ../3rdparty/libpng/pngwio.c \
|
|---|
| 101 | ../3rdparty/libpng/pngwrite.c \
|
|---|
| 102 | ../3rdparty/libpng/pngwtran.c \
|
|---|
| 103 | ../3rdparty/libpng/pngwutil.c \
|
|---|
| 104 | ../3rdparty/libpng/pnggccrd.c
|
|---|
| 105 | }
|
|---|
| 106 | } else {
|
|---|
| 107 | DEFINES *= QT_NO_IMAGEFORMAT_PNG
|
|---|
| 108 | }
|
|---|