Changeset 20015b41e7 in tspsg for tspsg.pro


Ignore:
Timestamp:
Apr 27, 2010, 9:12:55 AM (14 years ago)
Author:
Oleksii Serdiuk
Branches:
0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
Children:
5d401f2c50
Parents:
ca3d2a30fa
git-author:
Oleksii Serdiuk <contacts@…> (04/27/10 09:12:55)
git-committer:
Oleksii Serdiuk <contacts@…> (06/29/12 19:41:31)
Message:

+ Added the ability to select in what format to save the graph when saving solution as HTML.

  • Moved all installation and deployment rules to a separate install.pri file.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tspsg.pro

    rca3d2a30fa r20015b41e7  
    1111######################################################################
    1212
    13 QT += svg
     13!nosvg {
     14        QT += svg
     15} else {
     16        DEFINES += NOSVG
     17}
    1418
    1519TEMPLATE = app
     
    4953include($$join(PRL, "/"))
    5054contains(QMAKE_PRL_CONFIG, static) {
    51 # We "embed" SVG and JPEG support on static build
    52         QTPLUGIN += qjpeg qsvg
     55# We "embed" JPEG and TIFF support on static build
    5356        DEFINES += STATIC_BUILD
     57#       QTPLUGIN += qjpeg qtiff
    5458}
    5559
     
    7680
    7781# Installation and deployment
    78 # Common rules
    79 l10n.files = l10n/*.qm
    80 #share.files =
    81 docs.files = COPYING README.txt
    82 INSTALLS += target l10n share docs
    83 
    84 # For *nix:
    85 #   - executable goes to /usr/bin
    86 #   - COPYING and README go to /usr/share/TSPSG
    87 #   - translations go to /usr/share/TSPSG/l10n
    88 #   - docs go to /usr/share/doc/TSPSG-x.x.x
    89 unix:!symbian {
    90         PREFIX = /usr
    91         CONFIG(release, debug|release) {
    92                 DEFINES += PATH_L10N=\\\"$$PREFIX/share/TSPSG/l10n\\\"
    93                 DEFINES += PATH_DOCS=\\\"$$PREFIX/share/TSPSG/docs\\\"
    94         }
    95 
    96         target.path = $$PREFIX/bin
    97         share.path = $$PREFIX/share/TSPSG
    98         l10n.path = $$PREFIX/share/TSPSG/l10n
    99         docs.path = $$PREFIX/share/doc/TSPSG-$$VERSION
    100         apps.files = resources/tspsg.desktop
    101         apps.path = $$PREFIX/share/applications/
    102         icon.files = resources/tspsg.png
    103         icon.path = $$PREFIX/share/pixmaps
    104         INSTALLS += apps icon
    105 }
    106 
    107 # TODO: MacOSX
    108 
    109 # For win32: everything goes to "%PROGRAMFILES%\TSPSG" and subfolders.
    110 win32 {
    111         PREFIX = "$$(PROGRAMFILES)"
    112 
    113         share.files = $$[QT_INSTALL_BINS]/QtCore$${D}4.dll \
    114                 $$[QT_INSTALL_BINS]/QtGui$${D}4.dll
    115                 $$[QT_INSTALL_BINS]/QtSvg$${D}4.dll
    116         l10n.files += $$[QT_INSTALL_TRANSLATIONS]/*.qm
    117         win32-g++ {
    118                 share.files += $$[QT_INSTALL_BINS]/mingwm10.dll \
    119                         $$[QT_INSTALL_BINS]/libgcc_s_dw2-1.dll
    120         }
    121         imageformats.files = $$[QT_INSTALL_PLUGINS]/imageformats/qsvg$${D}4.dll \
    122                 $$[QT_INSTALL_PLUGINS]/imageformats/qjpeg$${D}4.dll
    123         imageformats.path = $$PREFIX/TSPSG/imageformats
    124         INSTALLS += imageformats
    125 }
    126 
    127 # For wince: we are deploying to \Program Files\TSPSG.
    128 wince {
    129         PREFIX = "\Program Files"
    130         share.sources = $$share.files
    131         l10n.sources = $$l10n.files \
    132                 $$[QT_INSTALL_TRANSLATIONS]/*.qm
    133         docs.sources = $$docs.files
    134 
    135         DEPLOYMENT += target share l10n docs
    136         DEPLOYMENT_PLUGIN += qjpeg qsvg
    137 }
    138 
    139 # win32 and wince common
    140 win* {
    141         target.path = $$PREFIX/TSPSG
    142         share.path = $$PREFIX/TSPSG
    143         l10n.path = $$PREFIX/TSPSG/l10n
    144         docs.path = $$PREFIX/TSPSG
    145 
    146         RC_FILE = resources/tspsg.rc
    147 }
    148 
    149 # Symbian
    150 symbian {
    151         # 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
    152         share.sources = $$share.files
    153         l10n.sources = $$[QT_INSTALL_TRANSLATIONS]/qt_ru.qm \
    154                 $$[QT_INSTALL_TRANSLATIONS]/qt_uk.qm \
    155                 l10n/tspsg_en.qm l10n/tspsg_ru.qm l10n/tspsg_uk.qm
    156         l10n.path = l10n
    157         docs.sources = $$docs.files
    158         docs.pkg_prerules = \
    159                 "\"README.txt\" - \"\", FILETEXT, TEXTCONTINUE" \
    160                 "\"COPYING\" - \"\", FILETEXT, TEXTEXIT"
    161         DEPLOYMENT += share l10n docs
    162         DEPLOYMENT_PLUGIN += qjpeg qsvg
    163 
    164         ICON = resources/tspsg.svg
    165 
    166         appinfo = \
    167                 "$$LITERAL_HASH{\"TSPSG\"},(0xEb9dce0e),$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR,$$BUILD_RELEASE"
    168         vendorinfo = \
    169                 "%{\"l-homes.org\"}" \
    170                 ":\"l-homes.org\""
    171         default_deployment.pkg_prerules = appinfo vendorinfo
    172         DEPLOYMENT.installer_header = "$${LITERAL_HASH}{\"TSPSG Installer\"},(0xA000D7CE),1,0,0"
    173 }
     82include(install.pri)
Note: See TracChangeset for help on using the changeset viewer.