From 5c99742a0e66c5bdae719f6c8ccba80cf7cc1118 Mon Sep 17 00:00:00 2001 From: Andras Becsi Date: Wed, 14 May 2014 14:50:50 +0200 Subject: Make gyp to dump debug symbols for separate_debug_info builds With this patch we get usable debug files. This also makes qmake strip the core lirary from unneeded sysmbols which is especially beneficial on embedded. Change-Id: Ic1cadd87dbedb9817512a8b4f251cc3e43f028d1 Reviewed-by: Jocelyn Turcotte --- src/core/core_module.pro | 4 ++++ src/core/gyp_run.pro | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/core/core_module.pro b/src/core/core_module.pro index 7aad0de92..1d5ea6be0 100644 --- a/src/core/core_module.pro +++ b/src/core/core_module.pro @@ -21,3 +21,7 @@ load(qt_module) CONFIG -= bsymbolic_functions contains(QT_CONFIG, egl): CONFIG += egl + +linux { + CONFIG(release, debug|release) | contains(QT_CONFIG, separate_debug_info): QMAKE_POST_LINK="cd $(DESTDIR) && $(STRIP) --strip-unneeded $(TARGET)" +} diff --git a/src/core/gyp_run.pro b/src/core/gyp_run.pro index 874434e40..925a30d20 100644 --- a/src/core/gyp_run.pro +++ b/src/core/gyp_run.pro @@ -20,6 +20,8 @@ cross_compile { GYP_CONFIG += disable_glibcxx_debug=1 !webcore_debug: GYP_CONFIG += remove_webcore_debug_symbols=1 +linux:contains(QT_CONFIG, separate_debug_info): GYP_CONFIG += linux_dump_symbols=1 + # Append additional platform options defined in GYP_CONFIG for (config, GYP_CONFIG): GYP_ARGS += "-D $$config" -- cgit v1.2.1