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 | os2 {
|
---|
54 | SOURCES += image/qpixmap_pm.cpp
|
---|
55 | }
|
---|
56 | embedded {
|
---|
57 | SOURCES += image/qpixmap_qws.cpp
|
---|
58 | }
|
---|
59 | x11 {
|
---|
60 | HEADERS += image/qpixmap_x11_p.h
|
---|
61 | SOURCES += image/qpixmap_x11.cpp
|
---|
62 | }
|
---|
63 | mac {
|
---|
64 | HEADERS += image/qpixmap_mac_p.h
|
---|
65 | SOURCES += image/qpixmap_mac.cpp
|
---|
66 | }
|
---|
67 |
|
---|
68 | # Built-in image format support
|
---|
69 | HEADERS += \
|
---|
70 | image/qbmphandler_p.h \
|
---|
71 | image/qppmhandler_p.h \
|
---|
72 | image/qxbmhandler_p.h \
|
---|
73 | image/qxpmhandler_p.h
|
---|
74 |
|
---|
75 | SOURCES += \
|
---|
76 | image/qbmphandler.cpp \
|
---|
77 | image/qppmhandler.cpp \
|
---|
78 | image/qxbmhandler.cpp \
|
---|
79 | image/qxpmhandler.cpp
|
---|
80 |
|
---|
81 | # 3rd party / system PNG support
|
---|
82 | !contains(QT_CONFIG, no-png) {
|
---|
83 | HEADERS += image/qpnghandler_p.h
|
---|
84 | SOURCES += image/qpnghandler.cpp
|
---|
85 |
|
---|
86 | contains(QT_CONFIG, system-png) {
|
---|
87 | unix:LIBS += -lpng
|
---|
88 | win32:LIBS += libpng.lib
|
---|
89 | } else {
|
---|
90 | !isEqual(QT_ARCH, i386):!isEqual(QT_ARCH, x86_64):DEFINES += PNG_NO_ASSEMBLER_CODE
|
---|
91 | INCLUDEPATH += ../3rdparty/libpng ../3rdparty/zlib
|
---|
92 | SOURCES += ../3rdparty/libpng/png.c \
|
---|
93 | ../3rdparty/libpng/pngerror.c \
|
---|
94 | ../3rdparty/libpng/pngget.c \
|
---|
95 | ../3rdparty/libpng/pngmem.c \
|
---|
96 | ../3rdparty/libpng/pngpread.c \
|
---|
97 | ../3rdparty/libpng/pngread.c \
|
---|
98 | ../3rdparty/libpng/pngrio.c \
|
---|
99 | ../3rdparty/libpng/pngrtran.c \
|
---|
100 | ../3rdparty/libpng/pngrutil.c \
|
---|
101 | ../3rdparty/libpng/pngset.c \
|
---|
102 | ../3rdparty/libpng/pngtrans.c \
|
---|
103 | ../3rdparty/libpng/pngwio.c \
|
---|
104 | ../3rdparty/libpng/pngwrite.c \
|
---|
105 | ../3rdparty/libpng/pngwtran.c \
|
---|
106 | ../3rdparty/libpng/pngwutil.c \
|
---|
107 | ../3rdparty/libpng/pnggccrd.c
|
---|
108 | }
|
---|
109 | } else {
|
---|
110 | DEFINES *= QT_NO_IMAGEFORMAT_PNG
|
---|
111 | }
|
---|