diff options
author | Andreas Holzammer <andreas.holzammer@kdab.com> | 2012-08-07 22:22:38 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-09 03:25:53 +0200 |
commit | 661cf8ff4ef55663977a74d9bccf21c50b50f513 (patch) | |
tree | 81c9d9fd5eeaed7e1710b11cea40c6fa43d1b6a3 /mkspecs | |
parent | 63eb5b5a798bd4d5de57243f79fde06b17233820 (diff) |
Make it possible to force generation of debug info in release builds
Change-Id: Ie79e5a6a87475d5140163a2a547b4385a53fc05f
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'mkspecs')
-rw-r--r-- | mkspecs/features/default_post.prf | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/mkspecs/features/default_post.prf b/mkspecs/features/default_post.prf index d0a2d61607..b717a8d352 100644 --- a/mkspecs/features/default_post.prf +++ b/mkspecs/features/default_post.prf @@ -12,8 +12,11 @@ QT_BREAKPAD_ROOT_PATH = $$(QT_BREAKPAD_ROOT_PATH) !staticlib:!static:CONFIG(release, debug|release):have_target: \ # is it applicable? !contains(TARGET, .*phony_target.*): \ # monster hack, you don't really see this here, right? ;) system($$QT_BREAKPAD_ROOT_PATH/qtbreakpadsymbols --breakpad-exists) { # do we really have it? - CONFIG += breakpad + CONFIG += breakpad force_debug_info CONFIG -= no_debug_info separate_debug_info +} + +force_debug_info { QMAKE_CFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CXXFLAGS_RELEASE_WITH_DEBUGINFO QMAKE_LFLAGS_RELEASE = $$QMAKE_LFLAGS_RELEASE_WITH_DEBUGINFO @@ -27,10 +30,13 @@ incredibuild_xge { CONFIG = incredibuild_xge $$CONFIG } -breakpad { +force_debug_info:win32 { load(resolve_target) - win32: QMAKE_CLEAN += $$replace(QMAKE_RESOLVED_TARGET, ...$, pdb) # for the debug case it is hardcoded in qmake + QMAKE_CLEAN += $$replace(QMAKE_RESOLVED_TARGET, ...$, pdb) # for the debug case it is hardcoded in qmake +} +breakpad { + load(resolve_target) DEBUGFILENAME = $$shell_quote($$shell_path($$QMAKE_RESOLVED_TARGET)) PROJECTPATH = $$shell_quote($$shell_path($$OUT_PWD)) |