Changeset e2abfd326f in tspsg for tspsg.pro


Ignore:
Timestamp:
Mar 12, 2010, 8:28:42 PM (14 years ago)
Author:
Oleksii Serdiuk
Branches:
0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
Children:
394216e468
Parents:
f19df0a3e5
Message:

+ Translatable About dialog.

  • Improved installation rules in .pro file.
  • Disabled SVG and JPEG support. They aren't needed at this point.
  • Fixed a bug when labels were hardly visible under Windows Vista/7 whith translucency on and a dark background behind the application.
  • Fixed a bug when Main Window area was blank if the application was compiled using Qt < 4.6.0.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tspsg.pro

    rf19df0a3e5 re2abfd326f  
    1111######################################################################
    1212
    13 QT += svg
     13#QT += svg
    1414
    1515TEMPLATE = app
     
    2323BUILD_RELEASE = 2
    2424
    25 # This one is only defined on releases
     25# These are only defined on releases
    2626#DEFINES += TSPSG_RELEASE_BUILD
     27#DEFINES += BUILD_STATUS="\"(alpha 2)\""
    2728
    2829REVISION = $$system(svnversion)
     
    4647contains(QMAKE_PRL_CONFIG, static) {
    4748# We "embed" SVG and JPEG support on static build
    48         QTPLUGIN += qjpeg qsvg
     49#       QTPLUGIN += qjpeg qsvg
    4950        DEFINES += STATIC_BUILD
    5051}
     
    5354        OBJECTS_DIR = release
    5455        DESTDIR = release
     56        D = d
    5557} else {
    5658        OBJECTS_DIR = debug
    5759        DESTDIR = debug
    5860        DEFINES += DEBUG
     61        D =
    5962}
    6063
     
    9093        l10n.path = $$PREFIX/share/TSPSG/l10n
    9194        docs.path = $$PREFIX/share/doc/TSPSG-$$VERSION
     95        apps.files = resources/tspsg.desktop
    9296        apps.path = $$PREFIX/share/applications/
    93         apps.files = resources/tspsg.desktop
     97        icon.files = resources/tspsg.png
    9498        icon.path = $$PREFIX/share/pixmaps
    95         icon.files = resources/tspsg.png
    9699        INSTALLS += apps icon
    97100}
     
    99102# TODO: MacOSX
    100103
    101 # For win32: everything goes to "C:\Program Files\TSPSG" and subfolders.
     104# For win32: everything goes to "%PROGRAMFILES%\TSPSG" and subfolders.
    102105win32 {
    103         PREFIX = "C:\Program Files"
     106        PREFIX = "$$(PROGRAMFILES)"
    104107
    105         CONFIG(release, debug|release) {
    106                 imageformats.files = $$[QT_INSTALL_PLUGINS]/imageformats/qsvg4.dll \
    107                         $$[QT_INSTALL_PLUGINS]/imageformats/qjpeg4.dll
    108         } else {
    109                 imageformats.files = $$[QT_INSTALL_PLUGINS]/imageformats/qsvgd4.dll \
    110                         $$[QT_INSTALL_PLUGINS]/imageformats/qjpegd4.dll
    111         }
     108        share.files = $$[QT_INSTALL_LIBS]/QtCore$${D}4.dll \
     109                $$[QT_INSTALL_LIBS]/QtGui$${D}4.dll \
     110                $$[QT_INSTALL_LIBS]/QtSvg$${D}4.dll
     111        imageformats.files = $$[QT_INSTALL_PLUGINS]/imageformats/qsvg$${D}4.dll \
     112                $$[QT_INSTALL_PLUGINS]/imageformats/qjpeg$${D}4.dll
    112113        imageformats.path = $$PREFIX/TSPSG/imageformats
    113114        INSTALLS += imageformats
     
    117118wince {
    118119        PREFIX = "\Program Files"
     120        share.sources = $$share.files
     121        l10n.sources = $$l10n.files
     122        docs.sources = $$docs.files
     123
    119124        DEPLOYMENT += target share l10n docs
    120         DEPLOYMENT_PLUGIN += qjpeg qsvg
     125#       DEPLOYMENT_PLUGIN += qjpeg qsvg
    121126}
    122127
     
    133138# Symbian
    134139symbian {
     140        # 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
     141        share.sources = $$share.files
     142        l10n.sources = l10n/qt_ru.qm l10n/qt_uk.qm l10n/tspsg_en.qm l10n/tspsg_ru.qm l10n/tspsg_uk.qm
    135143        l10n.path = l10n
     144        docs.sources = $$docs.files
    136145        docs.pkg_prerules = \
    137146                "\"README\" - \"\", FILETEXT, TEXTCONTINUE" \
    138147                "\"COPYING\" - \"\", FILETEXT, TEXTEXIT"
    139148        DEPLOYMENT += share l10n docs
    140         DEPLOYMENT_PLUGIN += qjpeg qsvg
     149#       DEPLOYMENT_PLUGIN += qjpeg qsvg
    141150
    142151        ICON = resources/tspsg.svg
    143152
    144153        appinfo = \
    145                 "$$LITERAL_HASH{\"TSPSG\"},(0xEb9dce0e),0,1,2"
     154                "$$LITERAL_HASH{\"TSPSG\"},(0xEb9dce0e),$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR,$$BUILD_RELEASE"
    146155        vendorinfo = \
    147156                "%{\"l-homes.org\"}" \
Note: See TracChangeset for help on using the changeset viewer.