Changeset 162d5c5f94 in tspsg for tspsg.pro
- Timestamp:
- Mar 1, 2010, 2:13:23 PM (15 years ago)
- Branches:
- 0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
- Children:
- f19df0a3e5
- Parents:
- 278bc7818f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tspsg.pro
r278bc7818f r162d5c5f94 17 17 DEPENDPATH += . 18 18 INCLUDEPATH += . 19 VERSOIN = 0.1.2 19 20 # Versioning 21 BUILD_VERSION_MAJOR = 0 22 BUILD_VERSION_MINOR = 1 23 BUILD_RELEASE = 2 24 25 # This one is only defined on releases 26 #DEFINES += TSPSG_RELEASE_BUILD 27 28 REVISION = $$system(svnversion) 29 REVISION = $$replace(REVISION,"M","") 30 VERSION = $$sprintf("%1.%2.%3",$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR,$$BUILD_RELEASE) 31 32 DEFINES += BUILD_VERSION_MAJOR=$$BUILD_VERSION_MAJOR \ 33 BUILD_VERSION_MINOR=$$BUILD_VERSION_MINOR \ 34 BUILD_RELEASE=$$BUILD_RELEASE \ 35 BUILD_NUMBER=$$REVISION 20 36 21 37 # A hack to determine whether we have static or dynamic Qt build 22 PRL = $$[QT_INSTALL_LIBS] QtCore.prl 38 unix:!symbian { 39 PRL = $$[QT_INSTALL_LIBS] libQtCore.prl 40 } else:unix { 41 PRL = $$[QT_INSTALL_LIBS] QtCore.prl 42 } 23 43 include($$join(PRL, "/")) 24 44 contains(QMAKE_PRL_CONFIG, static) { … … 34 54 OBJECTS_DIR = debug 35 55 DESTDIR = debug 56 DEFINES += DEBUG 36 57 } 37 58 … … 41 62 UI_DIR = ./tmp 42 63 43 # Include file(s)64 # Include file(s) 44 65 include(tspsg.pri) 45 66 67 # Installation and deployment 68 # Common rules 69 #share.files = 70 l10n.files = l10n/*.qm 71 docs.files = COPYING README 72 INSTALLS += target l10n share docs 73 46 74 # For *nix: 47 # - executable goes to $(INSTALL_ROOT)/bin 48 # - COPYING and README go to $(INSTALL_ROOT)/share/tspsg 49 # - translations go to $(INSTALL_ROOT)/share/tspsg/i18n 50 # - docs (none, yet) go to $(INSTALL_ROOT)/share/doc/tspsg 51 # Usually, $(INSTALL_ROOT) is /usr or /usr/local 75 # - executable goes to /usr/bin 76 # - COPYING and README go to /usr/share/tspsg 77 # - translations go to /usr/share/tspsg/l10n 78 # - docs (none, yet) go to /usr/share/doc/tspsg 52 79 unix:!symbian { 53 target.path = /bin 54 share.path = /share/tspsg 55 share.files = COPYING README 56 i18n.path = /share/tspsg/i18n 57 i18n.files = i18n/*.qm 58 docs.path = /share/doc/tspsg 59 # docs.files = docs/* 60 apps.path = /share/applications/ 80 PREFIX = /usr 81 CONFIG(release, debug|release) { 82 DEFINES += PATH_L10N=\\\"$$PREFIX/share/tspsg/l10n\\\" 83 DEFINES += PATH_DOCS=\\\"$$PREFIX/share/tspsg/docs\\\" 84 } 85 86 target.path = $$PREFIX/bin 87 share.path = $$PREFIX/share/tspsg 88 l10n.path = $$PREFIX/share/tspsg/l10n 89 docs.path = $$PREFIX/share/doc/tspsg-$$VERSION 90 apps.path = $$PREFIX/share/applications/ 61 91 apps.files = resources/tspsg.desktop 62 icon.path = /share/pixmaps92 icon.path = $$PREFIX/share/pixmaps 63 93 icon.files = resources/tspsg.png 64 INSTALLS += target i18n docs share icon apps94 INSTALLS += apps icon 65 95 } 66 96 67 # For win32: everything goes to $(INSTALL_ROOT)\tspsg and subfolders. 68 # Usually, $(INSTALL_ROOT) is "C:\Program Files" 97 # TODO: MacOSX 98 99 # For win32: everything goes to "C:\Program Files\tspsg" and subfolders. 69 100 win32 { 70 target.path = "\tspsg" 71 share.path = "\tspsg" 72 share.files = COPYING README 73 i18n.path = "\tspsg\i18n" 74 i18n.files = i18n/*.qm 75 docs.path = "\tspsg\help" 76 # docs.files = docs\* 77 INSTALLS += target i18n docs share 101 PREFIX = "C:\Program Files" 102 } 103 104 # For wince: we are deploying to \Storage Card\Program Files\tspsg. 105 wince { 106 PREFIX = "\Storage Card\Program Files" 107 DEPLOYMENT += target share l10n docs 108 } 109 110 # win32 and wince common 111 win* { 112 target.path = "$$PREFIX\tspsg" 113 share.path = "$$PREFIX\tspsg" 114 l10n.path = "$$PREFIX\tspsg\l10n" 115 docs.path = "$$PREFIX\tspsg" 78 116 79 117 RC_FILE = resources/tspsg.rc 80 118 } 81 119 82 # TODO: MacOSX83 84 # For wince: we are deploying to \Storage Card\Program Files\tspsg.85 wince {86 deploy.path = "\Storage Card\Program Files\tspsg"87 share.sources = COPYING README88 share.path = "\Storage Card\Program Files\tspsg"89 i18n.sources = i18n/*.qm90 i18n.path = "\Storage Card\Program Files\tspsg\i18n"91 # docs.sources = docs\*92 # docs.path = "\Storage Card\Program Files\tspsg\help"93 DEPLOYMENT += deploy share i18n # docs94 }95 96 120 # Symbian 97 121 symbian { 98 share.pkg_prerules = \ 122 l10n.path = l10n 123 docs.pkg_prerules = \ 99 124 "\"README\" - \"\", FILETEXT, TEXTCONTINUE" \ 100 125 "\"COPYING\" - \"\", FILETEXT, TEXTEXIT" 101 share.sources = COPYING README 102 i18n.sources = i18n/*.qm 103 i18n.path = i18n 104 # docs.sources = docs/* 105 # docs.path = help 106 DEPLOYMENT += share i18n # docs 126 DEPLOYMENT += share l10n docs 107 127 108 128 ICON = resources/tspsg.svg
Note: See TracChangeset
for help on using the changeset viewer.