Mercurial > hg > forks > UniversalIndentGUI
comparison UniversalIndentGUI.pro @ 786:4aa9130f4e9f
Cleaned up and corrected the qmake project file a bit.
git-svn-id: svn://svn.code.sf.net/p/universalindent/code/trunk@1063 59b1889a-e5ac-428c-b0c7-476e01d41282
author | thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282> |
---|---|
date | Thu, 29 Dec 2011 14:46:26 +0000 |
parents | c6d54610983b |
children | 4950731d52c1 |
comparison
equal
deleted
inserted
replaced
785:de02d5ea9770 | 786:4aa9130f4e9f |
---|---|
14 INCLUDEPATH += src | 14 INCLUDEPATH += src |
15 | 15 |
16 CONFIG += debug_and_release | 16 CONFIG += debug_and_release |
17 | 17 |
18 macx { | 18 macx { |
19 CONFIG += x86 x86_64 sdk | 19 # If using as framework qscintilla needs to be build with: |
20 # qscintilla needs to be build with: | |
21 # qmake -spec macx-g++ CONFIG+=sdk CONFIG+=x86_64 CONFIG+=x86 CONFIG+=lib_bundle qscintilla.pro && make && sudo make install | 20 # qmake -spec macx-g++ CONFIG+=sdk CONFIG+=x86_64 CONFIG+=x86 CONFIG+=lib_bundle qscintilla.pro && make && sudo make install |
22 LIBS += -framework qscintilla2 | 21 #LIBS += -framework qscintilla2 |
22 LIBS += -lqscintilla2 | |
23 ICON = resources/UniversalIndentGUI.icns | 23 ICON = resources/UniversalIndentGUI.icns |
24 } | 24 } |
25 else { | 25 else { |
26 LIBS += -lqscintilla2 | 26 LIBS += -lqscintilla2 |
27 } | 27 } |
29 CONFIG(release, debug|release) { | 29 CONFIG(release, debug|release) { |
30 | 30 |
31 win32:pipe2nul = ">NUL" | 31 win32:pipe2nul = ">NUL" |
32 unix:pipe2nul = "&> /dev/null" | 32 unix:pipe2nul = "&> /dev/null" |
33 macx:pipe2nul = "&> /dev/null" | 33 macx:pipe2nul = "&> /dev/null" |
34 | |
35 | |
36 # Language file processing | |
37 ########################## | |
34 message(Updating language files) | 38 message(Updating language files) |
35 | |
36 lupdate = lupdate | 39 lupdate = lupdate |
37 unix:lupdate = lupdate-qt4 | 40 unix:lupdate = lupdate-qt4 |
38 macx:lupdate = lupdate | 41 macx:lupdate = lupdate |
39 lrelease = lrelease | 42 lrelease = lrelease |
40 unix:lrelease = lrelease-qt4 | 43 unix:lrelease = lrelease-qt4 |
66 system($${lrelease} ./translations/universalindent_zh_TW.ts -qm ./translations/universalindent_zh_TW.qm -silent) | 69 system($${lrelease} ./translations/universalindent_zh_TW.ts -qm ./translations/universalindent_zh_TW.qm -silent) |
67 | 70 |
68 # Copy Qts own translation files to the local translation directory | 71 # Copy Qts own translation files to the local translation directory |
69 message ( Copy Qts own translation files to the local translation directory ) | 72 message ( Copy Qts own translation files to the local translation directory ) |
70 qtTranslationInstallDir = $$[QT_INSTALL_TRANSLATIONS] | 73 qtTranslationInstallDir = $$[QT_INSTALL_TRANSLATIONS] |
71 win32:qtTranslationInstallDir = $$replace(qtTranslationInstallDir, /, \) | 74 win32:qtTranslationInstallDir = $$replace(qtTranslationInstallDir, /, \\) |
72 unix:system(cp $${qtTranslationInstallDir}/qt_de.qm ./translations/ $$pipe2nul) | 75 unix:system(cp $${qtTranslationInstallDir}/qt_de.qm ./translations/ $$pipe2nul) |
73 unix:system(cp $${qtTranslationInstallDir}/qt_fr.qm ./translations/ $$pipe2nul) | 76 unix:system(cp $${qtTranslationInstallDir}/qt_fr.qm ./translations/ $$pipe2nul) |
74 unix:system(cp $${qtTranslationInstallDir}/qt_ja.qm ./translations/ $$pipe2nul) | 77 unix:system(cp $${qtTranslationInstallDir}/qt_ja.qm ./translations/ $$pipe2nul) |
75 unix:system(cp $${qtTranslationInstallDir}/qt_ru.qm ./translations/ $$pipe2nul) | 78 unix:system(cp $${qtTranslationInstallDir}/qt_ru.qm ./translations/ $$pipe2nul) |
76 unix:system(cp $${qtTranslationInstallDir}/qt_uk.qm ./translations/ $$pipe2nul) | 79 unix:system(cp $${qtTranslationInstallDir}/qt_uk.qm ./translations/ $$pipe2nul) |
77 unix:system(cp $${qtTranslationInstallDir}/qt_zh_TW.qm ./translations/ $$pipe2nul) | 80 unix:system(cp $${qtTranslationInstallDir}/qt_zh_TW.qm ./translations/ $$pipe2nul) |
78 win32:system(copy $${qtTranslationInstallDir}\qt_de.qm .\translations\ /Y $$pipe2nul) | 81 win32:system(copy $${qtTranslationInstallDir}\\qt_de.qm .\\translations\\ /Y $$pipe2nul) |
79 win32:system(copy $${qtTranslationInstallDir}\qt_fr.qm .\translations\ /Y $$pipe2nul) | 82 win32:system(copy $${qtTranslationInstallDir}\\qt_fr.qm .\\translations\\ /Y $$pipe2nul) |
80 win32:system(copy $${qtTranslationInstallDir}\qt_ja.qm .\translations\ /Y $$pipe2nul) | 83 win32:system(copy $${qtTranslationInstallDir}\\qt_ja.qm .\\translations\\ /Y $$pipe2nul) |
81 win32:system(copy $${qtTranslationInstallDir}\qt_ru.qm .\translations\ /Y $$pipe2nul) | 84 win32:system(copy $${qtTranslationInstallDir}\\qt_ru.qm .\\translations\\ /Y $$pipe2nul) |
82 win32:system(copy $${qtTranslationInstallDir}\qt_uk.qm .\translations\ /Y $$pipe2nul) | 85 win32:system(copy $${qtTranslationInstallDir}\\qt_uk.qm .\\translations\\ /Y $$pipe2nul) |
83 win32:system(copy $${qtTranslationInstallDir}\qt_zh_TW.qm .\translations\ /Y $$pipe2nul) | 86 win32:system(copy $${qtTranslationInstallDir}\\qt_zh_TW.qm .\\translations\\ /Y $$pipe2nul) |
84 | 87 |
85 # Defining files that shall be installed | 88 # Defining files that shall be installed when calling "make install" |
86 ######################################## | 89 #################################################################### |
87 # Create and install man page | 90 # Create and install man page |
88 exists( ./doc/universalindentgui.1* ) { | 91 exists( ./doc/universalindentgui.1* ) { |
89 unix:system(rm ./doc/universalindentgui.1*) | 92 unix:system(rm ./doc/universalindentgui.1*) |
90 } | 93 } |
91 unix:system(cp ./doc/universalindentgui.man ./doc/universalindentgui.1) | 94 unix:system(cp ./doc/universalindentgui.man ./doc/universalindentgui.1) |
123 indenters \ | 126 indenters \ |
124 translation \ | 127 translation \ |
125 documentation | 128 documentation |
126 | 129 |
127 } | 130 } |
128 | |
129 ####################### | |
130 # remove linker flag "-mthreads" so the mingwm10.dll is no longer needed | |
131 ####################### | |
132 win32 { | |
133 message ( remove linker flag "-mthreads" so the mingwm10.dll is no longer needed ) | |
134 #message(old flags:$${QMAKE_LFLAGS}) | |
135 parameters = $${QMAKE_LFLAGS} | |
136 newFlags = | |
137 for(parameter, parameters) { | |
138 !contains(parameter, -mthreads) { | |
139 newFlags += $${parameter} | |
140 } | |
141 } | |
142 QMAKE_LFLAGS = $${newFlags} | |
143 #message(new flags:$${QMAKE_LFLAGS}) | |
144 | |
145 parameters = $${QMAKE_LFLAGS_EXCEPTIONS_ON} | |
146 newFlags = | |
147 for(parameter, parameters) { | |
148 !contains(parameter, -mthreads) { | |
149 newFlags += $${parameter} | |
150 } | |
151 } | |
152 QMAKE_LFLAGS_EXCEPTIONS_ON = $${newFlags} | |
153 | |
154 parameters = $${QMAKE_CXXFLAGS_EXCEPTIONS_ON} | |
155 newFlags = | |
156 for(parameter, parameters) { | |
157 !contains(parameter, -mthreads) { | |
158 newFlags += $${parameter} | |
159 } | |
160 } | |
161 QMAKE_CXXFLAGS_EXCEPTIONS_ON = $${newFlags} | |
162 } | |
163 ####################### | |
164 | |
165 | |
166 | 131 |
167 CONFIG(debug, debug|release) { | 132 CONFIG(debug, debug|release) { |
168 DESTDIR = ./debug | 133 DESTDIR = ./debug |
169 DEFINES += _DEBUG DEBUG | 134 DEFINES += _DEBUG DEBUG |
170 } else { | 135 } else { |
222 src/UpdateCheckDialog.cpp \ | 187 src/UpdateCheckDialog.cpp \ |
223 src/debugging/TSLogger.cpp | 188 src/debugging/TSLogger.cpp |
224 | 189 |
225 RESOURCES += resources/Icons.qrc | 190 RESOURCES += resources/Icons.qrc |
226 RC_FILE = resources/programicon.rc | 191 RC_FILE = resources/programicon.rc |
192 | |
193 | |
194 | |
195 #message(Creating symbolic links within target dir for debugging) | |
196 #macx:system(ln -s $$PWD/config ./debug/config) | |
197 #macx:system(ln -s $$PWD/indenters ./debug/indenters) | |
198 #macx:system(ln -s $$PWD/translations ./debug/translations) | |
199 #macx:system(ln -s $$PWD/config ./release/config) | |
200 #macx:system(ln -s $$PWD/indenters ./release/indenters) | |
201 #macx:system(ln -s $$PWD/translations ./release/translations) |