summaryrefslogtreecommitdiffstats
path: root/src/mimetypes/mimetypes.pro
blob: 379acadb2bca371523cc825f332f3474639f2e38 (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
#CONFIG   += qt
TEMPLATE = lib
TARGET   = QtMimeTypes

# QtCore/qlist.h uses /usr/include/limits.h which uses does not compile with -pedantic.
#MAKE_CXXFLAGS += -W -Wall -Wextra -Werror -ansi -pedantic -Wshadow -Wno-long-long -Wnon-virtual-dtor
QMAKE_CXXFLAGS += -W -Wall -Wextra -Werror -ansi           -Wshadow -Wno-long-long -Wnon-virtual-dtor
mac|darwin: {
} else {
    QMAKE_CXXFLAGS += -Wc++0x-compat
}

# dependency management
QMAKE_CXXFLAGS += -MMD
include_dependencies.target = include_dependencies
include_dependencies.commands = @if grep \"^-include \\*.d\" Makefile >/dev/null 2>&1; then echo \"Dependency files are already included.\"; else echo \"-include *.d\" >> Makefile; echo \"Please rerun make because dependency files will be included next time.\"; fi
QMAKE_EXTRA_TARGETS += include_dependencies
POST_TARGETDEPS += include_dependencies


API_DIR = ../..

INCLUDEPATH += $$API_DIR/src/mimetypes


SOURCES += $$API_DIR/src/mimetypes/qmimetype.cpp \
           $$API_DIR/src/mimetypes/qmimetyperegistry.cpp \
           qmimetyperegistry_empty.cpp \
           $$API_DIR/src/mimetypes/qserviceaction.cpp

HEADERS += $$API_DIR/src/mimetypes/qmimetypesfwd.h \
           $$API_DIR/src/mimetypes/qmimetype.h \
           $$API_DIR/src/mimetypes/qmimetype_p.h \
           $$API_DIR/src/mimetypes/qmimetyperegistry.h \
           $$API_DIR/src/mimetypes/qserviceaction.h \
           $$API_DIR/src/mimetypes/qserviceaction_p.h


the_includes.files += $$API_DIR/src/mimetypes/qmimetypesfwd.h \
                      $$API_DIR/src/mimetypes/qmimetype.h \
                      $$API_DIR/src/mimetypes/qmimetyperegistry.h \
                      $$API_DIR/src/mimetypes/qserviceaction.h


INSTALLS += the_includes target