d0911d0a92
For this, we have to uninline the separate_debug_info configure test, because supporting the conversion of this in configurejson2cmake is not worth the hassle. Separate debug information can be turned on for a target by calling the function qt_enable_separate_debug_info. For Qt's shared libraries and tools separate debug information is generated if the 'separate_debug_info' feature is manually turned on. Change-Id: Ic2ffc15efef3794dc0aa42f3d853ef6d651a751c Reviewed-by: Leander Beernaert <leander.beernaert@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
8 lines
313 B
INI
8 lines
313 B
INI
TARGET = objcopytest
|
|
SOURCES += main.cpp
|
|
load(resolve_target)
|
|
QMAKE_POST_LINK += \
|
|
$$QMAKE_OBJCOPY --only-keep-debug $$QMAKE_RESOLVED_TARGET objcopytest.debug && \
|
|
$$QMAKE_OBJCOPY --strip-debug $$QMAKE_RESOLVED_TARGET && \
|
|
$$QMAKE_OBJCOPY --add-gnu-debuglink=objcopytest.debug $$QMAKE_RESOLVED_TARGET
|