forked from mumble-voip/mumble
-
Notifications
You must be signed in to change notification settings - Fork 0
/
symbols.pri
43 lines (37 loc) · 1.18 KB
/
symbols.pri
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
CONFIG(symbols):macx {
CONFIG(debug, debug|release) {
DSYM_DESTDIR = $${PWD}/debug
}
CONFIG(release, debug|release) {
DSYM_DESTDIR = $${PWD}/release
}
contains(TEMPLATE, 'app') {
DSYM_TARGET_FULLPATH = ${TARGET}
DSYM_OUT = $${DSYM_DESTDIR}/symbols/${QMAKE_TARGET}.dSYM
CONFIG(app_bundle) {
DSYM_OUT = $${DSYM_DESTDIR}/symbols/${QMAKE_TARGET}.app.dSYM
}
}
contains(TEMPLATE, 'lib') {
DSYM_TARGET_FULLPATH = $${DESTDIR}/${TARGET}
DSYM_OUT = $${DSYM_DESTDIR}/symbols/${TARGET}.dSYM
CONFIG(plugin_bundle) {
DSYM_TARGET_FULLPATH = ${DESTDIR}${TARGET}$${QMAKE_BUNDLE_EXTENSION}/Contents/MacOS/${TARGET}
DSYM_OUT = $${DSYM_DESTDIR}/symbols/${TARGET}$${QMAKE_BUNDLE_EXTENSION}.dSYM
}
}
dsym.target = $${DSYM_OUT}
dsym.commands = $(MKDIR) $${DSYM_DESTDIR}/symbols/ && dsymutil $${DSYM_TARGET_FULLPATH} -o $${DSYM_OUT}
dsym.depends = $${DSYM_TARGET_FULLPATH}
dsym.CONFIG = recursive
QMAKE_EXTRA_TARGETS *= dsym
QMAKE_DISTCLEAN *= $${DSYM_OUT}
strip.target = stripdebug
strip.commands = strip -S $${DSYM_TARGET_FULLPATH}
strip.depends = $${DSYM_OUT}
strip.CONFIG = recursive
QMAKE_EXTRA_TARGETS *= strip
!CONFIG(staticlib) {
ALL_DEPS += $${DSYM_OUT} stripdebug
}
}