From a2e839532b8e96face24905e7904c2f6191aba39 Mon Sep 17 00:00:00 2001 From: dismine Date: Mon, 6 Oct 2014 00:07:20 +0300 Subject: [PATCH] Disable compile with debug information on mac. --HG-- branch : develop --- src/app/app.pro | 15 +++++---------- src/libs/qmuparser/qmuparser.pro | 15 +++++---------- src/libs/vpropertyexplorer/vpropertyexplorer.pro | 15 +++++---------- 3 files changed, 15 insertions(+), 30 deletions(-) diff --git a/src/app/app.pro b/src/app/app.pro index de9dce2fa..422a67a07 100644 --- a/src/app/app.pro +++ b/src/app/app.pro @@ -151,7 +151,7 @@ CONFIG(debug, debug|release){ # Release DEFINES += QT_NO_DEBUG_OUTPUT - unix:QMAKE_CXXFLAGS_RELEASE += -g + unix:!macx:QMAKE_CXXFLAGS_RELEASE += -g #local revision number for using in version HG_REV=$$system(hg parents --template '{rev}') @@ -253,15 +253,10 @@ INCLUDEPATH += $${PWD}/../libs/vpropertyexplorer DEPENDPATH += $${PWD}/../libs/vpropertyexplorer CONFIG(release, debug|release){ - 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 { + unix:!macx{ # On Linux - unix:QMAKE_POST_LINK += objcopy --only-keep-debug $(TARGET) $(TARGET).debug && - unix:QMAKE_POST_LINK += strip --strip-debug --strip-unneeded $(TARGET) && - unix:QMAKE_POST_LINK += objcopy --add-gnu-debuglink $(TARGET).debug $(TARGET) + QMAKE_POST_LINK += objcopy --only-keep-debug $(TARGET) $(TARGET).debug && + QMAKE_POST_LINK += strip --strip-debug --strip-unneeded $(TARGET) && + QMAKE_POST_LINK += objcopy --add-gnu-debuglink $(TARGET).debug $(TARGET) } } diff --git a/src/libs/qmuparser/qmuparser.pro b/src/libs/qmuparser/qmuparser.pro index 1f02195b8..591c91c89 100644 --- a/src/libs/qmuparser/qmuparser.pro +++ b/src/libs/qmuparser/qmuparser.pro @@ -110,16 +110,11 @@ CONFIG(debug, debug|release){ # Release DEFINES += QT_NO_DEBUG_OUTPUT - unix:QMAKE_CXXFLAGS_RELEASE += -g - 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 { + unix:!macx:QMAKE_CXXFLAGS_RELEASE += -g + unix:!macx{ # On Linux - unix:QMAKE_POST_LINK += objcopy --only-keep-debug $(DESTDIR)/$(TARGET) $(DESTDIR)/$(TARGET).debug && - unix: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 --only-keep-debug $(DESTDIR)/$(TARGET) $(DESTDIR)/$(TARGET).debug && + QMAKE_POST_LINK += strip --strip-debug --strip-unneeded $(DESTDIR)/$(TARGET) && + QMAKE_POST_LINK += objcopy --add-gnu-debuglink $(DESTDIR)/$(TARGET).debug $(DESTDIR)/$(TARGET) } } diff --git a/src/libs/vpropertyexplorer/vpropertyexplorer.pro b/src/libs/vpropertyexplorer/vpropertyexplorer.pro index 0949c9320..3b7012d10 100644 --- a/src/libs/vpropertyexplorer/vpropertyexplorer.pro +++ b/src/libs/vpropertyexplorer/vpropertyexplorer.pro @@ -153,16 +153,11 @@ CONFIG(debug, debug|release){ # Release DEFINES += QT_NO_DEBUG_OUTPUT - unix:QMAKE_CXXFLAGS_RELEASE += -g - 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 { + unix:!macx:QMAKE_CXXFLAGS_RELEASE += -g + unix:!macx{ # On Linux - unix:QMAKE_POST_LINK += objcopy --only-keep-debug $(DESTDIR)/$(TARGET) $(DESTDIR)/$(TARGET).debug && - unix: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 --only-keep-debug $(DESTDIR)/$(TARGET) $(DESTDIR)/$(TARGET).debug && + QMAKE_POST_LINK += strip --strip-debug --strip-unneeded $(DESTDIR)/$(TARGET) && + QMAKE_POST_LINK += objcopy --add-gnu-debuglink $(DESTDIR)/$(TARGET).debug $(DESTDIR)/$(TARGET) } }