summaryrefslogtreecommitdiffstats
path: root/src/mimetypes/mimetypes.pro
blob: abe8dc12c21266f677935b1326ac8aee3c7666d9 (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
include(../../mimetypes-nolibs.pri)

TARGET = QtMimeTypes
TEMPLATE = lib

win32: DESTDIR = ./

DEFINES += QMIME_LIBRARY

DEPENDPATH  *= $$PWD

CONFIG += depend_includepath

QT     = core

QMAKE_CXXFLAGS += -W -Wall -Wextra -Werror -Wshadow -Wno-long-long -Wnon-virtual-dtor

SOURCES += qmimedatabase.cpp \
           qmimetype.cpp \
           qmimemagicrulematcher.cpp \
           qmimetypeparser.cpp \
           qmimemagicrule.cpp \
           qmimeglobpattern.cpp \
           qmimeprovider.cpp

the_includes.files += qmime_global.h \
                      qmimedatabase.h \
                      qmimetype.h \

HEADERS += $$the_includes.files \
           qmimemagicrulematcher_p.h \
           qmimetype_p.h \
           qmimetypeparser_p.h \
           qmimedatabase_p.h \
           qmimemagicrule_p.h \
           qmimeglobpattern_p.h \
           qmimeprovider_p.h

SOURCES += inqt5/qstandardpaths.cpp
win32: SOURCES += inqt5/qstandardpaths_win.cpp
unix: {
    macx-*: {
        SOURCES += inqt5/qstandardpaths_mac.cpp
        LIBS += -framework Carbon
    } else {
        SOURCES += inqt5/qstandardpaths_unix.cpp
    }
}

RESOURCES += \
    mimetypes.qrc

symbian {
    MMP_RULES += EXPORTUNFROZEN
    TARGET.UID3 = 0xEA6A790B
    TARGET.CAPABILITY =
    TARGET.EPOCALLOWDLLDATA = 1
    addFiles.sources = lib.dll
    addFiles.path = !:/sys/bin
    DEPLOYMENT += addFiles
}

unix:!symbian {
    maemo5 {
        target.path = /opt/usr/lib
        the_includes.path = /opt/usr/include/qt5/QtMimeTypes
    } else {
        target.path = /usr/lib
        the_includes.path = /usr/include/qt5/QtMimeTypes
    }
    INSTALLS += target the_includes
}