-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig.pri
66 lines (51 loc) · 1.69 KB
/
config.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
58
59
60
61
62
63
64
65
66
# Set PREFIX for installation, if not set
isEmpty(PREFIX) {
unix:PREFIX = /usr/local
win32:PREFIX = quote(C:\\Program Files)
}
# Should the tests be built?
#CONFIG += tests
# Disable type-safe enums in release mode
CONFIG(release): DEFINES += NO_TYPESAFE_FLAGS
CONFIG(debug): DEFINES -= NO_TYPESAFE_FLAGS
# Should the memory map visualization be built? Requires the X window system
# for Unix. Disabled by default.
CONFIG += mem_map_vis
# Build with readline support? Default yes for Unix, no for Windows
unix:CONFIG += with_readline
# Should we enabled ANSI colors for terminal output? Ignored for Windows.
CONFIG += with_colors
# Enable compiler warnings by default
CONFIG -= warn_off
CONFIG += warn_on
#---------------------------[ End of configuration ]----------------------------
# Create both debug and release build files
CONFIG += debug_and_release
# Directory where libraries are created
BUILD_DIR =
win32 {
BUILD_DIR = /release
CONFIG(debug): BUILD_DIR = /debug
}
# Enable high optimization
QMAKE_CFLAGS_RELEASE += -O3
QMAKE_CXXFLAGS_RELEASE += -O3
# Enable C++11 support for GCC
contains(QMAKE_CXX, g++): QMAKE_CXXFLAGS += -std=c++0x
# Names of the libs
INSIGHT_LIB = insight
CPARSER_LIB = cparser
ANTLR_LIB = antlr3c
DEBUG_LIB = debug
# Windows specific configuration
win32 {
# Dynamically linked libs have a version suffix
INSIGHT_LIB = insight1
# Avoid compiler warnings from MinGW
QMAKE_LFLAGS_DEBUG += --enable-auto-import
QMAKE_LFLAGS_RELEASE += --enable-auto-import
}
# If building without colorized output, define the corresponding flag
!CONFIG(with_colors) {
DEFINES += NO_ANSI_COLORS
}