Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavide Beatrici <davidebeatrici@gmail.com>2017-03-05 15:20:12 +0300
committerDavide Beatrici <davidebeatrici@gmail.com>2017-03-05 17:48:16 +0300
commitd04995899a6c9fbd0b738c2aa2acc2499e83bfd9 (patch)
tree325a77aff33fa5136f265c97776bcb05881efc0d /qmake/symbols.pri
parent03908a0162540e3dfcdc2dc2102ab3b32cd08a88 (diff)
Move .pri files and "toolchain" folder in "qmake"
Diffstat (limited to 'qmake/symbols.pri')
-rw-r--r--qmake/symbols.pri48
1 files changed, 48 insertions, 0 deletions
diff --git a/qmake/symbols.pri b/qmake/symbols.pri
new file mode 100644
index 000000000..3f52ab6c4
--- /dev/null
+++ b/qmake/symbols.pri
@@ -0,0 +1,48 @@
+# Copyright 2005-2017 The Mumble Developers. All rights reserved.
+# Use of this source code is governed by a BSD-style license
+# that can be found in the LICENSE file at the root of the
+# Mumble source tree or at <https://www.mumble.info/LICENSE>.
+
+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
+ }
+}