/
src.pro
168 lines (153 loc) · 5.51 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
###############################################################################
#
# This file is part of libcommhistory.
#
# Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
# Contact: Reto Zingg <reto.zingg@nokia.com>
#
# This library is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License version 2.1 as
# published by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
# License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this library; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
###############################################################################
!include( ../common-project-config.pri ) : \
error( "Unable to include common-project-config.pri" )
!include( ../common-vars.pri ) : \
error( "Unable to include common-vars.pri" )
!include( ../common-installs-config.pri ) : \
error( "Unable to include common-installs-config.pri" )
# -----------------------------------------------------------------------------
# target setup
# -----------------------------------------------------------------------------
TEMPLATE = lib
VERSION = $$LIBRARY_VERSION
CONFIG += shared \
no_install_prl \
debug
QT += dbus sql contacts
QT -= gui
TARGET = commhistory-qt5
PKGCONFIG += qtcontacts-sqlite-qt5-extensions contactcache-qt5
LIBS += -lphonenumber
DEFINES += LIBCOMMHISTORY_SHARED
CONFIG += hide_symbols
# -----------------------------------------------------------------------------
# input
# -----------------------------------------------------------------------------
QT_LIKE_HEADERS += \
headers/CallEvent \
headers/CallModel \
headers/CallStatistics \
headers/SmsHistory \
headers/CallHistory \
headers/ContactListener \
headers/ContactResolver \
headers/ConversationModel \
headers/Event \
headers/EventModel \
headers/MessagePart \
headers/Group \
headers/GroupModel \
headers/SingleEventModel \
headers/RecentContactsModel \
headers/Recipient \
headers/Events \
headers/Models \
headers/DatabaseIO
HEADERS += commonutils.h \
eventmodel.h \
eventmodel_p.h \
event.h \
messagepart.h \
callevent.h \
eventtreeitem.h \
conversationmodel.h \
callstatistics.h \
callstatistics_p.h \
smshistory.h \
smshistory_p.h \
callhistory.h \
callhistory_p.h \
callmodel.h \
groupmodel.h \
groupmodel_p.h \
group.h \
adaptor.h \
conversationmodel_p.h \
contactlistener.h \
libcommhistoryexport.h \
singleeventmodel.h \
recipienteventmodel.h \
recipienteventmodel_p.h \
recentcontactsmodel.h \
updatesemitter.h \
constants.h \
mmsconstants.h \
mmsreadreportmodel.h \
groupobject.h \
groupmanager.h \
contactgroupmodel.h \
contactgroup.h \
databaseio.h \
databaseio_p.h \
commhistorydatabase.h \
commhistorydatabasepath.h \
debug.h \
contactfetcher.h \
contactresolver.h \
draftsmodel.h \
draftsmodel_p.h \
recipient.h
SOURCES += commonutils.cpp \
eventmodel.cpp \
eventmodel_p.cpp \
eventtreeitem.cpp \
conversationmodel.cpp \
callstatistics.cpp \
callhistory.cpp \
callmodel.cpp \
groupmodel.cpp \
group.cpp \
adaptor.cpp \
event.cpp \
messagepart.cpp \
mmsreadreportmodel.cpp \
contactlistener.cpp \
smshistory.cpp \
singleeventmodel.cpp \
recipienteventmodel.cpp \
recentcontactsmodel.cpp \
updatesemitter.cpp \
groupmanager.cpp \
groupobject.cpp \
contactgroupmodel.cpp \
contactgroup.cpp \
databaseio.cpp \
commhistorydatabase.cpp \
contactfetcher.cpp \
contactresolver.cpp \
draftsmodel.cpp \
recipient.cpp
# -----------------------------------------------------------------------------
# Installation target for API header files
# -----------------------------------------------------------------------------
headers.files = $$HEADERS \
$$QT_LIKE_HEADERS
headers.path = $${INSTALL_PREFIX}/include/commhistory-qt5/CommHistory
# -----------------------------------------------------------------------------
# Installation target for .pc file
# -----------------------------------------------------------------------------
QMAKE_SUBSTITUTES += $${TARGET}.pc.in
pkgconfig.files = $${TARGET}.pc
pkgconfig.path = $$[QT_INSTALL_LIBS]/pkgconfig
target.path = $$[QT_INSTALL_LIBS]
INSTALLS += pkgconfig target headers