16
16
CONFIG += debug_and_release
19
CONFIG += x86 x86_64 sdk
20
# qscintilla needs to be build with:
19
# If using as framework qscintilla needs to be build with:
21
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
23
23
ICON = resources/UniversalIndentGUI.icns
31
31
win32:pipe2nul = ">NUL"
32
32
unix:pipe2nul = "&> /dev/null"
33
33
macx:pipe2nul = "&> /dev/null"
36
# Language file processing
37
##########################
34
38
message(Updating language files)
37
40
unix:lupdate = lupdate-qt4
38
41
macx:lupdate = lupdate
68
71
# Copy Qts own translation files to the local translation directory
69
72
message ( Copy Qts own translation files to the local translation directory )
70
73
qtTranslationInstallDir = $$[QT_INSTALL_TRANSLATIONS]
71
win32:qtTranslationInstallDir = $$replace(qtTranslationInstallDir, /, \)
74
win32:qtTranslationInstallDir = $$replace(qtTranslationInstallDir, /, \\)
72
75
unix:system(cp $${qtTranslationInstallDir}/qt_de.qm ./translations/ $$pipe2nul)
73
76
unix:system(cp $${qtTranslationInstallDir}/qt_fr.qm ./translations/ $$pipe2nul)
74
77
unix:system(cp $${qtTranslationInstallDir}/qt_ja.qm ./translations/ $$pipe2nul)
75
78
unix:system(cp $${qtTranslationInstallDir}/qt_ru.qm ./translations/ $$pipe2nul)
76
79
unix:system(cp $${qtTranslationInstallDir}/qt_uk.qm ./translations/ $$pipe2nul)
77
80
unix:system(cp $${qtTranslationInstallDir}/qt_zh_TW.qm ./translations/ $$pipe2nul)
78
win32:system(copy $${qtTranslationInstallDir}\qt_de.qm .\translations\ /Y $$pipe2nul)
79
win32:system(copy $${qtTranslationInstallDir}\qt_fr.qm .\translations\ /Y $$pipe2nul)
80
win32:system(copy $${qtTranslationInstallDir}\qt_ja.qm .\translations\ /Y $$pipe2nul)
81
win32:system(copy $${qtTranslationInstallDir}\qt_ru.qm .\translations\ /Y $$pipe2nul)
82
win32:system(copy $${qtTranslationInstallDir}\qt_uk.qm .\translations\ /Y $$pipe2nul)
83
win32:system(copy $${qtTranslationInstallDir}\qt_zh_TW.qm .\translations\ /Y $$pipe2nul)
81
win32:system(copy $${qtTranslationInstallDir}\\qt_de.qm .\\translations\\ /Y $$pipe2nul)
82
win32:system(copy $${qtTranslationInstallDir}\\qt_fr.qm .\\translations\\ /Y $$pipe2nul)
83
win32:system(copy $${qtTranslationInstallDir}\\qt_ja.qm .\\translations\\ /Y $$pipe2nul)
84
win32:system(copy $${qtTranslationInstallDir}\\qt_ru.qm .\\translations\\ /Y $$pipe2nul)
85
win32:system(copy $${qtTranslationInstallDir}\\qt_uk.qm .\\translations\\ /Y $$pipe2nul)
86
win32:system(copy $${qtTranslationInstallDir}\\qt_zh_TW.qm .\\translations\\ /Y $$pipe2nul)
85
# Defining files that shall be installed
86
########################################
88
# Defining files that shall be installed when calling "make install"
89
####################################################################
87
90
# Create and install man page
88
91
exists( ./doc/universalindentgui.1* ) {
89
92
unix:system(rm ./doc/universalindentgui.1*)
129
#######################
130
# remove linker flag "-mthreads" so the mingwm10.dll is no longer needed
131
#######################
133
message ( remove linker flag "-mthreads" so the mingwm10.dll is no longer needed )
134
#message(old flags:$${QMAKE_LFLAGS})
135
parameters = $${QMAKE_LFLAGS}
137
for(parameter, parameters) {
138
!contains(parameter, -mthreads) {
139
newFlags += $${parameter}
142
QMAKE_LFLAGS = $${newFlags}
143
#message(new flags:$${QMAKE_LFLAGS})
145
parameters = $${QMAKE_LFLAGS_EXCEPTIONS_ON}
147
for(parameter, parameters) {
148
!contains(parameter, -mthreads) {
149
newFlags += $${parameter}
152
QMAKE_LFLAGS_EXCEPTIONS_ON = $${newFlags}
154
parameters = $${QMAKE_CXXFLAGS_EXCEPTIONS_ON}
156
for(parameter, parameters) {
157
!contains(parameter, -mthreads) {
158
newFlags += $${parameter}
161
QMAKE_CXXFLAGS_EXCEPTIONS_ON = $${newFlags}
163
#######################
167
132
CONFIG(debug, debug|release) {
168
133
DESTDIR = ./debug
169
134
DEFINES += _DEBUG DEBUG
225
190
RESOURCES += resources/Icons.qrc
226
191
RC_FILE = resources/programicon.rc
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)