forked from projectgus/hairless-midiserial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hairless-midiserial.pro
138 lines (106 loc) · 3.02 KB
/
hairless-midiserial.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
#-------------------------------------------------
#
# Project created by QtCreator 2011-08-08T17:57:42
#
#-------------------------------------------------
QT += core gui
TARGET = hairless-midiserial
TEMPLATE = app
DEFINES +=APPNAME=\"hairless-midiserial\"
DEFINES += VERSION=\\\"0.4\\\"
# Main Program
SOURCES += \
src/main.cpp \
src/Bridge.cpp \
src/BlinkenLight.cpp \
src/ui/mainwindow.cpp \
src/ui/aboutdialog.cpp \
src/ui/settingsdialog.cpp
HEADERS += \
src/Bridge.h \
src/Settings.h \
src/BlinkenLight.h \
src/ui/mainwindow.h \
src/ui/settingsdialog.h \
src/ui/aboutdialog.h
FORMS += src/ui/mainwindow.ui \
src/ui/settingsdialog.ui \
src/ui/aboutdialog.ui
INCLUDEPATH += src/
# Universal binary for OS X
macx {
CONFIG += ppc x86
}
# Static flags for windows
win32 {
QMAKE_LFLAGS += -static -static-libgcc
}
# Icon stuff
win32 {
RC_FILE = "images/icon.rc"
}
macx {
ICON = "images/icon.icns"
}
# linux has no baked-in icon support, but we load a resource to use as a window icon
# qextserialport
HEADERS += libraries/qextserialport/src/qextserialport.h \
libraries/qextserialport/src/qextserialenumerator.h \
libraries/qextserialport/src/qextserialport_global.h
SOURCES += libraries/qextserialport/src/qextserialport.cpp \
libraries/qextserialport/src/qextserialenumerator.cpp
unix:SOURCES += libraries/qextserialport/src/qextserialport_unix.cpp
unix:!macx:SOURCES += libraries/qextserialport/src/qextserialenumerator_linux.cpp
unix:!macx:LIBS += -ludev
macx {
SOURCES += libraries/qextserialport/src/qextserialenumerator_osx.cpp
LIBS += -framework IOKit -framework CoreFoundation
}
win32 {
SOURCES += libraries/qextserialport/src/win_qextserialport.cpp \
libraries/qextserialport/src/qextserialenumerator_win.cpp
DEFINES += WINVER=0x0501 # needed for mingw to pull in appropriate dbt business...probably a better way to do this
LIBS += -lsetupapi
}
INCLUDEPATH += libraries/qextserialport/src/
# RtMidi
HEADERS += libraries/rtmidi/RtMidi.h \
src/QRtMidiIn.h \
SOURCES += libraries/rtmidi/RtMidi.cpp \
src/QRtMidiIn.cpp
INCLUDEPATH += libraries/rtmidi/
linux-* { # linux doesn't get picked up, not sure what else to use
DEFINES += __LINUX_ALSASEQ__
CONFIG += link_pkgconfig x11
PKGCONFIG += alsa
LIBS += -lpthread
}
win32 {
DEFINES += __WINDOWS_MM__
LIBS += -lwinmm
}
macx {
DEFINES += __MACOSX_CORE__
LIBS += -framework \
CoreMidi \
-framework \
CoreAudio \
-framework \
CoreFoundation
}
# PortLatency
SOURCES += src/PortLatency.cpp
HEADERS += src/PortLatency.h
linux-* {
SOURCES += src/PortLatency_linux.cpp
}
win32 {
SOURCES += src/PortLatency_win32.cpp
}
macx {
SOURCES += src/PortLatency_osx.cpp
}
# Resources
RESOURCES += \
resources.qrc
QT += widgets