This repository has been archived by the owner on Aug 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 72
/
Copy pathhairless-midiserial.pro
127 lines (101 loc) · 2.64 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
#-------------------------------------------------
#
# Project created by QtCreator 2011-08-08T17:57:42
#
#-------------------------------------------------
QT += core gui
TARGET = hairless-midiserial
TEMPLATE = app
DEFINES +=APPNAME=\"hairless-midiserial\"
DEFINES += VERSION=\\\"0.2\\\"
# Main Program
SOURCES += \
main.cpp\
mainwindow.cpp \
src/Bridge.cpp \
src/settingsdialog.cpp \
src/aboutdialog.cpp \
src/BlinkenLight.cpp
HEADERS += \
mainwindow.h \
src/Bridge.h \
src/Settings.h \
src/settingsdialog.h \
src/aboutdialog.h \
src/BlinkenLight.h
FORMS += mainwindow.ui \
src/settingsdialog.ui \
src/aboutdialog.ui
# 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 += qextserialport/qextserialport.h \
qextserialport/qextserialenumerator.h \
qextserialport/qextserialport_global.h
SOURCES += qextserialport/qextserialport.cpp
unix:SOURCES += qextserialport/posix_qextserialport.cpp
unix:!macx:SOURCES += qextserialport/qextserialenumerator_unix.cpp
macx {
SOURCES += qextserialport/qextserialenumerator_osx.cpp
LIBS += -framework IOKit -framework CoreFoundation
}
win32 {
SOURCES += qextserialport/win_qextserialport.cpp \
qextserialport/qextserialenumerator_win.cpp
DEFINES += WINVER=0x0501 # needed for mingw to pull in appropriate dbt business...probably a better way to do this
LIBS += -lsetupapi
}
# RtMidi
HEADERS += src/RtMidi.h \
src/RtError.h \
src/QRtMidiIn.h \
SOURCES += src/RtMidi.cpp \
src/QRtMidiIn.cpp
linux-g++ { # 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-g++ {
SOURCES += src/PortLatency_linux.cpp
}
win32 {
SOURCES += src/PortLatency_win32.cpp
}
macx {
SOURCES += src/PortLatency_osx.cpp
}
# Resources
RESOURCES += \
resources.qrc