-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmidipp.pro
250 lines (230 loc) · 6.11 KB
/
midipp.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
#
# QMAKE project file for MIDI Player PRO
#
TEMPLATE = app
!ios {
CONFIG += qt release
}
QT += core gui network
# Automatic platform detection
macx {
HAVE_MACOSX=YES
}
ios {
HAVE_IOS=YES
}
android {
HAVE_ANDROID=YES
}
win32 {
HAVE_WIN32=YES
}
QT += widgets
isEmpty(HAVE_IOS) {
isEmpty(HAVE_ANDROID) {
QT += printsupport
DEFINES += HAVE_PRINTER
}
}
!isEmpty(HAVE_ANDROID) {
HAVE_STATIC=YES
HAVE_NO_SHOW=YES
HAVE_ANDROID=YES
QT += gui-private
ANDROID_TARGET_SDK_VERSION=30
DISTFILES+= \
android/AndroidManifest.xml \
android/gradle/wrapper/gradle-wrapper.jar \
android/gradlew \
android/res/values/libs.xml \
android/build.gradle \
android/gradle/wrapper/gradle-wrapper.properties \
android/gradlew.bat \
android/libs/umidi20_android.jar
ANDROID_PACKAGE_SOURCE_DIR= $${PWD}/android
}
!isEmpty(HAVE_IOS) {
HAVE_STATIC=YES
HAVE_COREMIDI=YES
HAVE_NO_SHOW=YES
SOURCES += ios/activity.mm
HEADERS += ios/activity.h
INCLUDEPATH += ios
QMAKE_ASSET_CATALOGS += ios/Assets.xcassets
QMAKE_INFO_PLIST= ios/midipp.plist
QMAKE_APPLE_DEVICE_ARCHS= arm64
QMAKE_IOS_DEPLOYMENT_TARGET= 13.0
Q_ENABLE_BITCODE.name = ENABLE_BITCODE
Q_ENABLE_BITCODE.value = NO
QMAKE_MAC_XCODE_SETTINGS += Q_ENABLE_BITCODE
}
!isEmpty(HAVE_MACOSX) {
HAVE_STATIC=YES
HAVE_COREMIDI=YES
SOURCES += mac/activity.mm
HEADERS += mac/activity.h
INCLUDEPATH += mac
QMAKE_ASSET_CATALOGS += ios/Assets.xcassets
QMAKE_INFO_PLIST= mac/midipp.plist
OTHER_FILES += mac/MidiPlayerPro.entitlements
}
!isEmpty(HAVE_WIN32) {
HAVE_STATIC=YES
HAVE_JACK=YES
CONFIG += staticlib
INCLUDEPATH += "C:\Program Files\JACK2\include" windows/include
LIBS += -L"C:\Program Files\JACK2\lib" -ljack64
RC_FILE = windows/mainicon.rc
}
isEmpty(LIBUMIDIPATH) {
LIBUMIDIPATH=libumidi
}
!isEmpty(HAVE_NO_SHOW) {
DEFINES += HAVE_NO_SHOW
}
!isEmpty(HAVE_SCREENSHOT) {
DEFINES += HAVE_SCREENSHOT
}
HEADERS += src/midipp.h
HEADERS += src/midipp_bpm.h
HEADERS += src/midipp_button.h
HEADERS += src/midipp_buttonmap.h
HEADERS += src/midipp_chansel.h
HEADERS += src/midipp_checkbox.h
HEADERS += src/midipp_chords.h
HEADERS += src/midipp_custom.h
HEADERS += src/midipp_database.h
HEADERS += src/midipp_decode.h
HEADERS += src/midipp_devices.h
HEADERS += src/midipp_devsel.h
HEADERS += src/midipp_dialog.h
HEADERS += src/midipp_element.h
HEADERS += src/midipp_gpro.h
HEADERS += src/midipp_groupbox.h
HEADERS += src/midipp_gridlayout.h
HEADERS += src/midipp_import.h
HEADERS += src/midipp_instrument.h
HEADERS += src/midipp_looptab.h
HEADERS += src/midipp_mainwindow.h
HEADERS += src/midipp_metronome.h
HEADERS += src/midipp_midi.h
HEADERS += src/midipp_mode.h
HEADERS += src/midipp_musicxml.h
HEADERS += src/midipp_mutemap.h
HEADERS += src/midipp_onlinetabs.h
HEADERS += src/midipp_pianotab.h
HEADERS += src/midipp_replace.h
HEADERS += src/midipp_replay.h
HEADERS += src/midipp_scores.h
HEADERS += src/midipp_settings.h
HEADERS += src/midipp_sheet.h
isEmpty(HAVE_NO_SHOW) {
HEADERS += src/midipp_show.h
}
HEADERS += src/midipp_spinbox.h
HEADERS += src/midipp_shortcut.h
HEADERS += src/midipp_tabbar.h
HEADERS += src/midipp_texture.h
HEADERS += src/midipp_volume.h
SOURCES += src/midipp.cpp
SOURCES += src/midipp_bpm.cpp
SOURCES += src/midipp_button.cpp
SOURCES += src/midipp_buttonmap.cpp
SOURCES += src/midipp_chansel.cpp
SOURCES += src/midipp_checkbox.cpp
SOURCES += src/midipp_chords.cpp
SOURCES += src/midipp_custom.cpp
SOURCES += src/midipp_database.cpp
SOURCES += src/midipp_decode.cpp
SOURCES += src/midipp_devices.cpp
SOURCES += src/midipp_devsel.cpp
SOURCES += src/midipp_dialog.cpp
SOURCES += src/midipp_element.cpp
SOURCES += src/midipp_gpro.cpp
SOURCES += src/midipp_groupbox.cpp
SOURCES += src/midipp_gridlayout.cpp
SOURCES += src/midipp_import.cpp
SOURCES += src/midipp_instrument.cpp
SOURCES += src/midipp_looptab.cpp
SOURCES += src/midipp_mainwindow.cpp
SOURCES += src/midipp_metronome.cpp
SOURCES += src/midipp_midi.cpp
SOURCES += src/midipp_mode.cpp
SOURCES += src/midipp_musicxml.cpp
SOURCES += src/midipp_mutemap.cpp
SOURCES += src/midipp_onlinetabs.cpp
SOURCES += src/midipp_pianotab.cpp
SOURCES += src/midipp_replace.cpp
SOURCES += src/midipp_replay.cpp
SOURCES += src/midipp_scores.cpp
SOURCES += src/midipp_settings.cpp
SOURCES += src/midipp_sheet.cpp
isEmpty(HAVE_NO_SHOW) {
SOURCES += src/midipp_show.cpp
}
SOURCES += src/midipp_tabbar.cpp
SOURCES += src/midipp_texture.cpp
SOURCES += src/midipp_spinbox.cpp
SOURCES += src/midipp_shortcut.cpp
SOURCES += src/midipp_volume.cpp
RESOURCES += midipp.qrc
isEmpty(HAVE_MACOSX) {
TARGET = midipp
} else {
TARGET = MidiPlayerPro
}
LIBS += -lz
isEmpty(HAVE_STATIC) {
LIBS += -L$${PREFIX}/lib -lumidi20
INCLUDEPATH += $${PREFIX}/include
} else {
SOURCES += $${LIBUMIDIPATH}/umidi20.c
SOURCES += $${LIBUMIDIPATH}/umidi20_file.c
SOURCES += $${LIBUMIDIPATH}/umidi20_gen.c
SOURCES += $${LIBUMIDIPATH}/umidi20_pipe.c
INCLUDEPATH += $${LIBUMIDIPATH}
isEmpty(HAVE_CDEV) {
SOURCES += $${LIBUMIDIPATH}/umidi20_cdev_dummy.c
} else {
SOURCES += $${LIBUMIDIPATH}/umidi20_cdev.c
}
isEmpty(HAVE_ALSA) {
SOURCES += $${LIBUMIDIPATH}/umidi20_alsa_dummy.c
} else {
LIBS += -L${PREFIX}/lib -lasound
INCLUDEPATH += -I${PREFIX}/include
SOURCES += $${LIBUMIDIPATH}/umidi20_alsa.c
}
isEmpty(HAVE_JACK) {
SOURCES += $${LIBUMIDIPATH}/umidi20_jack_dummy.c
} else {
isEmpty(HAVE_WIN32) {
LIBS += -L${PREFIX}/lib -ljack
INCLUDEPATH += -I${PREFIX}/include
}
SOURCES += $${LIBUMIDIPATH}/umidi20_jack.c
}
isEmpty(HAVE_COREMIDI) {
SOURCES += $${LIBUMIDIPATH}/umidi20_coremidi_dummy.c
} else {
LIBS += -framework CoreMIDI
LIBS += -framework CoreFoundation
SOURCES += $${LIBUMIDIPATH}/umidi20_coremidi.c
}
isEmpty(HAVE_ANDROID) {
SOURCES += $${LIBUMIDIPATH}/umidi20_android_dummy.c
} else {
SOURCES += $${LIBUMIDIPATH}/umidi20_android.c
OTHER_FILES += $${LIBUMIDIPATH}/umidi20_android.java
}
}
target.path = $${PREFIX}/bin
INSTALLS += target
!macx:!android:!ios:!win32:unix {
icons.path = $${PREFIX}/share/pixmaps
icons.files = midipp.png
INSTALLS += icons
desktop.path = $${PREFIX}/share/applications
desktop.files = midipp.desktop
INSTALLS += desktop
}