1 TARGET = qjpeg |
1 TARGET = qjpeg |
2 include(../../qpluginbase.pri) |
2 include(../../qpluginbase.pri) |
3 |
3 |
4 QTDIR_build:REQUIRES = "!contains(QT_CONFIG, no-jpeg)" |
4 QTDIR_build:REQUIRES = "!contains(QT_CONFIG, no-jpeg)" |
5 |
5 |
6 HEADERS += qjpeghandler.h |
6 wince*: { |
7 SOURCES += main.cpp \ |
7 DEFINES += NO_GETENV |
8 qjpeghandler.cpp |
8 contains(CE_ARCH,x86):CONFIG -= stl exceptions |
9 |
9 contains(CE_ARCH,x86):CONFIG += exceptions_off |
10 wince*: { |
|
11 DEFINES += NO_GETENV |
|
12 contains(CE_ARCH,x86):CONFIG -= stl exceptions |
|
13 contains(CE_ARCH,x86):CONFIG += exceptions_off |
|
14 } |
10 } |
15 |
11 |
16 #Disable warnings in 3rdparty code due to unused arguments |
12 #Disable warnings in 3rdparty code due to unused arguments |
17 symbian: { |
13 symbian: { |
18 QMAKE_CXXFLAGS.CW += -W nounusedarg |
14 QMAKE_CXXFLAGS.CW += -W nounusedarg |
19 TARGET.UID3=0x2001E61B |
15 TARGET.UID3=0x2001E61B |
20 } else:contains(QMAKE_CC, gcc): { |
16 } else:contains(QMAKE_CC, gcc): { |
21 QMAKE_CFLAGS_WARN_ON += -Wno-unused-parameter -Wno-main |
17 QMAKE_CFLAGS_WARN_ON += -Wno-unused-parameter -Wno-main |
22 } |
18 } |
23 |
19 |
24 contains(QT_CONFIG, system-jpeg) { |
20 include(../../../gui/image/qjpeghandler.pri) |
25 unix:LIBS += -ljpeg |
21 SOURCES += main.cpp |
26 win32:LIBS += libjpeg.lib |
|
27 } |
|
28 !contains(QT_CONFIG, system-jpeg) { |
|
29 INCLUDEPATH += ../../../3rdparty/libjpeg |
|
30 SOURCES += \ |
|
31 ../../../3rdparty/libjpeg/jaricom.c \ |
|
32 ../../../3rdparty/libjpeg/jcapimin.c \ |
|
33 ../../../3rdparty/libjpeg/jcapistd.c \ |
|
34 ../../../3rdparty/libjpeg/jcarith.c \ |
|
35 ../../../3rdparty/libjpeg/jccoefct.c \ |
|
36 ../../../3rdparty/libjpeg/jccolor.c \ |
|
37 ../../../3rdparty/libjpeg/jcdctmgr.c \ |
|
38 ../../../3rdparty/libjpeg/jchuff.c \ |
|
39 ../../../3rdparty/libjpeg/jcinit.c \ |
|
40 ../../../3rdparty/libjpeg/jcmainct.c \ |
|
41 ../../../3rdparty/libjpeg/jcmarker.c \ |
|
42 ../../../3rdparty/libjpeg/jcmaster.c \ |
|
43 ../../../3rdparty/libjpeg/jcomapi.c \ |
|
44 ../../../3rdparty/libjpeg/jcparam.c \ |
|
45 ../../../3rdparty/libjpeg/jcprepct.c \ |
|
46 ../../../3rdparty/libjpeg/jcsample.c \ |
|
47 ../../../3rdparty/libjpeg/jctrans.c \ |
|
48 ../../../3rdparty/libjpeg/jdapimin.c \ |
|
49 ../../../3rdparty/libjpeg/jdapistd.c \ |
|
50 ../../../3rdparty/libjpeg/jdarith.c \ |
|
51 ../../../3rdparty/libjpeg/jdatadst.c \ |
|
52 ../../../3rdparty/libjpeg/jdatasrc.c \ |
|
53 ../../../3rdparty/libjpeg/jdcoefct.c \ |
|
54 ../../../3rdparty/libjpeg/jdcolor.c \ |
|
55 ../../../3rdparty/libjpeg/jddctmgr.c \ |
|
56 ../../../3rdparty/libjpeg/jdhuff.c \ |
|
57 ../../../3rdparty/libjpeg/jdinput.c \ |
|
58 ../../../3rdparty/libjpeg/jdmainct.c \ |
|
59 ../../../3rdparty/libjpeg/jdmarker.c \ |
|
60 ../../../3rdparty/libjpeg/jdmaster.c \ |
|
61 ../../../3rdparty/libjpeg/jdmerge.c \ |
|
62 ../../../3rdparty/libjpeg/jdpostct.c \ |
|
63 ../../../3rdparty/libjpeg/jdsample.c \ |
|
64 ../../../3rdparty/libjpeg/jdtrans.c \ |
|
65 ../../../3rdparty/libjpeg/jerror.c \ |
|
66 ../../../3rdparty/libjpeg/jfdctflt.c \ |
|
67 ../../../3rdparty/libjpeg/jfdctfst.c \ |
|
68 ../../../3rdparty/libjpeg/jfdctint.c \ |
|
69 ../../../3rdparty/libjpeg/jidctflt.c \ |
|
70 ../../../3rdparty/libjpeg/jidctfst.c \ |
|
71 ../../../3rdparty/libjpeg/jidctint.c \ |
|
72 ../../../3rdparty/libjpeg/jquant1.c \ |
|
73 ../../../3rdparty/libjpeg/jquant2.c \ |
|
74 ../../../3rdparty/libjpeg/jutils.c \ |
|
75 ../../../3rdparty/libjpeg/jmemmgr.c \ |
|
76 ../../../3rdparty/libjpeg/jmemnobs.c |
|
77 } |
|
78 |
22 |
79 QTDIR_build:DESTDIR = $$QT_BUILD_TREE/plugins/imageformats |
23 QTDIR_build:DESTDIR = $$QT_BUILD_TREE/plugins/imageformats |
80 target.path += $$[QT_INSTALL_PLUGINS]/imageformats |
24 target.path += $$[QT_INSTALL_PLUGINS]/imageformats |
81 INSTALLS += target |
25 INSTALLS += target |
82 |
|