Do not build an app bundle in debug mode.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-03-10 17:09:36 +02:00
parent 5bb90ab92d
commit 3d377bcbfd
2 changed files with 94 additions and 86 deletions

View File

@ -221,6 +221,7 @@ unix{
} }
} }
CONFIG(release, debug|release){
QMAKE_RPATHDIR += @executable_path/../Frameworks QMAKE_RPATHDIR += @executable_path/../Frameworks
# Path to resources in app bundle # Path to resources in app bundle
@ -266,6 +267,7 @@ unix{
libraries \ libraries \
format format
} }
}
} }
win32 { win32 {
@ -461,7 +463,9 @@ noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
} }
} }
macx{ CONFIG(release, debug|release){
macx{
# run macdeployqt to include all qt libraries in packet # run macdeployqt to include all qt libraries in packet
QMAKE_POST_LINK += $$[QT_INSTALL_BINS]/macdeployqt $${OUT_PWD}/$${DESTDIR}/$${TARGET}.app QMAKE_POST_LINK += $$[QT_INSTALL_BINS]/macdeployqt $${OUT_PWD}/$${DESTDIR}/$${TARGET}.app
}
} }

View File

@ -207,6 +207,7 @@ unix{
} }
} }
CONFIG(release, debug|release){
QMAKE_RPATHDIR += @executable_path/../Frameworks QMAKE_RPATHDIR += @executable_path/../Frameworks
# Path to resources in app bundle # Path to resources in app bundle
@ -267,6 +268,7 @@ unix{
xpdf \ xpdf \
icns_resources icns_resources
} }
}
} }
# "make install" command for Windows. # "make install" command for Windows.
@ -607,7 +609,9 @@ noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
} }
} }
macx{ CONFIG(release, debug|release){
macx{
# run macdeployqt to include all qt libraries in packet # run macdeployqt to include all qt libraries in packet
QMAKE_POST_LINK += $$[QT_INSTALL_BINS]/macdeployqt $${OUT_PWD}/$${DESTDIR}/$${TARGET}.app QMAKE_POST_LINK += $$[QT_INSTALL_BINS]/macdeployqt $${OUT_PWD}/$${DESTDIR}/$${TARGET}.app
}
} }