source: SMSSender/common/common-base.pro @ 342:bdf193a5051e

separation-frontend-backend
Last change on this file since 342:bdf193a5051e was 342:bdf193a5051e, checked in by Sämy Zehnder <saemy.zehnder@…>, 6 years ago
  • Adjusts what's being installed to where.
  • Adds config parameter install_dev_files; headers and static libraries are only installed if this variable is set.
File size: 3.7 KB
Line 
1include(../smssender.pri)
2
3# The major version of the library which is required to load it.
4# Increase this, if interfaces in libdatatypes have changed.
5DEFINES += LIB_COMPATIBILITY_VERSION=\\\"$${VERSION}\\\"
6TEMPLATE = lib
7CONFIG += \
8    exceptions \
9    rtti \
10    staticlib \
11    thread
12
13TARGET = common-base
14QMAKE_CLEAN += $$DESTDIR/lib$$TARGET*
15QT = \
16    core \
17    network \
18    sql
19
20DEFINES += COMMON_LIBRARY
21
22LIBS += -lcryptopp
23
24install_dev_files:unix {
25    target.path = /usr/lib/smssender
26    INSTALLS += target
27}
28
29# Input
30HEADERS = \
31    business/iaccount.h \
32    business/iaccount_tasks.h \
33    business/icontactimporter.h \
34    business/icontactimporter_base.h \
35    business/igateway.h \
36    business/igateway_base.h \
37    business/iintegration.h \
38    business/iintegration_base.h \
39    business/ilibrary.h \
40    business/imanagers.h \
41    business/istorable.h \
42    business/ivalidatable.h \
43    business/ivalidator.h \
44    domain/scontact.h \
45    domain/sdatatypes.h \
46    domain/sgroup.h \
47    domain/snumber.h \
48    domain/snumber_p.h \
49    domain/stask.h \
50    domain/stask_p.h \
51    domain/sversion.h \
52    exceptions/eexception.h \
53    exceptions/elibraryloadexception.h \
54    exceptions/eloginaccountloginexception.h \
55    exceptions/enetworkexception.h \
56    exceptions/eparseexception.h \
57    exceptions/httpexceptions.h \
58    exceptions/libraryexceptions.h \
59    exceptions/loginaccountexceptions.h \
60    exceptions/persistence/estoragereadexception.h \
61    exceptions/persistence/estoragewriteexception.h \
62    exceptions/persistence/storageexceptions.h \
63    exceptions/stdexceptions.h \
64    global.h \
65    network/snetworkhelper.h \
66    network/snetworkreply.h \
67    network/snetworkreply_p.h \
68    persistence/iaccountmanager.h \
69    persistence/icontactmanager.h \
70    persistence/idatabase.h \
71    persistence/igroupmanager.h \
72    persistence/imainstorage.h \
73    persistence/imainstorage_base.h \
74    persistence/impl/encryptedstoragehelper.h \
75    persistence/impl/encryptedstoragehelper_base.h \
76    persistence/impl/storageconnectionhelper.h \
77    persistence/impl/storageconnectionhelper_p.h \
78    persistence/impl/versionedstorage.h \
79    persistence/istoragehelper.h \
80    utils/smacros.h \
81    utils/sshared.h \
82    utils/staskmanager.h \
83    utils/sutils.h \
84    validation/defaultaccountvalidator.h \
85    validation/svalidationresult.h
86
87SOURCES = \
88    business/iaccount.cpp \
89    business/iaccount_tasks.cpp \
90    business/ilibrary.cpp \
91    domain/scontact.cpp \
92    domain/sdatatypes.cpp \
93    domain/sgroup.cpp \
94    domain/snumber.cpp \
95    domain/stask.cpp \
96    domain/sversion.cpp \
97    exceptions/eexception.cpp \
98    exceptions/elibraryloadexception.cpp \
99    exceptions/eloginaccountloginexception.cpp \
100    exceptions/enetworkexception.cpp \
101    exceptions/eparseexception.cpp \
102    exceptions/httpexceptions.cpp \
103    exceptions/persistence/estoragereadexception.cpp \
104    exceptions/persistence/estoragewriteexception.cpp \
105    network/snetworkhelper.cpp \
106    network/snetworkhelper_escapechars.cpp \
107    network/snetworkhelper_params.cpp \
108    network/snetworkreply.cpp \
109    persistence/iaccountmanager.cpp \
110    persistence/icontactmanager.cpp \
111    persistence/igroupmanager.cpp \
112    persistence/impl/encryptedstoragehelper_base.cpp \
113    persistence/impl/storageconnectionhelper.cpp \
114    persistence/impl/versionedstorage.cpp \
115    utils/staskmanager.cpp \
116    utils/sutils.cpp \
117    validation/defaultaccountvalidator.cpp \
118    validation/svalidationresult.cpp
119
120RESOURCES = \
121    lib/common.qrc
122
123install_dev_files:unix {
124    headers.path = /usr/include/smssender/common
125    headers.files = $$HEADERS
126
127    pri.path = /usr/include/smssender
128    pri.files = \
129        ../locale.pri \
130        ../smssender.pri
131
132    INSTALLS += headers pri
133}
134
Note: See TracBrowser for help on using the repository browser.