Disable compile with debug information on mac.

--HG--
branch : develop
This commit is contained in:
dismine 2014-10-06 00:07:20 +03:00
parent 952e7d06b4
commit a2e839532b
3 changed files with 15 additions and 30 deletions

View File

@ -151,7 +151,7 @@ CONFIG(debug, debug|release){
# Release # Release
DEFINES += QT_NO_DEBUG_OUTPUT DEFINES += QT_NO_DEBUG_OUTPUT
unix:QMAKE_CXXFLAGS_RELEASE += -g unix:!macx:QMAKE_CXXFLAGS_RELEASE += -g
#local revision number for using in version #local revision number for using in version
HG_REV=$$system(hg parents --template '{rev}') HG_REV=$$system(hg parents --template '{rev}')
@ -253,15 +253,10 @@ INCLUDEPATH += $${PWD}/../libs/vpropertyexplorer
DEPENDPATH += $${PWD}/../libs/vpropertyexplorer DEPENDPATH += $${PWD}/../libs/vpropertyexplorer
CONFIG(release, debug|release){ CONFIG(release, debug|release){
unix:macx{ unix:!macx{
# On Mac
QMAKE_POST_LINK += gobjcopy --only-keep-debug $(TARGET) $(TARGET).debug &&
QMAKE_POST_LINK += strip $(TARGET) &&
QMAKE_POST_LINK += gobjcopy --add-gnu-debuglink $(TARGET).debug $(TARGET)
} else {
# On Linux # On Linux
unix:QMAKE_POST_LINK += objcopy --only-keep-debug $(TARGET) $(TARGET).debug && QMAKE_POST_LINK += objcopy --only-keep-debug $(TARGET) $(TARGET).debug &&
unix:QMAKE_POST_LINK += strip --strip-debug --strip-unneeded $(TARGET) && QMAKE_POST_LINK += strip --strip-debug --strip-unneeded $(TARGET) &&
unix:QMAKE_POST_LINK += objcopy --add-gnu-debuglink $(TARGET).debug $(TARGET) QMAKE_POST_LINK += objcopy --add-gnu-debuglink $(TARGET).debug $(TARGET)
} }
} }

View File

@ -110,16 +110,11 @@ CONFIG(debug, debug|release){
# Release # Release
DEFINES += QT_NO_DEBUG_OUTPUT DEFINES += QT_NO_DEBUG_OUTPUT
unix:QMAKE_CXXFLAGS_RELEASE += -g unix:!macx:QMAKE_CXXFLAGS_RELEASE += -g
unix:macx{ unix:!macx{
# On Mac
QMAKE_POST_LINK += gobjcopy --only-keep-debug $(DESTDIR)$(TARGET) $(DESTDIR)$(TARGET).debug &&
QMAKE_POST_LINK += strip -x $(DESTDIR)$(TARGET) &&
QMAKE_POST_LINK += gobjcopy --add-gnu-debuglink $(DESTDIR)$(TARGET).debug $(DESTDIR)$(TARGET)
} else {
# On Linux # On Linux
unix:QMAKE_POST_LINK += objcopy --only-keep-debug $(DESTDIR)/$(TARGET) $(DESTDIR)/$(TARGET).debug && QMAKE_POST_LINK += objcopy --only-keep-debug $(DESTDIR)/$(TARGET) $(DESTDIR)/$(TARGET).debug &&
unix:QMAKE_POST_LINK += strip --strip-debug --strip-unneeded $(DESTDIR)/$(TARGET) && QMAKE_POST_LINK += strip --strip-debug --strip-unneeded $(DESTDIR)/$(TARGET) &&
unix:QMAKE_POST_LINK += objcopy --add-gnu-debuglink $(DESTDIR)/$(TARGET).debug $(DESTDIR)/$(TARGET) QMAKE_POST_LINK += objcopy --add-gnu-debuglink $(DESTDIR)/$(TARGET).debug $(DESTDIR)/$(TARGET)
} }
} }

View File

@ -153,16 +153,11 @@ CONFIG(debug, debug|release){
# Release # Release
DEFINES += QT_NO_DEBUG_OUTPUT DEFINES += QT_NO_DEBUG_OUTPUT
unix:QMAKE_CXXFLAGS_RELEASE += -g unix:!macx:QMAKE_CXXFLAGS_RELEASE += -g
unix:macx{ unix:!macx{
# On Mac
QMAKE_POST_LINK += gobjcopy --only-keep-debug $(DESTDIR)$(TARGET) $(DESTDIR)$(TARGET).debug &&
QMAKE_POST_LINK += strip -x $(DESTDIR)$(TARGET) &&
QMAKE_POST_LINK += gobjcopy --add-gnu-debuglink $(DESTDIR)$(TARGET).debug $(DESTDIR)$(TARGET)
} else {
# On Linux # On Linux
unix:QMAKE_POST_LINK += objcopy --only-keep-debug $(DESTDIR)/$(TARGET) $(DESTDIR)/$(TARGET).debug && QMAKE_POST_LINK += objcopy --only-keep-debug $(DESTDIR)/$(TARGET) $(DESTDIR)/$(TARGET).debug &&
unix:QMAKE_POST_LINK += strip --strip-debug --strip-unneeded $(DESTDIR)/$(TARGET) && QMAKE_POST_LINK += strip --strip-debug --strip-unneeded $(DESTDIR)/$(TARGET) &&
unix:QMAKE_POST_LINK += objcopy --add-gnu-debuglink $(DESTDIR)/$(TARGET).debug $(DESTDIR)/$(TARGET) QMAKE_POST_LINK += objcopy --add-gnu-debuglink $(DESTDIR)/$(TARGET).debug $(DESTDIR)/$(TARGET)
} }
} }