-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
asmCrashReport.pri
45 lines (33 loc) · 1.23 KB
/
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
41
42
43
44
45
CONFIG (release, release|debug) {
!build_pass: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_CFLAGS_RELEASE_WITH_DEBUGINFO -= -O2
QMAKE_CXXFLAGS_RELEASE -= -O2
QMAKE_CXXFLAGS_RELEASE_WITH_DEBUGINFO -= -O2
QMAKE_CFLAGS_RELEASE += -g -fno-pie -fno-omit-frame-pointer -O0
QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += -fno-pie -fno-omit-frame-pointer -O0
QMAKE_CXXFLAGS_RELEASE += -g -fno-pie -fno-omit-frame-pointer -O0
QMAKE_CXXFLAGS_RELEASE_WITH_DEBUGINFO += -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' )
}