-
Notifications
You must be signed in to change notification settings - Fork 1
/
277.pro
49 lines (40 loc) · 1.39 KB
/
277.pro
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
46
47
48
49
QT += core widgets
TARGET = 277
TEMPLATE = app
CONFIG += c++11
CONFIG += warn_on
CONFIG += debug
INCLUDEPATH += include
include(src/src.pri)
FORMS += forms/mainwindow.ui
RESOURCES += glsl.qrc
# Enable console on Windows so that we can actually see debug prints.
win32 {
CONFIG += console
}
*-clang*|*-g++* {
message("Enabling additional warnings")
CONFIG -= warn_on
QMAKE_CXXFLAGS += -Wall -Wextra -pedantic -Winit-self
QMAKE_CXXFLAGS += -Wno-strict-aliasing
QMAKE_CXXFLAGS += -Wno-unneeded-internal-declaration
QMAKE_CXXFLAGS += -fno-omit-frame-pointer
}
linux-clang*|linux-g++*|macx-clang*|macx-g++* {
message("Enabling stack protector")
QMAKE_CXXFLAGS += -fstack-protector-all
}
# FOR LINUX & MAC USERS INTERESTED IN ADDITIONAL BUILD TOOLS
# ----------------------------------------------------------
# This conditional exists to enable Address Sanitizer (ASAN) during
# the automated build. ASAN is a compiled-in tool which checks for
# memory errors (like Valgrind). You may use these tools yourself;
# `asan-build.sh` builds the project with ASAN. But be aware: ASAN may
# trigger a lot of false-positive leak warnings for the Qt libraries.
# (Use `asan-run.sh` to run the program with leak checking disabled.)
address_sanitizer {
message("Enabling Address Sanitizer")
QMAKE_CXXFLAGS += -fsanitize=address
QMAKE_LFLAGS += -fsanitize=address
}
DISTFILES +=