summaryrefslogtreecommitdiffstats
path: root/src/kernel/qt_gfx.pri
blob: f0124824e0ffee080ae5e263e9d9df9e6dc7e763 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
# TQt graphics 

#mng support
HEADERS += $$KERNEL_H/ntqmngio.h
SOURCES += $$KERNEL_CPP/qmngio.cpp
mng {
        system-mng {
	    win32:LIBS += libmng.lib
            unix:LIBS  += -lmng
        } else {
	   INCLUDEPATH        += 3rdparty/libmng
	   SOURCES += 3rdparty/libmng/libmng_callback_xs.c \
		  3rdparty/libmng/libmng_chunk_io.c \
		  3rdparty/libmng/libmng_chunk_prc.c \
		  3rdparty/libmng/libmng_chunk_xs.c \
		  3rdparty/libmng/libmng_cms.c \
		  3rdparty/libmng/libmng_display.c \
		  3rdparty/libmng/libmng_dither.c \
		  3rdparty/libmng/libmng_error.c \
		  3rdparty/libmng/libmng_filter.c \
		  3rdparty/libmng/libmng_hlapi.c \
		  3rdparty/libmng/libmng_jpeg.c \
		  3rdparty/libmng/libmng_object_prc.c \
		  3rdparty/libmng/libmng_pixels.c \
		  3rdparty/libmng/libmng_prop_xs.c \
		  3rdparty/libmng/libmng_read.c \
		  3rdparty/libmng/libmng_trace.c \
		  3rdparty/libmng/libmng_write.c \
		  3rdparty/libmng/libmng_zlib.c
        }
	no-jpeg {
		message(Use of mng requires support for jpeg)
		CONFIG += jpeg
	} else:!jpeg {
		message(Use of mng requires support for jpeg)
		CONFIG += jpeg
	}
}
else:DEFINES += TQT_NO_IMAGEIO_MNG

#jpeg support..
HEADERS += $$KERNEL_H/ntqjpegio.h 
SOURCES += $$KERNEL_CPP/qjpegio.cpp
jpeg {
        system-jpeg {
	   unix:LIBS += -ljpeg
	   win32:LIBS += libjpeg.lib
	} else {
	    INCLUDEPATH += 3rdparty/libjpeg
	    SOURCES += 3rdparty/libjpeg/jcapimin.c \
		  3rdparty/libjpeg/jcapistd.c \
		  3rdparty/libjpeg/jccoefct.c \
		  3rdparty/libjpeg/jccolor.c \
		  3rdparty/libjpeg/jcdctmgr.c \
		  3rdparty/libjpeg/jchuff.c \
		  3rdparty/libjpeg/jcinit.c \
		  3rdparty/libjpeg/jcmainct.c \
		  3rdparty/libjpeg/jcmarker.c \
		  3rdparty/libjpeg/jcmaster.c \
		  3rdparty/libjpeg/jcomapi.c \
		  3rdparty/libjpeg/jcparam.c \
		  3rdparty/libjpeg/jcphuff.c \
		  3rdparty/libjpeg/jcprepct.c \
		  3rdparty/libjpeg/jcsample.c \
		  3rdparty/libjpeg/jctrans.c \
		  3rdparty/libjpeg/jdapimin.c \
		  3rdparty/libjpeg/jdapistd.c \
		  3rdparty/libjpeg/jdatadst.c \
		  3rdparty/libjpeg/jdatasrc.c \
		  3rdparty/libjpeg/jdcoefct.c \
		  3rdparty/libjpeg/jdcolor.c \
		  3rdparty/libjpeg/jddctmgr.c \
		  3rdparty/libjpeg/jdhuff.c \
		  3rdparty/libjpeg/jdinput.c \
		  3rdparty/libjpeg/jdmainct.c \
		  3rdparty/libjpeg/jdmarker.c \
		  3rdparty/libjpeg/jdmaster.c \
		  3rdparty/libjpeg/jdmerge.c \
		  3rdparty/libjpeg/jdphuff.c \
		  3rdparty/libjpeg/jdpostct.c \
		  3rdparty/libjpeg/jdsample.c \
		  3rdparty/libjpeg/jdtrans.c \
		  3rdparty/libjpeg/jerror.c \
		  3rdparty/libjpeg/jfdctflt.c \
		  3rdparty/libjpeg/jfdctfst.c \
		  3rdparty/libjpeg/jfdctint.c \
		  3rdparty/libjpeg/jidctflt.c \
		  3rdparty/libjpeg/jidctfst.c \
		  3rdparty/libjpeg/jidctint.c \
		  3rdparty/libjpeg/jidctred.c \
		  3rdparty/libjpeg/jmemmgr.c \
		  3rdparty/libjpeg/jquant1.c \
		  3rdparty/libjpeg/jquant2.c \
		  3rdparty/libjpeg/jutils.c \
		  3rdparty/libjpeg/jmemnobs.c
        }
}
else:DEFINES += TQT_NO_IMAGEIO_JPEG

#png support
HEADERS+=$$KERNEL_H/ntqpngio.h
SOURCES+=$$KERNEL_CPP/qpngio.cpp
png {
        system-png {
	    unix:LIBS  += -lpng
	    win32:LIBS += libpng.lib
	} else {
	    INCLUDEPATH  += 3rdparty/libpng
	    SOURCES	+= 3rdparty/libpng/png.c \
		  3rdparty/libpng/pngerror.c \
		  3rdparty/libpng/pngget.c \
		  3rdparty/libpng/pngmem.c \
		  3rdparty/libpng/pngpread.c \
		  3rdparty/libpng/pngread.c \
		  3rdparty/libpng/pngrio.c \
		  3rdparty/libpng/pngrtran.c \
		  3rdparty/libpng/pngrutil.c \
		  3rdparty/libpng/pngset.c \
		  3rdparty/libpng/pngtrans.c \
		  3rdparty/libpng/pngwio.c \
		  3rdparty/libpng/pngwrite.c \
		  3rdparty/libpng/pngwtran.c \
		  3rdparty/libpng/pngwutil.c 
        }
}
else:DEFINES += TQT_NO_IMAGEIO_PNG

#zlib support
zlib {
	INCLUDEPATH       += 3rdparty/zlib
	SOURCES	+= 3rdparty/zlib/adler32.c \
		  3rdparty/zlib/compress.c \
		  3rdparty/zlib/crc32.c \
		  3rdparty/zlib/deflate.c \
		  3rdparty/zlib/gzio.c \
		  3rdparty/zlib/inffast.c \
		  3rdparty/zlib/inflate.c \
		  3rdparty/zlib/inftrees.c \
		  3rdparty/zlib/trees.c \
		  3rdparty/zlib/uncompr.c \
		  3rdparty/zlib/zutil.c
}
!no-zlib:!zlib {
   unix:LIBS += -lz
   win32:LIBS += libz.lib
}

unix:xftfreetype {
	INCLUDEPATH += 3rdparty/opentype
	SOURCES += 3rdparty/opentype/ftxopentype.c
}

#use TQt gif
gif:DEFINES += QT_BUILTIN_GIF_READER=1