Changeset 109 in tspsg-svn for trunk/install.pri


Ignore:
Timestamp:
Apr 27, 2010, 9:12:55 AM (15 years ago)
Author:
laleppa
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 copied

Legend:

Unmodified
Added
Removed
  • trunk/install.pri

    r108 r109  
    1111######################################################################
    1212
    13 QT += svg
    14 
    15 TEMPLATE = app
    16 
    17 # Versioning
    18 BUILD_VERSION_MAJOR = 0
    19 BUILD_VERSION_MINOR = 1
    20 BUILD_RELEASE = 3
    21 
    22 # These are only defined on releases
    23 #DEFINES += TSPSG_RELEASE_BUILD
    24 #!symbian {
    25 #       DEFINES += BUILD_STATUS="\"(alpha 2)\""
    26 #} else {
    27 #       # Symbian doesn't handle spaces in defines well
    28 #       DEFINES += BUILD_STATUS="(alpha2)"
    29 #}
    30 
    31 #REVISION = 100
    32 REVISION = $$system(svnversion)
    33 REVISION = $$replace(REVISION,"M","")
    34 VERSION = $$sprintf("%1.%2.%3.%4",$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR,$$BUILD_RELEASE,$$REVISION)
    35 
    36 DEFINES += BUILD_VERSION_MAJOR=$$BUILD_VERSION_MAJOR \
    37         BUILD_VERSION_MINOR=$$BUILD_VERSION_MINOR \
    38         BUILD_RELEASE=$$BUILD_RELEASE \
    39         BUILD_NUMBER=$$REVISION
    40 
    41 # A hack to determine whether we have static or dynamic Qt build
    42 unix:!symbian {
    43         PRL = $$[QT_INSTALL_LIBS] libQtCore.prl
    44 } else:unix {
    45         PRL = $$[QT_INSTALL_LIBS] QtCore.prl
    46 } else {
    47         PRL = $$[QT_INSTALL_LIBS] QtCore.prl
    48 }
    49 include($$join(PRL, "/"))
    50 contains(QMAKE_PRL_CONFIG, static) {
    51 # We "embed" SVG and JPEG support on static build
    52         QTPLUGIN += qjpeg qsvg
    53         DEFINES += STATIC_BUILD
    54 }
    55 
    56 CONFIG(release, debug|release) {
    57         OBJECTS_DIR = release
    58         DESTDIR = release
    59         D =
    60 } else {
    61         OBJECTS_DIR = debug
    62         DESTDIR = debug
    63         DEFINES += DEBUG
    64 #       CONFIG += console
    65         D = d
    66 }
    67 TARGET = tspsg$${D}
    68 
    69 # Saving all intermediate files to tmp directory.
    70 MOC_DIR = ./tmp
    71 RCC_DIR = ./tmp
    72 UI_DIR = ./tmp
    73 
    74 # Include file(s)
    75 include(tspsg.pri)
    76 
    77 # Installation and deployment
    7813# Common rules
    7914l10n.files = l10n/*.qm
     
    11348        share.files = $$[QT_INSTALL_BINS]/QtCore$${D}4.dll \
    11449                $$[QT_INSTALL_BINS]/QtGui$${D}4.dll
    115                 $$[QT_INSTALL_BINS]/QtSvg$${D}4.dll
     50        !nosvg {
     51                share.files += $$[QT_INSTALL_BINS]/QtSvg$${D}4.dll
     52        }
    11653        l10n.files += $$[QT_INSTALL_TRANSLATIONS]/*.qm
    11754        win32-g++ {
     
    11956                        $$[QT_INSTALL_BINS]/libgcc_s_dw2-1.dll
    12057        }
    121         imageformats.files = $$[QT_INSTALL_PLUGINS]/imageformats/qsvg$${D}4.dll \
    122                 $$[QT_INSTALL_PLUGINS]/imageformats/qjpeg$${D}4.dll
     58        imageformats.files = $$[QT_INSTALL_PLUGINS]/imageformats/qjpeg$${D}4.dll \
     59                $$[QT_INSTALL_PLUGINS]/imageformats/qtiff$${D}4.dll
    12360        imageformats.path = $$PREFIX/TSPSG/imageformats
    12461        INSTALLS += imageformats
     
    13471
    13572        DEPLOYMENT += target share l10n docs
    136         DEPLOYMENT_PLUGIN += qjpeg qsvg
     73#       DEPLOYMENT_PLUGIN += qjpeg qtiff
    13774}
    13875
     
    16097                "\"COPYING\" - \"\", FILETEXT, TEXTEXIT"
    16198        DEPLOYMENT += share l10n docs
    162         DEPLOYMENT_PLUGIN += qjpeg qsvg
     99#       DEPLOYMENT_PLUGIN += qjpeg qtiff
    163100
    164101        ICON = resources/tspsg.svg
Note: See TracChangeset for help on using the changeset viewer.