-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.pro
57 lines (43 loc) · 1.36 KB
/
config.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
50
51
52
53
54
55
56
57
#CONFIG = qt warn_on thread debug agg
CONFIG = qt warn_on thread debug
macx:QT += qt3support xml
#QT += qt3support
message(Gears : Builing Makefile with the following config flags : $$CONFIG)
macx:QMAKE_CXXFLAGS += -fpermissive
# Debug settings
debug {
OBJECTS_DIR = debug
#QMAKE_CXXFLAGS +=-DDEBUG_LEVEL=0
QMAKE_CXXFLAGS +=-DDEBUG_LEVEL=2 -DSINGLE_THREADED_PLAYBACK
}
# Optimized settings
release {
OBJECTS_DIR = release
QMAKE_CXXFLAGS_RELEASE -= -O2 -Os
unix:!macx:QMAKE_CXXFLAGS += -DDEBUG_LEVEL=-1 -funroll-loops -fomit-frame-pointer -pipe -O3
unix:!macx:QMAKE_CFLAGS += -DDEBUG_LEVEL=-1 -funroll-loops -fomit-frame-pointer -pipe -O3
macx:QMAKE_CXXFLAGS += -DDEBUG_LEVEL=-1 -O1 -ffast-math -funroll-loops -frename-registers -mcpu=G4 -mtune=G4
macx:QMAKE_CFLAGS += -DDEBUG_LEVEL=-1 -O1 -ffast-math -funroll-loops -frename-registers -mcpu=G4 -mtune=G4
p4 {
QMAKE_CXXFLAGS += -march=pentium4
QMAKE_CFLAGS += -march=pentium4
}
p3 {
QMAKE_CXXFLAGS += -march=pentium3
QMAKE_CFLAGS += -march=pentium3
}
athlon {
QMAKE_CXXFLAGS += -march=athlon
QMAKE_CFLAGS += -march=athlon
}
athlonxp {
QMAKE_CXXFLAGS += -march=athlon-xp
QMAKE_CFLAGS += -march=athlon-xp
}
}
INCLUDEPATH += ../contrib/frei0r
#disable prebinding
macx:QMAKE_LFLAGS_SHLIB -= -prebind
agg {
QMAKE_CXXFLAGS += -I../../../lib/agg23/include
}