-
Notifications
You must be signed in to change notification settings - Fork 40
/
IanniX.pro
250 lines (211 loc) · 11.3 KB
/
IanniX.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
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
# This file is part of IanniX, a graphical real-time open-source sequencer for digital art
# Copyright (C) 2010-2015 — IanniX Association
#
# Project Manager: Thierry Coduys (http://www.le-hub.org)
# Development: Guillaume Jacquemin (https://www.buzzinglight.com)
#
# This file was written by Guillaume Jacquemin.
#
# IanniX is a free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
QT_VERSION = $$[QT_VERSION]
message($$[QT_VERSION])
contains(QT_VERSION, "^4.*") {
message("IanniX For QT4")
DEFINES += QT4
QT += core gui opengl network script xml
} else {
message("IanniX For QT5")
DEFINES += QT5
QT += widgets core gui opengl network script xml
}
macx {
QMAKE_LFLAGS += -F/Library/Frameworks
contains(QT_VERSION, "4.7.4") {
message("IanniX for Mac 32bits")
DEFINES += IANNIX_32
CONFIG += x86 x86_64
}
else {
DEFINES += IANNIX_64
CONFIG += x86_64
message("IanniX for Mac 64bits")
}
BUNDLE_RES3.files = Examples
BUNDLE_RES3.path = Contents/Resources
QMAKE_BUNDLE_DATA += BUNDLE_RES3
BUNDLE_RES2.files = Tools
BUNDLE_RES2.path = Contents/Resources
QMAKE_BUNDLE_DATA += BUNDLE_RES2
BUNDLE_RES4.files = Patches
BUNDLE_RES4.path = Contents/Resources
QMAKE_BUNDLE_DATA += BUNDLE_RES4
}
!macx {
DEFINES += IANNIX_64
DEFINES += IANNIX_32
CONFIG += x86 x86_64
}
TARGET = IanniX
TEMPLATE = app
unix:!mac {
PREFIX = $${PREFIX}
isEmpty(PREFIX) {
PREFIX = $$(PREFIX)
}
isEmpty(PREFIX) {
PREFIX = /usr/local
}
message(Install Prefix is: $$PREFIX)
TARGET = iannix
target.path = $$PREFIX/bin
INSTALLS += target
desktop.path = $$PREFIX/share/applications
desktop.files = iannix.desktop
INSTALLS += desktop
icons.path = /usr/share/pixmaps
icons.files = iannix.png
INSTALLS += icons
}
HEADERS += iannix.h iannixapp.h iannix_spec.h iannix_cmd.h
SOURCES += iannix.cpp iannixapp.cpp iannix_spec.cpp
HEADERS += misc/help.h misc/application.h misc/options.h misc/applicationexecute.h
SOURCES += misc/help.cpp misc/application.cpp misc/options.cpp misc/applicationexecute.cpp
HEADERS += messages/messagemanagerlogmini.h messages/messagemanagerlog.h messages/messagemanager.h messages/message.h messages/messagemanagerloginterface.h
SOURCES += messages/messagemanagerlogmini.cpp messages/messagemanagerlog.cpp messages/messagemanager.cpp messages/message.cpp
FORMS += messages/messagemanagerlogmini.ui messages/messagemanagerlog.ui
HEADERS += transport/transport.h transport/uitimer.h transport/uiabout.h transport/uieditor.h
SOURCES += transport/transport.cpp transport/uitimer.cpp transport/uiabout.cpp transport/uieditor.cpp
FORMS += transport/transport.ui transport/uitimer.ui transport/uiabout.ui transport/uieditor.ui
HEADERS += render/uirender.h render/uirenderpreview.h
SOURCES += render/uirender.cpp render/uirenderpreview.cpp
FORMS += render/uirender.ui
HEADERS += geometry/nxpoint.h geometry/nxrect.h geometry/nxsize.h geometry/nxline.h geometry/nxpolygon.h geometry/nxeasing.h
SOURCES += geometry/nxpoint.cpp geometry/nxrect.cpp geometry/nxsize.cpp geometry/nxline.cpp geometry/nxpolygon.cpp geometry/nxeasing.cpp
HEADERS += geometry/qmuparser/muParser.h geometry/qmuparser/muParserBase.h geometry/qmuparser/muParserBytecode.h geometry/qmuparser/muParserCallback.h geometry/qmuparser/muParserError.h geometry/qmuparser/muParserTokenReader.h geometry/qmuparser/muParserDef.h geometry/qmuparser/muParserFixes.h geometry/qmuparser/muParserStack.h geometry/qmuparser/muParserToken.h
SOURCES += geometry/qmuparser/muParser.cpp geometry/qmuparser/muParserBase.cpp geometry/qmuparser/muParserBytecode.cpp geometry/qmuparser/muParserCallback.cpp geometry/qmuparser/muParserError.cpp geometry/qmuparser/muParserTokenReader.cpp
HEADERS += objects/nxdocument.h objects/nxtrigger.h objects/nxgroup.h objects/nxcurve.h objects/nxcursor.h objects/nxobject.h
SOURCES += objects/nxdocument.cpp objects/nxtrigger.cpp objects/nxgroup.cpp objects/nxcurve.cpp objects/nxcursor.cpp objects/nxobject.cpp
HEADERS += gui/uiinspector.h gui/uiview.h gui/uihelp.h gui/uimessagebox.h gui/uisplashscreen.h
SOURCES += gui/uiinspector.cpp gui/uiview.cpp gui/uihelp.cpp gui/uimessagebox.cpp gui/uisplashscreen.cpp
FORMS += gui/uiinspector.ui gui/uiview.ui gui/uihelp.ui gui/uimessagebox.ui
HEADERS += gui/qjsedit/jsedit.h
SOURCES += gui/qjsedit/jsedit.cpp
SOURCES += items/uitreeview.cpp items/uitreeviewwidget.cpp items/uitreedelegate.cpp items/uifileitem.cpp items/uicoloritem.cpp items/uipathpointsitem.cpp items/uitextureitem.cpp
HEADERS += items/uitreeview.h items/uitreeviewwidget.h items/uitreedelegate.h items/uifileitem.h items/uicoloritem.h items/uipathpointsitem.h items/uitextureitem.h
FORMS += items/uitreeview.ui
HEADERS += interfaces/extscriptvariableask.h interfaces/extoscpatternask.h interfaces/extoscpatterneditor.h
SOURCES += interfaces/extscriptvariableask.cpp interfaces/extoscpatternask.cpp interfaces/extoscpatterneditor.cpp
FORMS += interfaces/extscriptvariableask.ui interfaces/extoscpatternask.ui interfaces/extoscpatterneditor.ui
HEADERS += abstractionsgl.h
SOURCES += abstractionsgl.cpp
#Native interfaces
HEADERS += interfaces/interfacehttp.h interfaces/interfacemidi.h interfaces/interfaceosc.h interfaces/interfaceserial.h interfaces/interfacetcp.h interfaces/interfaceudp.h interfaces/interfacedirect.h interfaces/interfacesyphon.h
SOURCES += interfaces/interfacehttp.cpp interfaces/interfacemidi.cpp interfaces/interfaceosc.cpp interfaces/interfaceserial.cpp interfaces/interfacetcp.cpp interfaces/interfaceudp.cpp interfaces/interfacedirect.cpp
FORMS += interfaces/interfacehttp.ui interfaces/interfacemidi.ui interfaces/interfaceosc.ui interfaces/interfaceserial.ui interfaces/interfacetcp.ui interfaces/interfaceudp.ui interfaces/interfacedirect.ui interfaces/interfacesyphon.ui
#Serial
HEADERS += interfaces/qextserialport/qextserialport.h interfaces/qextserialport/qextserialenumerator.h interfaces/qextserialport/qextserialport_global.h interfaces/qextserialport/qextserialport_p.h interfaces/qextserialport/qextserialenumerator_p.h
SOURCES += interfaces/qextserialport/qextserialport.cpp interfaces/qextserialport/qextserialenumerator.cpp
#MIDI
HEADERS += interfaces/qrtmidi/RtMidi.h interfaces/qrtmidi/RtError.h
SOURCES += interfaces/qrtmidi/RtMidi.cpp
debug:DEFINES += __RTMIDI_DEBUG__
#Websockets
SOURCES += interfaces/qwebsockets/websocket.cpp interfaces/qwebsockets/websocketserver.cpp interfaces/qwebsockets/websocketprotocol.cpp interfaces/qwebsockets/handshakerequest.cpp interfaces/qwebsockets/handshakeresponse.cpp interfaces/qwebsockets/dataprocessor.cpp
HEADERS += interfaces/qwebsockets/websocket.h interfaces/qwebsockets/websocketserver.h interfaces/qwebsockets/websocketprotocol.h interfaces/qwebsockets/handshakerequest.h interfaces/qwebsockets/handshakeresponse.h interfaces/qwebsockets/dataprocessor.h
#Artnet
macx {
INCLUDEPATH += interfaces
HEADERS += interfaces/artnet/artnet.h interfaces/artnet/misc.h interfaces/artnet/packets.h interfaces/artnet/private.h interfaces/artnet/tod.h interfaces/artnet/common.h
SOURCES += interfaces/artnet/artnet.c interfaces/artnet/misc.c interfaces/artnet/network.c interfaces/artnet/receive.c interfaces/artnet/tod.c interfaces/artnet/transmit.c
}
#Zeroconf
macx {
#DEFINES += ZEROCONF_AS_SERVICE
INCLUDEPATH += interfaces/zeroconf
SOURCES += interfaces/zeroconf/bonjourserviceregister.cpp interfaces/zeroconf/bonjourserviceresolver.cpp interfaces/zeroconf/bonjourservicebrowser.cpp
HEADERS += interfaces/zeroconf/bonjourserviceregister.h interfaces/zeroconf/bonjourserviceresolver.h interfaces/zeroconf/bonjourservicebrowser.h interfaces/zeroconf/bonjourrecord.h
}
#Syphon
macx {
DEFINES += SYPHON_INSTALLED
OBJECTIVE_SOURCES += interfaces/interfacesyphon.mm
LIBS += -framework Cocoa -framework Syphon
}
#Kinect
false {
DEFINES += KINECT_INSTALLED
CONFIG -= x86
unix:SOURCES += interfaces/qkinect/QKinect.cpp extkinectmanager.cpp
unix:HEADERS += interfaces/qkinect/QKinect.h extkinectmanager.h
unix:LIBS += -lfreenect
unix:INCLUDEPATH += /usr/local/include/libfreenect
}
#FFMPEG to record
false {
DEFINES += FFMPEG_INSTALLED
CONFIG -= x86
INCLUDEPATH += gui/qffmpeg
SOURCES += gui/qffmpeg/QVideoEncoder.cpp gui/qffmpeg/QVideoDecoder.cpp
HEADERS += gui/qffmpeg/QVideoEncoder.h gui/qffmpeg/QVideoDecoder.h
unix:LIBS +=-L/opt/local/lib -lavutil
unix:LIBS +=-L/opt/local/lib -lavcodec
unix:LIBS +=-L/opt/local/lib -lavformat
unix:LIBS +=-L/opt/local/lib -lswscale
win32:DEFINES += __STDC_CONSTANT_MACROS
}
#Wacom & trackpads
false {
DEFINES += WACOM_INSTALLED
OBJECTIVE_SOURCES += interfaces/extwacommanager.mm interfaces/qwacom/WacomTabletDriver.h interfaces/qwacom/WacomTabletDriver.m
HEADERS += interfaces/extwacommanager.h
LIBS += -framework Cocoa
}
TRANSLATIONS = Tools/Translation_fr_FR.ts
RESOURCES += icons/IanniX.qrc
macx {
ICON = icon.icns
QMAKE_INFO_PLIST = Info.plist
BUNDLE_RES.files = icon_file.icns
BUNDLE_RES.path = Contents/Resources
QMAKE_BUNDLE_DATA += BUNDLE_RES
}
win32 {
DEFINES += __WINDOWS_MM__
LIBS += -lwinmm -lsetupapi -ladvapi32 -luser32 opengl32.lib
RC_FILE = icon.rc
SOURCES += interfaces/qextserialport/qextserialport_win.cpp interfaces/qextserialport/qextserialenumerator_win.cpp
}
unix {
SOURCES += interfaces/qextserialport/qextserialport_unix.cpp
linux* {
SOURCES += interfaces/qextserialport/qextserialenumerator_linux.cpp
} else:macx {
SOURCES += interfaces/qextserialport/qextserialenumerator_osx.cpp
} else {
SOURCES += interfaces/qextserialport/qextserialenumerator_unix.cpp
}
}
linux* {
DEFINES += __LINUX_ALSA__
DEFINES += AVOID_TIMESTAMPING
DEFINES += __linux__
LIBS += -lasound
PKGCONFIG += alsa
!qesp_linux_udev:DEFINES += QESP_NO_UDEV
qesp_linux_udev: LIBS += -ludev
}
macx {
DEFINES += __MACOSX_CORE__
LIBS += -framework CoreMidi -framework CoreAudio -framework CoreFoundation -framework IOKit -framework Carbon
}