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
|
# this file contains the parts that are common to all libs
MOC_DIR = .moc
M_MGEN_OUTDIR = .gen
!win32:OBJECTS_DIR = .obj
DESTDIR = $$M_BUILD_TREE/lib
TEMPLATE = lib
include(../mkspecs/common.pri)
include(predeps.pri)
include(../mkspecs/features/meegotouch_mmoc.prf)
include(../mkspecs/features/meegotouch_mgen.prf)
VERSION = $${M_VERSION}
DEFINES += M_VERSION=\\\"$${M_VERSION}\\\"
INCLUDEPATH += $${M_SOURCE_TREE}/src/include
INCLUDEPATH += $${OUT_PWD}/.moc
INCLUDEPATH += $${OUT_PWD}/.gen
QMAKE_STRIP = echo
CONFIG += qt warn_on depend_includepath qmake_cache target_qt dll create_prl
!win32:CONFIG += link_pkgconfig
macx:CONFIG -= lib_bundle
!win32-msvc*:QMAKE_CXXFLAGS += -Wno-long-long -pedantic
!win32:QMAKE_CXXFLAGS += -Wno-variadic-macros -fvisibility=hidden
!win32-msvc*:LIBS += -lm -lX11
macx:LIBS -= -lX11
win32:LIBS -= -lX11
# enable QString optimizations
DEFINES += QT_USE_FAST_CONCATENATION QT_USE_FAST_OPERATOR_PLUS
# Check for mixing of const and non-const iterators,
# which can cause problems when built with some compilers:
DEFINES += QT_STRICT_ITERATORS
## Build configuration
## Features
contains(M_BUILD_FEATURES, timestamps) {
DEFINES += M_TIMESTAMP
}
contains(M_BUILD_FEATURES, testable) {
DEFINES += TESTABLE
HEADERS += ../corelib/core/testabilityinterface.h
}
contains(M_BUILD_FEATURES, pch) {
DEFINES += USING_PCH
PRECOMPILED_HEADER = pch/stable_pch.h
HEADERS += pch/stable_pch.h
CONFIG += precompile_header
}
contains(M_PROFILE_PARTS, theme) {
DEFINES += M_THEMESYSTEM_PROFILING_SUPPORT
}
## Dependencies
# list pkg-config dependencies here
contains(DEFINES, HAVE_XDAMAGE) {
PKGCONFIG += xdamage
}
contains(DEFINES, HAVE_ICU) {
LIBS += -licui18n -licuuc -licudata
}
contains(DEFINES, HAVE_CONTEXTSUBSCRIBER) {
PKGCONFIG += contextsubscriber-1.0
}
contains(DEFINES, HAVE_CONTENTACTION) {
PKGCONFIG += contentaction-0.1
}
contains(DEFINES, HAVE_GCONF) {
PKGCONFIG += gconf-2.0
# TODO: Why is this necessary?
# The PKGCONFIG call above usually causes qmake to link to the correct libraries
# automatically, but that does not happen if we remove these explicit mentions.
LIBS += -lgconf-2
}
contains(DEFINES, HAVE_DBUS) {
QT += dbus
}
contains(DEFINES, HAVE_GLIB) {
LIBS += -lglib-2.0
}
QT += \
svg \
network \
core \
gui \
xml
contains(DEFINES, HAVE_MEEGOGRAPHICSSYSTEM) {
QT += meegographicssystemhelper
}
!simulator: QT += opengl
QMAKE_EXTRA_TARGETS += check
check.depends = $$DESTDIR/lib$${TARGET}.so.$$VERSION
check.commands = $$system(true)
QMAKE_EXTRA_TARGETS += check-xml
check-xml.depends = $$DESTDIR/lib$${TARGET}.so.$$VERSION
check-xml.commands = $$system(true)
QMAKE_CLEAN += \
*.gcov \
$$OBJECTS_DIR/*.gcno \
$$OBJECTS_DIR/*.gcda \
target.path = $$M_INSTALL_LIBS
|