source: SMSSender/gateways/common/gateways-common.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.1 KB
Line 
1include(../../smssender.pri)
2
3TEMPLATE = lib
4CONFIG +=\
5    exceptions \
6    thread \
7    rtti
8DESTDIR = ../../
9TARGET = gateways-common
10QMAKE_CLEAN += $$DESTDIR/lib$$TARGET*
11QT = \
12    core \
13    network \
14    sql
15
16DEFINES += GATEWAYS_COMMON_LIBRARY
17
18LIBS += \
19    -L../../$$COMMON$$LIB_SUFFIX
20
21# Needed so that this target gets rebuilt if they change,
22PRE_TARGETDEPS += \
23    ../../lib$$COMMON$${LIB_SUFFIX}.$$EXT_DYNAMICLIB
24
25unix {
26    target.path = /usr/lib/smssender
27    INSTALLS += target
28}
29
30HEADERS = \
31    business/baseaccount.h \
32    business/baseaccount_tasks.h \
33    business/baseaccount_utils.h \
34    business/baselibrary.h \
35    business/defaultlogininittask.h \
36    global.h \
37    persistence/defaultaccountstoragehelper.h
38
39SOURCES = \
40    business/baseaccount.cpp \
41    business/baseaccount_tasks.cpp \
42    business/baselibrary.cpp \
43    business/defaultlogininittask.cpp \
44    persistence/defaultaccountstoragehelper.cpp
45
46install_dev_files:unix {
47    headers.path = /usr/include/smssender/gateways/common
48    headers.files = $$HEADERS
49
50    pri.path = /usr/include/smssender/gateways
51    pri.files = ../gateways.pri
52
53    INSTALLS += headers pri
54}
Note: See TracBrowser for help on using the repository browser.