This repository has been archived by the owner on Sep 4, 2021. It is now read-only.
/
src.pro
64 lines (54 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
include(../config.pri)
TEMPLATE = lib
CONFIG += qt hide_symbols
CONFIG += create_pc create_prl no_install_prl
# 'contacts' is too generic for the target name - use 'contactcache'
TARGET = $${PACKAGENAME}
target.path = $$PREFIX/lib
INSTALLS += target
12
# set version for generated pkgconfig files
13
VERSION=0.0.61
14
15
16
17
18
QMAKE_PKGCONFIG_INCDIR = $$PREFIX/include/$${PACKAGENAME}
QMAKE_PKGCONFIG_LIBDIR = $$PREFIX/lib
QMAKE_PKGCONFIG_DESTDIR = pkgconfig
CONFIG += link_pkgconfig
19
20
21
22
23
packagesExist(mlite5) {
PKGCONFIG += mlite5
DEFINES += HAS_MLITE
} else {
warning("mlite not available. Some functionality may not work as expected.")
24
}
25
PKGCONFIG += mlocale5 mce
26
27
28
DEFINES += CONTACTCACHE_BUILD
29
30
31
32
# We need access to QtContacts private headers
QT += contacts-private
# We need the moc output for ContactManagerEngine from sqlite-extensions
33
extensionsIncludePath = $$system(pkg-config --cflags-only-I qtcontacts-sqlite-qt5-extensions)
34
35
36
VPATH += $$replace(extensionsIncludePath, -I, )
HEADERS += contactmanagerengine.h
37
SOURCES += \
38
$$PWD/cacheconfiguration.cpp \
39
$$PWD/seasidecache.cpp \
40
$$PWD/seasideexport.cpp \
41
$$PWD/seasideimport.cpp \
42
$$PWD/seasidepropertyhandler.cpp
43
44
HEADERS += \
45
$$PWD/cacheconfiguration.h \
46
47
$$PWD/contactcacheexport.h \
$$PWD/seasidecache.h \
48
$$PWD/seasideexport.h \
49
$$PWD/seasideimport.h \
50
$$PWD/synchronizelists.h \
51
$$PWD/seasidenamegrouper.h \
52
$$PWD/seasidepropertyhandler.h
53
54
headers.files = \
55
$$PWD/cacheconfiguration.h \
56
57
$$PWD/contactcacheexport.h \
$$PWD/seasidecache.h \
58
$$PWD/seasideexport.h \
59
$$PWD/seasideimport.h \
60
$$PWD/synchronizelists.h \
61
$$PWD/seasidenamegrouper.h \
62
$$PWD/seasidepropertyhandler.h
63
64
headers.path = $$PREFIX/include/$$TARGET
INSTALLS += headers