Changeset d8a3826f87 in tspsg for install.pri


Ignore:
Timestamp:
Mar 16, 2011, 1:03:57 AM (13 years ago)
Author:
Oleksii Serdiuk
Branches:
0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
Children:
d97db6d321
Parents:
5631fb4d50
git-author:
Oleksii Serdiuk <contacts@…> (03/16/11 01:03:57)
git-committer:
Oleksii Serdiuk <contacts@…> (06/29/12 19:45:58)
Message:

Converted tabs to spaces in project files...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • install.pri

    r5631fb4d50 rd8a3826f87  
    2323#     go to /usr/share/doc/TSPSG-x.x.x
    2424unix:!macx:!symbian:!maemo* {
    25         isEmpty(PREFIX) {
    26                 PREFIX = /usr
    27         }
    28         CONFIG(release, debug|release) {
    29                 DEFINES += PATH_L10N=\\\"$$PREFIX/share/TSPSG/l10n\\\"
    30                 DEFINES += PATH_DOCS=\\\"$$PREFIX/share/TSPSG/docs\\\"
    31         }
     25    isEmpty(PREFIX) {
     26        PREFIX = /usr
     27    }
     28    CONFIG(release, debug|release) {
     29        DEFINES += PATH_L10N=\\\"$$PREFIX/share/TSPSG/l10n\\\"
     30        DEFINES += PATH_DOCS=\\\"$$PREFIX/share/TSPSG/docs\\\"
     31    }
    3232
    33         target.path = $$PREFIX/bin
    34         share.path = $$PREFIX/share/TSPSG
     33    target.path = $$PREFIX/bin
     34    share.path = $$PREFIX/share/TSPSG
    3535#       l10n.path = $$PREFIX/share/TSPSG/l10n
    36         docs.path = $$PREFIX/share/doc/TSPSG-$$VERSION
    37         desktop.files = resources/tspsg.desktop
    38         desktop.path = $$PREFIX/share/applications
    39         icon.files = resources/tspsg.png
    40         icon.path = $$PREFIX/share/pixmaps
    41         INSTALLS += desktop icon
     36    docs.path = $$PREFIX/share/doc/TSPSG-$$VERSION
     37    desktop.files = resources/tspsg.desktop
     38    desktop.path = $$PREFIX/share/applications
     39    icon.files = resources/tspsg.png
     40    icon.path = $$PREFIX/share/pixmaps
     41    INSTALLS += desktop icon
    4242}
    4343
     
    4848# For win32: everything goes to "%PROGRAMFILES%\TSPSG" and subfolders.
    4949win32 {
    50         isEmpty(PREFIX) {
    51                 PREFIX = "$$(PROGRAMFILES)"
    52         }
     50    isEmpty(PREFIX) {
     51        PREFIX = "$$(PROGRAMFILES)"
     52    }
    5353
    54         share.files = $$[QT_INSTALL_BINS]/QtCore$${D}4.dll \
    55                 $$[QT_INSTALL_BINS]/QtGui$${D}4.dll
    56         !nosvg {
    57                 share.files += $$[QT_INSTALL_BINS]/QtSvg$${D}4.dll
    58         }
     54    share.files = $$[QT_INSTALL_BINS]/QtCore$${D}4.dll \
     55        $$[QT_INSTALL_BINS]/QtGui$${D}4.dll
     56    !nosvg {
     57        share.files += $$[QT_INSTALL_BINS]/QtSvg$${D}4.dll
     58    }
    5959#       l10n.files += $$[QT_INSTALL_TRANSLATIONS]/*.qm
    60         win32-g++ {
    61                 share.files += $$[QT_INSTALL_BINS]/mingwm10.dll \
    62                         $$[QT_INSTALL_BINS]/libgcc_s_dw2-1.dll
    63         }
    64         imageformats.files = $$[QT_INSTALL_PLUGINS]/imageformats/qjpeg$${D}4.dll \
    65                 $$[QT_INSTALL_PLUGINS]/imageformats/qtiff$${D}4.dll
    66         imageformats.path = $$PREFIX/TSPSG/imageformats
    67         INSTALLS += share imageformats
     60    win32-g++ {
     61        share.files += $$[QT_INSTALL_BINS]/mingwm10.dll \
     62            $$[QT_INSTALL_BINS]/libgcc_s_dw2-1.dll
     63    }
     64    imageformats.files = $$[QT_INSTALL_PLUGINS]/imageformats/qjpeg$${D}4.dll \
     65        $$[QT_INSTALL_PLUGINS]/imageformats/qtiff$${D}4.dll
     66    imageformats.path = $$PREFIX/TSPSG/imageformats
     67    INSTALLS += share imageformats
    6868}
    6969
    7070# For wince: we are deploying to \Program Files\TSPSG.
    7171wince* {
    72         isEmpty(PREFIX) {
    73                 PREFIX = "\\Program Files"
    74         }
    75         share.sources = $$share.files
     72    isEmpty(PREFIX) {
     73        PREFIX = "\\Program Files"
     74    }
     75    share.sources = $$share.files
    7676#       l10n.sources = $$l10n.files \
    7777#               $$[QT_INSTALL_TRANSLATIONS]/*.qm
    78         docs.sources = $$docs.files
     78    docs.sources = $$docs.files
    7979
    80         DEPLOYMENT += target share docs # l10n
    81         DEPLOYMENT_PLUGIN += qjpeg qtiff
     80    DEPLOYMENT += target share docs # l10n
     81    DEPLOYMENT_PLUGIN += qjpeg qtiff
    8282}
    8383
    8484# win32 and wince common
    8585win* {
    86         target.path = $$PREFIX/TSPSG
    87         share.path = $$PREFIX/TSPSG
     86    target.path = $$PREFIX/TSPSG
     87    share.path = $$PREFIX/TSPSG
    8888#       l10n.path = $$PREFIX/TSPSG/l10n
    89         docs.path = $$PREFIX/TSPSG
     89    docs.path = $$PREFIX/TSPSG
    9090}
    9191
    9292# Symbian
    9393symbian {
    94         TARGET = TSPSG$${D}
     94    TARGET = TSPSG$${D}
    9595
    96         share.sources = $$share.files
    97         # qmake for Symbian (as of Qt 4.6.2) has a bug: file masks doesn't work, so we need to specify all files manually
     96    share.sources = $$share.files
     97    # qmake for Symbian (as of Qt 4.6.2) has a bug: file masks doesn't work, so we need to specify all files manually
    9898#       l10n.sources = $$[QT_INSTALL_TRANSLATIONS]/qt_ru.qm \
    9999#               $$[QT_INSTALL_TRANSLATIONS]/qt_uk.qm \
    100100#               l10n/tspsg_en.qm l10n/tspsg_ru.qm l10n/tspsg_uk.qm
    101101#       l10n.path = l10n
    102         docs.sources = $$docs.files
     102    docs.sources = $$docs.files
    103103#       docs.pkg_prerules = \
    104104#               "\"README.txt\" - \"\", FILETEXT, TEXTCONTINUE" \
    105105#               "\"COPYING\" - \"\", FILETEXT, TEXTEXIT"
    106         DEPLOYMENT += share docs # l10n
     106    DEPLOYMENT += share docs # l10n
    107107#       DEPLOYMENT_PLUGIN += qjpeg qtiff qsvgicon
    108108
    109         ICON = resources/tspsg.svg
    110         TARGET.EPOCHEAPSIZE = 0x20000 0x1100000
    111         # OVI Publish - 0x2003AEFB, Self-signed - 0xA89FD7A3
    112         TARGET.UID3 = 0xA89FD7A3
     109    ICON = resources/tspsg.svg
     110    TARGET.EPOCHEAPSIZE = 0x20000 0x1100000
     111    # OVI Publish - 0x2003AEFB, Self-signed - 0xA89FD7A3
     112    TARGET.UID3 = 0xA89FD7A3
    113113#       TARGET.UID3 = 0x2003AEFB
    114114
    115         languages="&EN,RU,UK"
    116         package_header = "$$LITERAL_HASH{" \
    117                 " \"$$QMAKE_TARGET_PRODUCT\"," \
    118                 " \"$$QMAKE_TARGET_PRODUCT\"," \
    119                 " \"$$QMAKE_TARGET_PRODUCT\"" \
    120                 "},($$TARGET.UID3),$$BUILD_VERSION_MAJOR,$${BUILD_VERSION_MINOR}$${BUILD_RELEASE},$$REVISION"
    121         vendor = \
    122                 "%{\"Oleksii Serdiuk\",\"Алексей Сердюк\",\"Олексій Сердюк\"}" \
    123                 ":\"Oleksii Serdiuk\""
     115    languages="&EN,RU,UK"
     116    package_header = "$$LITERAL_HASH{" \
     117        " \"$$QMAKE_TARGET_PRODUCT\"," \
     118        " \"$$QMAKE_TARGET_PRODUCT\"," \
     119        " \"$$QMAKE_TARGET_PRODUCT\"" \
     120        "},($$TARGET.UID3),$$BUILD_VERSION_MAJOR,$${BUILD_VERSION_MINOR}$${BUILD_RELEASE},$$REVISION"
     121    vendor = \
     122        "%{\"Oleksii Serdiuk\",\"Алексей Сердюк\",\"Олексій Сердюк\"}" \
     123        ":\"Oleksii Serdiuk\""
    124124#       logo = \
    125125#               "=\"resources/tspsg.png\",\"image/png\",\"\""
    126         dependencies = \
    127                 "; Depend on Qt $${QT_MAJOR_VERSION}.$${QT_MINOR_VERSION}.$${QT_PATCH_VERSION}" \
    128                 "(0x2001E61C),$${QT_MAJOR_VERSION},$${QT_MINOR_VERSION},$${QT_PATCH_VERSION},{\"Qt\",\"Qt\",\"Qt\"}" \
    129                 "; Declare the supported platforms" \
    130                 "; Symbian^1" \
    131                 "[0x1028315F],0,0,0,{\"S60ProductID\",\"S60ProductID\",\"S60ProductID\"}" \
    132                 "; Symbian^3" \
    133                 "[0x20022E6D],0,0,0,{\"S60ProductID\",\"S60ProductID\",\"S60ProductID\"}"
     126    dependencies = \
     127        "; Depend on Qt $${QT_MAJOR_VERSION}.$${QT_MINOR_VERSION}.$${QT_PATCH_VERSION}" \
     128        "(0x2001E61C),$${QT_MAJOR_VERSION},$${QT_MINOR_VERSION},$${QT_PATCH_VERSION},{\"Qt\",\"Qt\",\"Qt\"}" \
     129        "; Declare the supported platforms" \
     130        "; Symbian^1" \
     131        "[0x1028315F],0,0,0,{\"S60ProductID\",\"S60ProductID\",\"S60ProductID\"}" \
     132        "; Symbian^3" \
     133        "[0x20022E6D],0,0,0,{\"S60ProductID\",\"S60ProductID\",\"S60ProductID\"}"
    134134
    135         default_deployment.pkg_prerules -= pkg_platform_dependencies pkg_depends_qt
    136         default_deployment.pkg_prerules += languages package_header vendor dependencies
     135    default_deployment.pkg_prerules -= pkg_platform_dependencies pkg_depends_qt
     136    default_deployment.pkg_prerules += languages package_header vendor dependencies
    137137#       default_deployment.pkg_prerules += languages package_header vendor logo dependencies
    138         # OVI Publish - 0x2002CCCF, Self-signed - 0xA000D7CE
    139         DEPLOYMENT.installer_header = "$${LITERAL_HASH}{" \
    140                 "\"$$QMAKE_TARGET_PRODUCT Installer\"," \
    141                 "\"Установщик $$QMAKE_TARGET_PRODUCT\"," \
    142                 "\"Встановлювач $$QMAKE_TARGET_PRODUCT\"" \
    143                 "},(0xA000D7CE),$$BUILD_VERSION_MAJOR,$${BUILD_VERSION_MINOR}$${BUILD_RELEASE},$$REVISION"
     138    # OVI Publish - 0x2002CCCF, Self-signed - 0xA000D7CE
     139    DEPLOYMENT.installer_header = "$${LITERAL_HASH}{" \
     140        "\"$$QMAKE_TARGET_PRODUCT Installer\"," \
     141        "\"Установщик $$QMAKE_TARGET_PRODUCT\"," \
     142        "\"Встановлювач $$QMAKE_TARGET_PRODUCT\"" \
     143        "},(0xA000D7CE),$$BUILD_VERSION_MAJOR,$${BUILD_VERSION_MINOR}$${BUILD_RELEASE},$$REVISION"
    144144#               "},(0x2002CCCF),$$BUILD_VERSION_MAJOR,$${BUILD_VERSION_MINOR}$${BUILD_RELEASE},$$REVISION"
    145145}
     
    147147# Maemo 5
    148148maemo5 {
    149         target.path = /opt/usr/bin
    150         desktop.files = qtc_packaging/tspsg.desktop
    151         desktop.path = /usr/share/applications/hildon
    152         icon.files = qtc_packaging/tspsg.png
    153         icon.path = /usr/share/icons/hicolor/64x64/apps
     149    target.path = /opt/usr/bin
     150    desktop.files = qtc_packaging/tspsg.desktop
     151    desktop.path = /usr/share/applications/hildon
     152    icon.files = qtc_packaging/tspsg.png
     153    icon.path = /usr/share/icons/hicolor/64x64/apps
    154154
    155         INSTALLS += desktop icon
     155    INSTALLS += desktop icon
    156156}
Note: See TracChangeset for help on using the changeset viewer.