Use gobjcopy on mac.
--HG-- branch : develop
This commit is contained in:
parent
11641de911
commit
d066c6ed84
|
@ -253,7 +253,15 @@ 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 --strip-debug --strip-unneeded $(TARGET) &&
|
||||
QMAKE_POST_LINK += gobjcopy --add-gnu-debuglink $(TARGET).debug $(TARGET)
|
||||
} else {
|
||||
# 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)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -111,7 +111,15 @@ CONFIG(debug, debug|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 --strip-debug --strip-unneeded $(DESTDIR)/$(TARGET) &&
|
||||
QMAKE_POST_LINK += gobjcopy --add-gnu-debuglink $(DESTDIR)/$(TARGET).debug $(DESTDIR)/$(TARGET)
|
||||
} else {
|
||||
# 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)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -154,7 +154,15 @@ CONFIG(debug, debug|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 --strip-debug --strip-unneeded $(DESTDIR)/$(TARGET) &&
|
||||
QMAKE_POST_LINK += gobjcopy --add-gnu-debuglink $(DESTDIR)/$(TARGET).debug $(DESTDIR)/$(TARGET)
|
||||
} else {
|
||||
# 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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user