Changeset 342:bdf193a5051e in SMSSender for common/common-base.pro


Ignore:
Timestamp:
Mar 26, 2014 4:07:03 PM (6 years ago)
Author:
Sämy Zehnder <saemy.zehnder@…>
Branch:
separation-frontend-backend
Message:
  • 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:
1 edited

Legend:

Unmodified
Added
Removed
  • common/common-base.pro

    r334 r342  
    2222LIBS += -lcryptopp
    2323
     24install_dev_files:unix {
     25    target.path = /usr/lib/smssender
     26    INSTALLS += target
     27}
     28
    2429# Input
    25 HEADERS += \
     30HEADERS = \
    2631    business/iaccount.h \
    2732    business/iaccount_tasks.h \
     
    7984    validation/defaultaccountvalidator.h \
    8085    validation/svalidationresult.h
    81 SOURCES += \
     86
     87SOURCES = \
    8288    business/iaccount.cpp \
    8389    business/iaccount_tasks.cpp \
     
    111117    validation/defaultaccountvalidator.cpp \
    112118    validation/svalidationresult.cpp
    113 RESOURCES += \
     119
     120RESOURCES = \
    114121    lib/common.qrc
    115 unix {
    116     target.path = /usr/lib/smssender
    117     INSTALLS += target
    118122
    119     # headers
    120     headers.path = /usr/include/smssender
     123install_dev_files:unix {
     124    headers.path = /usr/include/smssender/common
    121125    headers.files = $$HEADERS
     126
     127    pri.path = /usr/include/smssender
     128    pri.files = \
     129        ../locale.pri \
     130        ../smssender.pri
     131
     132    INSTALLS += headers pri
    122133}
     134
Note: See TracChangeset for help on using the changeset viewer.