/
src.pro
176 lines (150 loc) · 3.88 KB
/
src.pro
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
include(syncelements/syncelements.pro)
include(server/server.pro)
include(client/client.pro)
include(transport/transport.pro)
TEMPLATE = lib
TARGET = buteosyncml5
VPATH += client \
syncelements \
server \
transport
CONFIG += dll \
create_pc \
create_prl \
link_pkgconfig
PKGCONFIG = buteosyncfw5 \
libwbxml2
INCLUDEPATH += . \
syncelements \
server \
client \
transport
DEPENDPATH += . \
syncelements \
server \
client \
transport
SOURCES += SyncItem.cpp \
ChangeLog.cpp \
SuspendLog.cpp \
SyncAgent.cpp \
SyncAgentConfig.cpp \
SyncMLMessageParser.cpp \
AuthenticationPackage.cpp \
LocalChangesPackage.cpp \
LocalMappingsPackage.cpp \
DeviceInfo.cpp \
RemoteDeviceInfo.cpp \
SyncTarget.cpp \
FinalPackage.cpp \
AlertPackage.cpp \
SyncResults.cpp \
SessionHandler.cpp \
CommandHandler.cpp \
StorageHandler.cpp \
ResponseGenerator.cpp \
SyncMode.cpp \
DevInfPackage.cpp \
DatabaseHandler.cpp \
ConflictResolver.cpp \
AuthHelper.cpp \
NonceStorage.cpp \
ServerAlertedNotification.cpp \
RequestListener.cpp \
DevInfHandler.cpp \
SyncItemPrefetcher.cpp \
CTCap.cpp \
DataStore.cpp \
StorageContentFormatInfo.cpp \
SessionAuthentication.cpp \
SessionParams.cpp
HEADERS += SyncItem.h \
StoragePlugin.h \
ChangeLog.h \
SuspendLog.h \
SyncAgent.h \
SyncItemKey.h \
datatypes.h \
Fragments.h \
SyncAgentConfig.h \
SyncMLMessageParser.h \
AuthenticationPackage.h \
LocalChangesPackage.h \
LocalMappingsPackage.h \
Package.h \
DeviceInfo.h \
RemoteDeviceInfo.h \
SyncAgentConsts.h \
SyncResults.h \
SyncTarget.h \
FinalPackage.h \
AlertPackage.h \
SyncMLCommand.h \
SessionHandler.h \
CommandHandler.h \
StorageHandler.h \
ResponseGenerator.h \
SyncMode.h \
DevInfPackage.h \
DatabaseHandler.h \
ConflictResolver.h \
AuthHelper.h \
NonceStorage.h \
StorageProvider.h \
ServerAlertedNotification.h \
SyncMLGlobals.h \
RequestListener.h \
DevInfHandler.h \
SyncAgentConfigProperties.h \
SyncItemPrefetcher.h \
CTCap.h \
DataStore.h \
StorageContentFormatInfo.h \
LocalChanges.h \
SessionAuthentication.h \
SessionParams.h
OTHER_FILES += config/meego-syncml-conf.xsd \
config/meego-syncml-conf.xml
LIBS += -lsqlite3 -lopenobex
QTDIR = /usr/lib/qt5
QT += network \
xml \
sql \
xmlpatterns
QT -= gui
# TODO extract DEBUG
QMAKE_CXXFLAGS = -Wall \
-g \
-Wno-cast-align \
-O2 -finline-functions
QMAKE_CLEAN += lib*.so* \
lib$${TARGET}.prl pkgconfig/*
#QMAKE_STRIP = strip
#QMAKE_STRIPFLAGS_LIB += --strip-unneeded
headers.path = /usr/include/buteosyncml5
headers.files = $$HEADERS
target.path = /usr/lib
config.path = /etc/buteo
config.files = config/meego-syncml-conf.xsd \
config/meego-syncml-conf.xml
INSTALLS += target \
headers \
config
QMAKE_PKGCONFIG_DESTDIR = pkgconfig
QMAKE_PKGCONFIG_LIBDIR = $$target.path
QMAKE_PKGCONFIG_INCDIR = $$headers.path
QMAKE_PKGCONFIG_VERSION = $$VERSION
# Uncomment the following line to enable GCOV/LCOV report generation
#CONFIG += gcov
gcov {
message(Test coverage report is ENABLED)
QMAKE_CC = SBOX_USE_CCACHE=no $$QMAKE_CC
QMAKE_CXX = SBOX_USE_CCACHE=no $$QMAKE_CXX
QMAKE_CFLAGS += -fprofile-arcs -ftest-coverage
QMAKE_CXXFLAGS += -fprofile-arcs -ftest-coverage
LIBS += -lgcov
}
!gcov {
message(Test coverage report is DISABLED)
}
QMAKE_CLEAN += *.gcno *.gcda *.gcov