-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathpostapp.pri
More file actions
14 lines (14 loc) · 726 Bytes
/
postapp.pri
File metadata and controls
14 lines (14 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
win32 {
# nothing to do here
}
# in case of linux, create deployment scripts
linux-g++ {
# in case of linux, add post build commands to separate debug symbols
load(resolve_target)
TARGET_FULL = $$basename(QMAKE_RESOLVED_TARGET)
TARGET_PATH = $$dirname(QMAKE_RESOLVED_TARGET)
TARGET_PDB = $${TARGET_FULL}.pdb
QMAKE_POST_LINK += $$quote( cd "$${TARGET_PATH}"; objcopy --only-keep-debug "$${TARGET_FULL}" "$${TARGET_PDB}" $$escape_expand(\n\t))
QMAKE_POST_LINK += $$quote( cd "$${TARGET_PATH}"; strip --strip-debug --strip-unneeded "$${TARGET_FULL}" $$escape_expand(\n\t))
QMAKE_POST_LINK += $$quote( cd "$${TARGET_PATH}"; objcopy --add-gnu-debuglink="$${TARGET_PDB}" "$${TARGET_FULL}" $$escape_expand(\n\t))
}