Legend:
- Unmodified
- Added
- Removed
-
trunk/install.pri
r154 r156 23 23 # go to /usr/share/doc/TSPSG-x.x.x 24 24 unix:!macx:!symbian:!maemo* { 25 26 27 28 29 30 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 } 32 32 33 34 33 target.path = $$PREFIX/bin 34 share.path = $$PREFIX/share/TSPSG 35 35 # l10n.path = $$PREFIX/share/TSPSG/l10n 36 37 38 39 40 41 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 42 42 } 43 43 … … 48 48 # For win32: everything goes to "%PROGRAMFILES%\TSPSG" and subfolders. 49 49 win32 { 50 51 52 50 isEmpty(PREFIX) { 51 PREFIX = "$$(PROGRAMFILES)" 52 } 53 53 54 55 56 57 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 } 59 59 # l10n.files += $$[QT_INSTALL_TRANSLATIONS]/*.qm 60 61 62 63 64 65 66 67 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 68 68 } 69 69 70 70 # For wince: we are deploying to \Program Files\TSPSG. 71 71 wince* { 72 73 74 75 72 isEmpty(PREFIX) { 73 PREFIX = "\\Program Files" 74 } 75 share.sources = $$share.files 76 76 # l10n.sources = $$l10n.files \ 77 77 # $$[QT_INSTALL_TRANSLATIONS]/*.qm 78 78 docs.sources = $$docs.files 79 79 80 81 80 DEPLOYMENT += target share docs # l10n 81 DEPLOYMENT_PLUGIN += qjpeg qtiff 82 82 } 83 83 84 84 # win32 and wince common 85 85 win* { 86 87 86 target.path = $$PREFIX/TSPSG 87 share.path = $$PREFIX/TSPSG 88 88 # l10n.path = $$PREFIX/TSPSG/l10n 89 89 docs.path = $$PREFIX/TSPSG 90 90 } 91 91 92 92 # Symbian 93 93 symbian { 94 94 TARGET = TSPSG$${D} 95 95 96 97 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 98 98 # l10n.sources = $$[QT_INSTALL_TRANSLATIONS]/qt_ru.qm \ 99 99 # $$[QT_INSTALL_TRANSLATIONS]/qt_uk.qm \ 100 100 # l10n/tspsg_en.qm l10n/tspsg_ru.qm l10n/tspsg_uk.qm 101 101 # l10n.path = l10n 102 102 docs.sources = $$docs.files 103 103 # docs.pkg_prerules = \ 104 104 # "\"README.txt\" - \"\", FILETEXT, TEXTCONTINUE" \ 105 105 # "\"COPYING\" - \"\", FILETEXT, TEXTEXIT" 106 106 DEPLOYMENT += share docs # l10n 107 107 # DEPLOYMENT_PLUGIN += qjpeg qtiff qsvgicon 108 108 109 110 111 112 109 ICON = resources/tspsg.svg 110 TARGET.EPOCHEAPSIZE = 0x20000 0x1100000 111 # OVI Publish - 0x2003AEFB, Self-signed - 0xA89FD7A3 112 TARGET.UID3 = 0xA89FD7A3 113 113 # TARGET.UID3 = 0x2003AEFB 114 114 115 116 117 118 119 120 121 122 123 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\"" 124 124 # logo = \ 125 125 # "=\"resources/tspsg.png\",\"image/png\",\"\"" 126 127 128 129 130 131 132 133 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\"}" 134 134 135 136 135 default_deployment.pkg_prerules -= pkg_platform_dependencies pkg_depends_qt 136 default_deployment.pkg_prerules += languages package_header vendor dependencies 137 137 # default_deployment.pkg_prerules += languages package_header vendor logo dependencies 138 139 140 141 142 143 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" 144 144 # "},(0x2002CCCF),$$BUILD_VERSION_MAJOR,$${BUILD_VERSION_MINOR}$${BUILD_RELEASE},$$REVISION" 145 145 } … … 147 147 # Maemo 5 148 148 maemo5 { 149 150 151 152 153 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 154 154 155 155 INSTALLS += desktop icon 156 156 } -
trunk/tspsg.pri
r151 r156 13 13 #Header files 14 14 HEADERS += src/globals.h \ 15 16 17 18 19 20 21 22 23 15 src/version.h \ 16 src/os.h \ 17 src/defaults.h \ 18 src/mainwindow.h \ 19 src/settingsdialog.h \ 20 src/tspmodel.h \ 21 src/tspsolver.h \ 22 src/resource.h \ 23 src/qtwin.h 24 24 25 25 #Source files 26 26 SOURCES += src/main.cpp \ 27 28 29 30 31 32 27 src/globals.cpp \ 28 src/mainwindow.cpp \ 29 src/settingsdialog.cpp \ 30 src/tspmodel.cpp \ 31 src/tspsolver.cpp \ 32 src/qtwin.cpp 33 33 34 34 #Forms 35 35 FORMS += ui/mainwindow.ui \ 36 36 ui/settingsdialog.ui 37 37 38 38 #Resource file(s) 39 39 RESOURCES += resources/common.qrc \ 40 40 l10n/l10n.qrc 41 41 42 42 handheld { 43 43 RESOURCES += resources/handheld.qrc 44 44 } else { 45 45 RESOURCES += resources/desktop.qrc 46 46 } 47 47 48 48 win* { 49 49 RC_FILE = resources/tspsg.rc 50 50 } 51 51 … … 53 53 CODECFORTR = UTF-8 54 54 TRANSLATIONS += l10n/template.ts \ 55 56 57 55 l10n/tspsg_en.ts \ 56 l10n/tspsg_ru.ts \ 57 l10n/tspsg_uk.ts 58 58 59 59 !nopch { 60 61 60 # Precompiled header 61 PRECOMPILED_HEADER = src/pch.h 62 62 } 63 63 64 64 _t_t_l_ { 65 66 65 DEFINES += _T_T_L_ 66 HEADERS += src/_.h 67 67 } -
trunk/tspsg.pro
r152 r156 12 12 13 13 !nosvg { 14 14 QT += svg 15 15 } else { 16 16 DEFINES += NOSVG 17 17 } 18 18 19 19 wincewm*|symbian|maemo*|simulator { 20 20 CONFIG += handheld 21 21 } 22 22 … … 29 29 QMAKE_TARGET_PRODUCT = TSP Solver and Generator 30 30 QMAKE_TARGET_DESCRIPTION = TSPSG: TSP Solver and Generator 31 QMAKE_TARGET_COPYRIGHT = Copyright © 20 0-20110Oleksii "Lёppa" Serdiuk <contacts[at]oleksii[dot]name>31 QMAKE_TARGET_COPYRIGHT = Copyright © 2010-2011 Oleksii "Lёppa" Serdiuk <contacts[at]oleksii[dot]name> 32 32 33 33 # Versioning … … 43 43 #REVISION = 145 44 44 isEmpty(REVISION) { 45 45 REVISION = $$system(svnversion) 46 46 } 47 47 isEmpty(REVISION)|isEqual(REVISION,exported) { 48 48 REVISION = 0 49 49 } else { 50 51 50 REVISION = $$replace(REVISION,":","") 51 REVISION = $$replace(REVISION,"M","") 52 52 } 53 53 SHORT_VERSION = $$sprintf("%1.%2",$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR) 54 54 win32-msvc*|wincewm* { 55 55 VERSION = $$SHORT_VERSION 56 56 } else { 57 57 VERSION = $$sprintf("%1.%2",$$SHORT_VERSION,$$BUILD_RELEASE) 58 58 } 59 59 60 60 DEFINES += BUILD_VERSION_MAJOR=$$BUILD_VERSION_MAJOR \ 61 62 63 61 BUILD_VERSION_MINOR=$$BUILD_VERSION_MINOR \ 62 BUILD_RELEASE=$$BUILD_RELEASE \ 63 BUILD_NUMBER=$$REVISION 64 64 65 65 # A hack to determine whether we have static or dynamic Qt build 66 66 macx { 67 67 PRL = $$[QT_INSTALL_LIBS] QtCore.framework QtCore.prl 68 68 } else:symbian|maemo* { 69 69 # Nothing here 70 70 } else:unix { 71 71 PRL = $$[QT_INSTALL_LIBS] libQtCore.prl 72 72 } else { 73 73 PRL = $$[QT_INSTALL_LIBS] QtCore.prl 74 74 } 75 75 !isEmpty(PRL) { 76 77 78 79 76 include($$join(PRL, "/")) 77 contains(QMAKE_PRL_CONFIG, static) { 78 # We "embed" SVG icon support on static build 79 DEFINES += STATIC_BUILD 80 80 # !nosvg:QTPLUGIN += qsvgicon 81 81 } 82 82 } 83 83 84 84 CONFIG(release, debug|release) { 85 86 85 OBJECTS_DIR = release 86 D = 87 87 } else { 88 89 88 OBJECTS_DIR = debug 89 DEFINES += DEBUG 90 90 # CONFIG += console 91 91 D = d 92 92 } 93 93 DESTDIR = bin … … 101 101 # Include 3rd party libraries 102 102 !handheld { 103 103 include(src/3rdparty/qttoolbardialog-2.2_1-opensource/src/qttoolbardialog.pri) 104 104 } 105 105
Note: See TracChangeset
for help on using the changeset viewer.