src.pro 1.82 KB
Newer Older
mvogt's avatar
mvogt committed
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

mvogt's avatar
mvogt committed
12
# version for generated pkgconfig files is defined in the spec file
mvogt's avatar
mvogt committed
13 14 15 16 17
QMAKE_PKGCONFIG_INCDIR = $$PREFIX/include/$${PACKAGENAME}
QMAKE_PKGCONFIG_LIBDIR = $$PREFIX/lib
QMAKE_PKGCONFIG_DESTDIR = pkgconfig

CONFIG += link_pkgconfig
mvogt's avatar
mvogt committed
18 19 20 21 22
packagesExist(mlite5) {
    PKGCONFIG += mlite5
    DEFINES += HAS_MLITE
} else {
    warning("mlite not available. Some functionality may not work as expected.")
mvogt's avatar
mvogt committed
23
}
24
PKGCONFIG += mlocale5 mce qtcontacts-sqlite-qt5-extensions
mvogt's avatar
mvogt committed
25 26 27

DEFINES += CONTACTCACHE_BUILD

28 29 30 31
# We need access to QtContacts private headers
QT += contacts-private

# We need the moc output for ContactManagerEngine from sqlite-extensions
mvogt's avatar
mvogt committed
32
extensionsIncludePath = $$system(pkg-config --cflags-only-I qtcontacts-sqlite-qt5-extensions)
33 34 35
VPATH += $$replace(extensionsIncludePath, -I, )
HEADERS += contactmanagerengine.h

mvogt's avatar
mvogt committed
36
SOURCES += \
37
    $$PWD/cacheconfiguration.cpp \
38
    $$PWD/seasidecache.cpp \
39
    $$PWD/seasideexport.cpp \
40
    $$PWD/seasideimport.cpp \
41
    $$PWD/seasidecontactbuilder.cpp \
42
    $$PWD/seasidepropertyhandler.cpp
mvogt's avatar
mvogt committed
43 44

HEADERS += \
45
    $$PWD/cacheconfiguration.h \
mvogt's avatar
mvogt committed
46 47
    $$PWD/contactcacheexport.h \
    $$PWD/seasidecache.h \
48
    $$PWD/seasideexport.h \
49
    $$PWD/seasideimport.h \
50
    $$PWD/seasidecontactbuilder.h \
51
    $$PWD/synchronizelists.h \
52
    $$PWD/seasidepropertyhandler.h
mvogt's avatar
mvogt committed
53 54

headers.files = \
55
    $$PWD/cacheconfiguration.h \
mvogt's avatar
mvogt committed
56 57
    $$PWD/contactcacheexport.h \
    $$PWD/seasidecache.h \
58
    $$PWD/seasideexport.h \
59
    $$PWD/seasideimport.h \
60
    $$PWD/seasidecontactbuilder.h \
61
    $$PWD/synchronizelists.h \
62
    $$PWD/seasidepropertyhandler.h
mvogt's avatar
mvogt committed
63 64
headers.path = $$PREFIX/include/$$TARGET
INSTALLS += headers