1 TARGET = qmng |
1 TARGET = qmng |
2 include(../../qpluginbase.pri) |
2 include(../../qpluginbase.pri) |
3 |
3 |
4 QTDIR_build:REQUIRES = "!contains(QT_CONFIG, no-mng)" |
4 QTDIR_build:REQUIRES = "!contains(QT_CONFIG, no-mng)" |
5 |
|
6 HEADERS += qmnghandler.h |
|
7 SOURCES += main.cpp \ |
|
8 qmnghandler.cpp |
|
9 |
5 |
10 symbian: { |
6 symbian: { |
11 #Disable warnings in 3rdparty code due to unused variables and arguments |
7 #Disable warnings in 3rdparty code due to unused variables and arguments |
12 QMAKE_CXXFLAGS.CW += -W nounused |
8 QMAKE_CXXFLAGS.CW += -W nounused |
13 TARGET.UID3=0x2001E619 |
9 TARGET.UID3=0x2001E619 |
14 } |
10 } |
15 |
11 |
16 contains(QT_CONFIG, system-mng) { |
12 include(../../../gui/image/qmnghandler.pri) |
17 unix:LIBS += -lmng |
13 SOURCES += main.cpp |
18 win32:LIBS += libmng.lib |
|
19 } |
|
20 !contains(QT_CONFIG, system-mng) { |
|
21 DEFINES += MNG_BUILD_SO |
|
22 DEFINES += MNG_NO_INCLUDE_JNG |
|
23 INCLUDEPATH += ../../../3rdparty/libmng |
|
24 SOURCES += \ |
|
25 ../../../3rdparty/libmng/libmng_callback_xs.c \ |
|
26 ../../../3rdparty/libmng/libmng_chunk_io.c \ |
|
27 ../../../3rdparty/libmng/libmng_chunk_descr.c \ |
|
28 ../../../3rdparty/libmng/libmng_chunk_prc.c \ |
|
29 ../../../3rdparty/libmng/libmng_chunk_xs.c \ |
|
30 ../../../3rdparty/libmng/libmng_cms.c \ |
|
31 ../../../3rdparty/libmng/libmng_display.c \ |
|
32 ../../../3rdparty/libmng/libmng_dither.c \ |
|
33 ../../../3rdparty/libmng/libmng_error.c \ |
|
34 ../../../3rdparty/libmng/libmng_filter.c \ |
|
35 ../../../3rdparty/libmng/libmng_hlapi.c \ |
|
36 ../../../3rdparty/libmng/libmng_jpeg.c \ |
|
37 ../../../3rdparty/libmng/libmng_object_prc.c \ |
|
38 ../../../3rdparty/libmng/libmng_pixels.c \ |
|
39 ../../../3rdparty/libmng/libmng_prop_xs.c \ |
|
40 ../../../3rdparty/libmng/libmng_read.c \ |
|
41 ../../../3rdparty/libmng/libmng_trace.c \ |
|
42 ../../../3rdparty/libmng/libmng_write.c \ |
|
43 ../../../3rdparty/libmng/libmng_zlib.c |
|
44 } |
|
45 |
|
46 contains(QT_CONFIG, system-zlib) { |
|
47 LIBS += -lz |
|
48 } |
|
49 !contains(QT_CONFIG, system-zlib) { |
|
50 INCLUDEPATH += ../../../3rdparty/zlib |
|
51 } |
|
52 |
14 |
53 QTDIR_build:DESTDIR = $$QT_BUILD_TREE/plugins/imageformats |
15 QTDIR_build:DESTDIR = $$QT_BUILD_TREE/plugins/imageformats |
54 target.path += $$[QT_INSTALL_PLUGINS]/imageformats |
16 target.path += $$[QT_INSTALL_PLUGINS]/imageformats |
55 INSTALLS += target |
17 INSTALLS += target |
56 |
|