source: SMSSender/gateways/Sunrise/sunrise-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: 1.4 KB
Line 
1include(../../smssender.pri)
2include(sunrise.pri)
3
4BASE_VERSION = 2.0
5
6TARGET = sunrise-base
7
8TEMPLATE = lib
9CONFIG += \
10    staticlib
11
12QT = \
13    core \
14    network \
15    sql
16
17contains(DEFINES, SUNRISE_USE_MMS_IMAGE) {
18    QT += gui # For QImage which is needed for sending mms with attached images.
19}
20
21LIBS += \
22    -L../../ -l$$COMMON$$LIB_SUFFIX \
23    -L../../ -lgateways-common$$LIB_SUFFIX
24
25# Needed so that this target gets rebuilt if they change,
26PRE_TARGETDEPS += \
27    ../../libgateways-common$${LIB_SUFFIX}.$$EXT_DYNAMICLIB \
28    ../../lib$$COMMON$${LIB_SUFFIX}.$$EXT_DYNAMICLIB
29
30install_dev_files:unix {
31    target.path = /usr/lib/smssender/gateways
32    INSTALLS += target
33}
34
35HEADERS = \
36    business/contactimporter/contactimporter.h \
37    business/gateway.h \
38    network/httphelper.h \
39    persistence/accountstoragehelper.h \
40    business/account_tasks_base.h \
41    business/account_tasks.h \
42    business/account.h \
43
44SOURCES = \
45    business/account.cpp \
46    business/account_costs.cpp \
47    business/account_task_login.cpp \
48    business/account_task_sendsms.cpp \
49    business/contactimporter/contactimporter.cpp \
50    business/gateway.cpp \
51    network/httphelper.cpp \
52    persistence/accountstoragehelper.cpp
53
54RESOURCES = \
55    lib/sunrise.qrc
56
57install_dev_files:unix {
58    headers.path = /usr/include/smssender/gateways/Sunrise
59    headers.files = $$HEADERS
60    INSTALLS += headers
61}
Note: See TracBrowser for help on using the repository browser.