~vcs-imports/universalindentgui/trunk

« back to all changes in this revision

Viewing changes to UniversalIndentGUI.pro

  • Committer: thomas_-_s
  • Date: 2011-12-29 14:46:26 UTC
  • Revision ID: thomas_-_s-20111229144626-9uyd8oaammhu334l
Cleaned up and corrected the qmake project file a bit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
CONFIG += debug_and_release
17
17
 
18
18
macx {
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
 
22
 LIBS += -lqscintilla2
23
23
 ICON = resources/UniversalIndentGUI.icns
24
24
}
25
25
else {
31
31
win32:pipe2nul = ">NUL"
32
32
unix:pipe2nul = "&> /dev/null"
33
33
macx:pipe2nul = "&> /dev/null"
 
34
 
 
35
 
 
36
# Language file processing
 
37
##########################
34
38
message(Updating language files)
35
 
 
36
39
lupdate = lupdate
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)
84
87
 
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*)
126
129
 
127
130
}
128
131
 
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
 
 
167
132
CONFIG(debug, debug|release) {
168
133
    DESTDIR = ./debug
169
134
    DEFINES += _DEBUG DEBUG
224
189
 
225
190
RESOURCES += resources/Icons.qrc
226
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)