-
Notifications
You must be signed in to change notification settings - Fork 7
/
vmpk.pro
206 lines (185 loc) · 5.62 KB
/
vmpk.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
# Virtual MIDI Piano Keyboard
# Copyright (C) 2008-2024 Pedro Lopez-Cabanillas <[email protected]>
# This program is 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
# (at your option) 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/>.
TEMPLATE = app
TARGET = vmpk
VERSION = 0.9.1
VER_MAJ = 0
VER_MIN = 9
VER_PAT = 1
DEFINES += RAWKBD_SUPPORT PALETTE_SUPPORT TRANSLATIONS_EMBEDDED
CONFIG += lrelease embed_translations
LRELEASE_DIR='.'
QM_FILES_RESOURCE_PREFIX='/'
requires(equals(QT_MAJOR_VERSION, 5)|equals(QT_MAJOR_VERSION, 6))
equals(QT_MAJOR_VERSION, 5):lessThan(QT_MINOR_VERSION, 9) {
message("Cannot build VMPK with Qt $${QT_VERSION}")
error("Use Qt 5.9 or newer")
}
equals(QT_MAJOR_VERSION, 6):lessThan(QT_MINOR_VERSION, 2) {
message("Cannot build VMPK with Qt $${QT_VERSION}")
error("Use Qt 6.2 or newer")
}
QT += core \
gui \
widgets \
network
dbus {
DEFINES += ENABLE_DBUS
CONFIG += qdbus
QT += dbus
DBUS_ADAPTORS += src/net.sourceforge.vmpk.xml
}
DEFINES += VERSION=$$VERSION
macx {
INCLUDEPATH += $$(DRUMSTICKINCLUDES) #$$(HOME)/Library/Frameworks/drumstick-rt.framework/Headers
LIBS += -F$$(DRUMSTICKLIBS) #$$(HOME)/Library/Frameworks
LIBS += -framework drumstick-rt -framework drumstick-widgets
}
linux {
INCLUDEPATH += $$(DRUMSTICKINCLUDES)
LIBS += -L$$(DRUMSTICKLIBS) -ldrumstick-rt -ldrumstick-widgets
}
win32 {
INCLUDEPATH += $$(DRUMSTICKINCLUDES)
LIBS += -L$$(DRUMSTICKLIBS)
LIBS += -ldrumstick-rt2 -ldrumstick-widgets2
LIBS += -lws2_32
RC_FILE = src/vpianoico.rc
}
linux {
QT += x11extras
CONFIG += link_pkgconfig
PKGCONFIG += xcb
LIBS += -lpthread
}
macx {
ICON = data/vmpk.icns
BUNDLE_RES.files = data/help.html \
data/help_es.html \
data/help_sr.html \
data/help_ru.html \
data/gmgsxg.ins \
data/spanish.xml \
data/german.xml \
data/azerty.xml \
data/azerty-FR.xml \
data/it-qwerty.xml \
data/vkeybd-default.xml \
data/pc102mac.xml \
data/pc102win.xml \
data/pc102x11.xml \
data/Serbian-cyr.xml \
data/Serbian-lat.xml \
#qt.conf \
$$[QT_INSTALL_TRANSLATIONS]/qt_cs.qm \
$$[QT_INSTALL_TRANSLATIONS]/qt_de.qm \
$$[QT_INSTALL_TRANSLATIONS]/qt_es.qm \
$$[QT_INSTALL_TRANSLATIONS]/qt_fr.qm \
#$$[QT_INSTALL_TRANSLATIONS]/qt_gl.qm \
$$[QT_INSTALL_TRANSLATIONS]/qt_ru.qm \
#$$[QT_INSTALL_TRANSLATIONS]/qt_sr.qm \
#$$[QT_INSTALL_TRANSLATIONS]/qt_sv.qm \
vmpk_cs.qm \
vmpk_de.qm \
vmpk_es.qm \
vmpk_fr.qm \
vmpk_gl.qm \
vmpk_it.qm \
vmpk_ru.qm \
vmpk_sr.qm \
vmpk_sv.qm
BUNDLE_RES.path = Contents/Resources
QMAKE_BUNDLE_DATA += BUNDLE_RES
QMAKE_TARGET_BUNDLE_PREFIX = net.sourceforge
QMAKE_BUNDLE = vmpk
QMAKE_INFO_PLIST = data/Info.plist.app
LIBS += -framework CoreFoundation \
-framework Cocoa
}
INCLUDEPATH += src
FORMS += src/about.ui \
src/colordialog.ui \
src/extracontrols.ui \
src/kmapdialog.ui \
src/midisetup.ui \
src/preferences.ui \
src/riffimportdlg.ui \
src/shortcutdialog.ui \
src/vpiano.ui
HEADERS += src/about.h \
src/colordialog.h \
src/colorwidget.h \
src/constants.h \
src/extracontrols.h \
src/instrument.h \
src/keyboardmap.h \
src/kmapdialog.h \
src/maceventhelper.h \
src/mididefs.h \
src/midisetup.h \
src/preferences.h \
src/nativefilter.h \
src/riff.h \
src/riffimportdlg.h \
src/shortcutdialog.h \
src/vpiano.h \
src/vpianosettings.h
SOURCES += src/about.cpp \
src/colordialog.cpp \
src/colorwidget.cpp \
src/extracontrols.cpp \
src/instrument.cpp \
src/keyboardmap.cpp \
src/kmapdialog.cpp \
src/shortcutdialog.cpp \
src/main.cpp \
src/midisetup.cpp \
src/nativefilter.cpp \
src/preferences.cpp \
src/riff.cpp \
src/riffimportdlg.cpp \
src/vpiano.cpp \
src/vpianosettings.cpp
macx {
OBJECTIVE_SOURCES += \
src/maceventhelper.mm
OTHER_FILES += \
data/Info.plist.app
}
RESOURCES += data/vmpk.qrc
TRANSLATIONS += \
translations/vmpk_en.ts \
translations/vmpk_cs.ts \
translations/vmpk_de.ts \
translations/vmpk_es.ts \
translations/vmpk_fr.ts \
translations/vmpk_gl.ts \
translations/vmpk_it.ts \
translations/vmpk_nl.ts \
translations/vmpk_ru.ts \
translations/vmpk_sr.ts \
translations/vmpk_sv.ts \
translations/vmpk_tr.ts \
translations/vmpk_zh_CN.ts
EXTRA_TRANSLATIONS += \
$(DRUMSTICK_TRANSLATIONS)/drumstick-widgets_cs.ts \
$(DRUMSTICK_TRANSLATIONS)/drumstick-widgets_de.ts \
$(DRUMSTICK_TRANSLATIONS)/drumstick-widgets_es.ts \
$(DRUMSTICK_TRANSLATIONS)/drumstick-widgets_fr.ts \
$(DRUMSTICK_TRANSLATIONS)/drumstick-widgets_gl.ts \
$(DRUMSTICK_TRANSLATIONS)/drumstick-widgets_it.ts \
$(DRUMSTICK_TRANSLATIONS)/drumstick-widgets_ru.ts \
$(DRUMSTICK_TRANSLATIONS)/drumstick-widgets_sr.ts \
$(DRUMSTICK_TRANSLATIONS)/drumstick-widgets_sv.ts
LCONVERT_LANGS=cs de es fr it ru
include(lconvert.pri)