-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmatrixoptimizer.pro
More file actions
176 lines (133 loc) · 4.62 KB
/
matrixoptimizer.pro
File metadata and controls
176 lines (133 loc) · 4.62 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
#################### qt stuff #########################
TARGET = matrixoptimizer
!host_build:QMAKE_MAC_SDK = macosx10.10
QT += core gui widgets opengl network xml
TEMPLATE = app
##################### flags ###########################
CONFIG += c++11
#QMAKE_CXXFLAGS_DEBUG += -pg
QMAKE_CXXFLAGS_RELEASE += -DNDEBUG
QMAKE_CXXFLAGS_DEBUG += -DOSCPKT_DEBUG
#DEFINES += MO_DISABLE_AUDIO
#for parts of the source that maintain non-qt compatibility
DEFINES += MO_USE_QT
#disable compatibility mode
DEFINES += MO_USE_OPENGL_CORE
#for glm version >= 0.9.5
DEFINES += GLM_FORCE_RADIANS
#disable experimental features
DEFINES += MO_DISABLE_EXP
#deprecated OpenGL stuff (nice to have though...)
DEFINES += MO_DISABLE_EDGEFLAG
#disable control interface for now (it's currently broken)
DEFINES += MO_DISABLE_FRONT
#disable for production until it works ...
DEFINES += MO_DISABLE_PROJECTOR_LENS_RADIUS
#as long as it is not really used, avoid this dependency
DEFINES += MO_DISABLE_GST
#thought would be nice, but the dependencies are a bit broken for ubuntu 14
DEFINES += MO_DISABLE_CGAL
# dear macies, see for yourself if you need those features
mac { DEFINES += MO_OS_MAC \
#require audio input and output devices to be separate devices
MO_REQUIRE_SEPARATE_AUDIO \
# MO_DISABLE_ANGELSCRIPT \
# tracker player library
MO_DISABLE_DUMB \
# linux audio plugins
MO_DISABLE_LADSPA \
# shapefiles
MO_DISABLE_SHP
}
windows { DEFINES += MO_OS_WIN \
MO_DISABLE_LADSPA \
MO_DISABLE_DUMB \
MO_DISABLE_NIFTI \
MO_DISABLE_SHP \
MO_DISABLE_GLU
#MO_ENABLE_PYTHON34
}
unix: { DEFINES += MO_OS_UNIX \
# for optirun bug (XXX old and obsolete by now)
MO_DISABLE_OBJECT_TREE_DRAG \
MO_DISABLE_ANGELSCRIPT \
#MO_DISABLE_SHP \
MO_ENABLE_PYTHON34 \
# neuro-imaging io library
#MO_ENABLE_NIFTI \
MO_ENABLE_FFMPEG
#MO_ENABLE_NUMPY
}
##################### libs ############################
mac {
LIBS += -L/opt/local/lib/ \
-L/usr/local/lib/ \
-lglbinding \
-lportaudio \
-lportmidi \
-lsndfile \
-lgstreamer-1.0 \
-lgstapp-1.0 \
-lgobject-2.0 \
-lglib-2.0 \
-langelscript
}
unix {
LIBS += -lglbinding \
-lGLU -lGL -lX11 \
-lportaudio -lportmidi -lsndfile -ldumb \
-ljpeg \
#-langelscript \
-lpython3.5m \
# numpy
#-L/home/defgsus/.local/lib/ -lnpymath-1.8 \
#-lniftiio \
-lshp -latomic \
-lavutil -lavcodec -lavformat -lswscale \
#-lgstreamer-1.0 -lgstapp-1.0 -lgobject-2.0 -lglib-2.0 \
-ldl # dynamic linking
# -lCGAL \
}
win32 {
LIBS += -lkernel32 -lpsapi \
-lopengl32 -lglu32 -lglbinding \
-lportaudio -lPortMidi -lsndfile-1 \
-ljpeg \
-langelscript \
# window handling and opengl
-lgdi32 -luser32 #winmm.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib opengl32.lib
# ffmpeg
#avutil.lib avcodec.lib avformat.lib swscale.lib \
#-lpython35
#-lgstreamer-1.0 -lgstapp-1.0 -lgobject-2.0 -lglib-2.0
}
###################### files ##########################
INCLUDEPATH += src
mac: { INCLUDEPATH += /opt/local/include \
/usr/local/include \
/usr/local/include/gstreamer-1.0 \
/usr/local/include/glib-2.0 \
/usr/local/lib/glib-2.0/include \
/opt/local/include/gstreamer-1.0 \
/opt/local/include/glib-2.0 \
/opt/local/lib/glib-2.0/include }
linux: { INCLUDEPATH += /usr/include/gstreamer-1.0 \
/usr/include/glib-2.0 \
#$HOME/.local/lib/python3.4/site-packages/numpy/core/include \
/usr/lib/x86_64-linux-gnu/glib-2.0/include
}
include(src/gui/gui.pri)
include(src/common.pri)
include(src/object/object.pri)
include(src/client.pri)
include(src/tests/tests.pri)
include(other_files.pri)
include(src/3rd/3rd.pri)
####################### BISON PARSER #######################
#BISON_BIN = bison
#bison_comp.input = BISON_FILES
##bison_comp.output = ./${QMAKE_FILE_BASE}.cc
#bison_comp.commands = $$BISON_BIN ${QMAKE_FILE_NAME} -o ${QMAKE_FILE_BASE}.cc --defines=./${QMAKE_FILE_BASE}.hh
#QMAKE_EXTRA_COMPILERS += bison_comp
DISTFILES += \
INSTALL.md