Changeset 368:fc704b7314ea in SMSSender


Ignore:
Timestamp:
Apr 10, 2014 11:57:34 AM (6 years ago)
Author:
Sämy Zehnder <saemy.zehnder@…>
Branch:
separation-frontend-backend
Message:
  • Cleans up the pri include stack.
Files:
2 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • smssender-base.pri

    r366 r368  
    1 include(locale-base.pri)
    2 
    3 INCLUDEPATH *= $$PWD
     1include(smssender.pri)
  • smssender-gui.pri

    r364 r368  
    66DEFINES += FRONTEND_GUI
    77
     8QT =
     9
    810include(smssender.pri)
     11
     12
     13# Automatically compile the .ts files into .qm
     14isEmpty(QMAKE_LRELEASE) {
     15    win32:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\lrelease.exe
     16    else:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
     17}
     18
     19updateqm.input = TRANSLATIONS
     20updateqm.output = ${QMAKE_FILE_PATH}/${QMAKE_FILE_BASE}.qm
     21updateqm.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN} -qm ${QMAKE_FILE_PATH}/${QMAKE_FILE_BASE}.qm
     22updateqm.CONFIG += no_link
     23
     24QMAKE_EXTRA_COMPILERS += updateqm
     25PRE_TARGETDEPS += compiler_updateqm_make_all
  • smssender.pri

    r366 r368  
     1# This file gets included twice. Once by the base- and the second time by the
     2# frontend library. Therefore, always use *= and only add stuff that a) is
     3# valid for all libraries and b) does not overwrite stuff defined in the base
     4# library project files (e.g. QT = "" does belong into smssender-gui.pri and not
     5# here).
     6#
     7# The typical include hierarchy could be:
     8#   my-gateway-gui.pro
     9#     +-> gateways-gui.pri
     10#       +-> smssender-gui.pri
     11#         +-> smssender.pri     (1)
     12#           +-> smssender.prf
     13#       +-> gateways.pri
     14#     +-> my-gateway-base.pro (with post-processing)
     15#       +-> smssender-base.pri
     16#         +-> smssender.pri     (2)
     17#           +-> smssender.prf
    118include(smssender.prf)
    219
     
    825VERSION = $${BASE_VERSION}.$${DEVELOPMENT_VERSION}.$${VERSION_REVISION}
    926
    10 QMAKE_CXXFLAGS += -shared-libgcc
    11 QMAKE_CXXFLAGS_DEBUG += -gdwarf-2 -g3
     27QMAKE_CXXFLAGS *= -shared-libgcc
     28QMAKE_CXXFLAGS_DEBUG *= -gdwarf-2 -g3
    1229#QMAKE_LFLAGS += -fvisibility=hidden
    1330
    1431INCLUDEPATH *= $$PWD
    15 
    16 QT =
    1732
    1833LIB_SUFFIX=
     
    2742unix {
    2843    # Search path for libraries
    29     CONFIG(debug, debug|release): QMAKE_RPATHDIR += lib
    30     CONFIG(release, debug|release): QMAKE_RPATHDIR += /usr/lib/smssender
     44    CONFIG(debug, debug|release): QMAKE_RPATHDIR *= lib
     45    CONFIG(release, debug|release): QMAKE_RPATHDIR *= /usr/lib/smssender
    3146}
    3247
    33 include(locale.pri)
     48TRANSLATIONS *= \
     49    locale/de.ts \
     50    locale/de_CH.ts \
     51    locale/fr.ts \
     52    locale/it.ts
Note: See TracChangeset for help on using the changeset viewer.