source: SMSSender/gateways/gateways.pri @ 364:32145f6c3e53

separation-frontend-backend
Last change on this file since 364:32145f6c3e53 was 364:32145f6c3e53, checked in by Sämy Zehnder <saemy.zehnder@…>, 6 years ago
  • Changes version to 3.1
  • Removes static -base libraries and instead merges them into the frontend projects. This is done in a way that they are still shared between the different frontends. However, the sources need to be recompiled for each frontend to ensure compatibility. The benefit is, that from now on, multiple frontends can be compiled at the same time with only one configuration. In particular, DEFINES+=FRONTEND_xxx changed to CONFIG+=build-frontend-xxx.
  • Creates gateway-common-gui.
File size: 956 bytes
Line 
1# Only dynamic gateway libraries should include this file.
2# It is assumed, that they live in a directory [gateway]/[frontend-type]/
3
4TEMPLATE = lib
5
6# Set the version
7DEFINES += LIB_VERSION=\\\"$${VERSION}\\\"
8
9CONFIG += \
10    exceptions \
11    resources \
12    rtti \
13    shared \
14    thread
15
16DESTDIR = ../../
17
18unix {
19    target.path = /usr/lib/smssender/gateways
20    INSTALLS += target
21}
22
23contains(DEFINES, FRONTEND_GUI) {
24    FRONTEND_SUFFIX=gui
25} else {
26    error("No frontend defined.")
27}
28
29LIBS += \
30    -L../../../ -lcommon-$$FRONTEND_SUFFIX$$LIB_SUFFIX \
31    -L../../../ -lgateways-common-$$FRONTEND_SUFFIX$$LIB_SUFFIX
32
33unix {
34    # for the case that the dev-package is installed
35    LIBS += -L/usr/lib/smssender
36}
37
38# Needed so that this target gets rebuilt if they change,
39PRE_TARGETDEPS += \
40    ../../../libcommon-$$FRONTEND_SUFFIX$${LIB_SUFFIX}.$$EXT_DYNAMICLIB \
41    ../../../libgateways-common-$$FRONTEND_SUFFIX$${LIB_SUFFIX}.$$EXT_DYNAMICLIB
Note: See TracBrowser for help on using the repository browser.