Fix installation of debug symbols on Apple platforms.
This follows up ab599a39313c22fd14cc5466cea5c61bbcdbba8e, which did not take installation into account. Task-number: QTBUG-54036 Change-Id: Ic1b3acb8984255dd1ca1c288b7b150814ce9e606 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
This commit is contained in:
parent
9caac0f176
commit
4b0cb35b84
@ -27,7 +27,12 @@ have_target:!static:if(darwin|!isEmpty(QMAKE_OBJCOPY)) {
|
|||||||
CONFIG += any_bundle
|
CONFIG += any_bundle
|
||||||
}
|
}
|
||||||
|
|
||||||
debug_info_target_dir = $${debug_info_target}.$$debug_info_suffix/Contents/Resources/DWARF
|
debug_info_target_rel = $$section(debug_info_target, /, -1, -1)
|
||||||
|
|
||||||
|
debug_info_target_dir_suffix = .$$debug_info_suffix/Contents/Resources/DWARF
|
||||||
|
|
||||||
|
debug_info_target_dir = $${debug_info_target}$${debug_info_target_dir_suffix}
|
||||||
|
debug_info_target_dir_rel = $${debug_info_target_rel}$${debug_info_target_dir_suffix}
|
||||||
!isEmpty(QMAKE_RESOLVED_BUNDLE): \
|
!isEmpty(QMAKE_RESOLVED_BUNDLE): \
|
||||||
QMAKE_TARGET_DEBUG_INFO = $$debug_info_target_dir/$$TARGET
|
QMAKE_TARGET_DEBUG_INFO = $$debug_info_target_dir/$$TARGET
|
||||||
else: \
|
else: \
|
||||||
@ -52,8 +57,23 @@ have_target:!static:if(darwin|!isEmpty(QMAKE_OBJCOPY)) {
|
|||||||
debug_info_plist.output = $${debug_info_target}.$$debug_info_suffix/Contents/Info.plist
|
debug_info_plist.output = $${debug_info_target}.$$debug_info_suffix/Contents/Info.plist
|
||||||
QMAKE_SUBSTITUTES += debug_info_plist
|
QMAKE_SUBSTITUTES += debug_info_plist
|
||||||
}
|
}
|
||||||
|
|
||||||
|
contains(INSTALLS, target):isEmpty(target.files):isEmpty(target.commands):isEmpty(target.extra) {
|
||||||
|
!build_pass|release {
|
||||||
|
debug_info_plist_target.CONFIG += no_check_exist
|
||||||
|
debug_info_plist_target.files = $${debug_info_target}.$$debug_info_suffix/Contents/Info.plist
|
||||||
|
debug_info_plist_target.path += $${target.path}/$${debug_info_target_rel}.$$debug_info_suffix/Contents
|
||||||
|
INSTALLS += debug_info_plist_target
|
||||||
|
}
|
||||||
|
|
||||||
|
debug_info_target.CONFIG += no_check_exist
|
||||||
|
debug_info_target.files = $$QMAKE_TARGET_DEBUG_INFO
|
||||||
|
debug_info_target.path += $${target.path}/$${debug_info_target_dir_rel}
|
||||||
|
INSTALLS += debug_info_target
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
QMAKE_TARGET_DEBUG_INFO = $${QMAKE_RESOLVED_TARGET}.$$debug_info_suffix
|
QMAKE_TARGET_DEBUG_INFO = $${QMAKE_RESOLVED_TARGET}.$$debug_info_suffix
|
||||||
|
target.targets += $$QMAKE_TARGET_DEBUG_INFO
|
||||||
}
|
}
|
||||||
|
|
||||||
shell_target = $$shell_quote($$relative_path($$QMAKE_RESOLVED_TARGET, $$OUT_PWD))
|
shell_target = $$shell_quote($$relative_path($$QMAKE_RESOLVED_TARGET, $$OUT_PWD))
|
||||||
@ -72,6 +92,5 @@ have_target:!static:if(darwin|!isEmpty(QMAKE_OBJCOPY)) {
|
|||||||
}
|
}
|
||||||
silent:QMAKE_POST_LINK = @echo creating $@.$$debug_info_suffix && $$QMAKE_POST_LINK
|
silent:QMAKE_POST_LINK = @echo creating $@.$$debug_info_suffix && $$QMAKE_POST_LINK
|
||||||
|
|
||||||
target.targets += $$QMAKE_TARGET_DEBUG_INFO
|
|
||||||
QMAKE_DISTCLEAN += $$QMAKE_TARGET_DEBUG_INFO
|
QMAKE_DISTCLEAN += $$QMAKE_TARGET_DEBUG_INFO
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user