-
Notifications
You must be signed in to change notification settings - Fork 10
/
asmCrashReport.pri
40 lines (29 loc) · 979 Bytes
/
asmCrashReport.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
#CONFIG (debug, release|debug) {
message( 'Enabling asmCrashReport and including debug symbols' )
DEFINES += ASM_CRASH_REPORT
VPATH += $$PWD/src
DEPENDPATH += $$PWD/src
INCLUDEPATH += $$PWD/src
HEADERS += \
$$PWD/src/asmCrashReport.h
SOURCES += \
$$PWD/src/asmCrashReport.cpp
win32-g++* {
QMAKE_CFLAGS_RELEASE -= -O2
QMAKE_CXXFLAGS_RELEASE -= -O2
QMAKE_CFLAGS_RELEASE += -g -O0
QMAKE_CXXFLAGS_RELEASE += -g -O0
QMAKE_LFLAGS_RELEASE =
LIBS += "-L$$PWD/Win/WinDebug" -lDbghelp
}
mac {
QMAKE_CFLAGS_RELEASE -= -O2
QMAKE_CXXFLAGS_RELEASE -= -O2
QMAKE_CFLAGS_RELEASE += -g -fno-pie -fno-omit-frame-pointer -O0
QMAKE_CXXFLAGS_RELEASE += -g -fno-pie -fno-omit-frame-pointer -O0
QMAKE_LFLAGS_RELEASE += -Wl,-no_pie
}
#}
#CONFIG (debug, release|debug) {
# message( 'NOTE: asmCrashReport is only valid for release builds' )
#}