/
config_unix_any.pri
57 lines (48 loc) · 1.62 KB
/
config_unix_any.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
46
47
48
49
50
51
52
53
54
55
56
57
# The Doomsday Engine Project
# Copyright (c) 2011-2013 Jaakko Keränen <jaakko.keranen@iki.fi>
# Copyright (c) 2011-2013 Daniel Swanson <danij@dengine.net>
# Common Unix build options for all Unix-compatible platforms (assumes gcc/clang).
DEFINES += UNIX
# Ease up on the warnings. (The old C code is a bit messy.)
QMAKE_CFLAGS_WARN_ON -= -Wall
QMAKE_CFLAGS_WARN_ON -= -W
QMAKE_CFLAGS_WARN_ON += -Werror-implicit-function-declaration -fdiagnostics-show-option
deng_debuginfo {
# Inclusion of debug info was requested.
QMAKE_CFLAGS += -g
QMAKE_CXXFLAGS += -g
}
*-g++*|*-gcc* {
# Allow //-comments and anonymous structs inside unions.
QMAKE_CFLAGS += -std=c99 -fms-extensions
}
*-clang* {
QMAKE_CFLAGS_WARN_ON += -Wno-tautological-compare
}
deng_qt5 {
QMAKE_CXXFLAGS += -std=c++11
}
# Print include directories and other info.
#QMAKE_CFLAGS += -Wp,-v
#QMAKE_CXXFLAGS += -Wp,-v
#QMAKE_LFLAGS += -v
# Unix System Tools ----------------------------------------------------------
# Python 2 to be used in generated scripts.
isEmpty(SCRIPT_PYTHON) {
exists(/usr/bin/python2.7): SCRIPT_PYTHON = /usr/bin/python2.7
exists(/usr/bin/python2): SCRIPT_PYTHON = /usr/bin/python2
exists(/usr/bin/python): SCRIPT_PYTHON = /usr/bin/python
exists(/usr/local/bin/python): SCRIPT_PYTHON = /usr/local/bin/python
}
isEmpty(SCRIPT_PYTHON) {
# Check the system path.
SCRIPT_PYTHON = $$system(which python2.7)
}
isEmpty(SCRIPT_PYTHON) {
# Check the system path.
SCRIPT_PYTHON = $$system(which python2)
}
isEmpty(SCRIPT_PYTHON) {
# Check the system path.
SCRIPT_PYTHON = $$system(which python)
}