-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmetronomek.pro
220 lines (192 loc) · 7.94 KB
/
metronomek.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
# This file is part of Metronomek
# Copyright (C) 2019-2022 by Tomasz Bojczuk ([email protected])
# on the terms of GNU GPLv3 license (http://www.gnu.org/licenses)
android: TARGET = MetronomeK
else: {
TARGET = metronomek
error("To configure and build MetronomeK for desktop PC (Linux, Mac Windows) use cmake! This qmake script is for Android only!")
}
TEMPLATE = app
VERSION = $$system(sed -n \"9 p\" $$PWD/CMakeLists.txt | awk -F\" \" \'{ print $2 }\' | sed \'s/\"//g\' | sed \'s/\)//g\')
ANDROID_VERSION_NAME = $$VERSION
ANDROID_VERSION_CODE = "4"
QMAKE_SUBSTITUTES += src/metronomek_conf.h.in
QT += quick quickcontrols2 androidextras network #multimedia
CONFIG += c++17 # c++11 is fine Metronomek itself but Oboe wants c++17
# Actually it has to be 5.14 for Android due to newer manifest quirks
!versionAtLeast(QT_VERSION, 5.14.0) {
message("Cannot use Qt $${QT_VERSION}")
error("Use Qt 5.14 or newer")
}
DEFINES += QT_DEPRECATED_WARNINGS
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
SOURCES += \
src/main.cpp \
src/tglob.cpp \
src/toboedevice.cpp \
src/tsound.cpp \
src/tabstractaudiodevice.cpp \
# src/tqtaudioout.cpp \
src/tsounddata.cpp \
src/tnumeralspectrum.cpp \
src/tmetroshape.cpp \
src/tgetfile.cpp \
\
src/tspeedhandler.cpp \
src/ttempopart.cpp \
src/tcountingmanager.cpp \
\
src/android/tandroid.cpp \
HEADERS += \
src/tglob.h \
src/taudiobuffer.h \
src/toboedevice.h \
src/tsound.h \
src/tabstractaudiodevice.h \
# src/tqtaudioout.h \
src/tsounddata.h \
src/tnumeralspectrum.h \
src/tmetroshape.h \
src/tgetfile.h \
\
src/tspeedhandler.h \
src/ttempopart.h \
src/tcountingmanager.h \
\
src/android/tandroid.h\
RESOURCES += src/qml/metronomek_qml.qrc images/metronomek_images.qrc
sounds.path = /assets/sounds
translations.path = /assets/translations
sounds.files = sounds/*
sounds.depends += FORCE
translations.files = $$files(translations/*.qm, true)
translations.depends += FORCE
license.files = LICENSE
INSTALLS += sounds translations
DISTFILES += \
installs/android/AndroidManifest.xml \
installs/android/build.gradle \
installs/android/gradle/wrapper/gradle-wrapper.jar \
installs/android/gradle/wrapper/gradle-wrapper.properties \
installs/android/gradlew \
installs/android/gradlew.bat \
installs/android/res/values/libs.xml
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/installs/android
# Google Oboe audio library
LIBS += -lOpenSLES
OBOE_SOURCES = src/oboe/src/aaudio/AAudioLoader.cpp \
src/oboe/src/aaudio/AudioStreamAAudio.cpp \
src/oboe/src/common/AudioSourceCaller.cpp \
src/oboe/src/common/AudioStream.cpp \
src/oboe/src/common/AudioStreamBuilder.cpp \
src/oboe/src/common/DataConversionFlowGraph.cpp \
src/oboe/src/common/FilterAudioStream.cpp \
src/oboe/src/common/FixedBlockAdapter.cpp \
src/oboe/src/common/FixedBlockReader.cpp \
src/oboe/src/common/FixedBlockWriter.cpp \
src/oboe/src/common/LatencyTuner.cpp \
src/oboe/src/common/SourceFloatCaller.cpp \
src/oboe/src/common/SourceI16Caller.cpp \
src/oboe/src/common/SourceI24Caller.cpp \
src/oboe/src/common/SourceI32Caller.cpp \
src/oboe/src/common/Utilities.cpp \
src/oboe/src/common/QuirksManager.cpp \
src/oboe/src/fifo/FifoBuffer.cpp \
src/oboe/src/fifo/FifoController.cpp \
src/oboe/src/fifo/FifoControllerBase.cpp \
src/oboe/src/fifo/FifoControllerIndirect.cpp \
src/oboe/src/flowgraph/FlowGraphNode.cpp \
src/oboe/src/flowgraph/ChannelCountConverter.cpp \
src/oboe/src/flowgraph/ClipToRange.cpp \
src/oboe/src/flowgraph/ManyToMultiConverter.cpp \
src/oboe/src/flowgraph/MonoToMultiConverter.cpp \
src/oboe/src/flowgraph/MultiToMonoConverter.cpp \
src/oboe/src/flowgraph/RampLinear.cpp \
src/oboe/src/flowgraph/SampleRateConverter.cpp \
src/oboe/src/flowgraph/SinkFloat.cpp \
src/oboe/src/flowgraph/SinkI16.cpp \
src/oboe/src/flowgraph/SinkI24.cpp \
src/oboe/src/flowgraph/SinkI32.cpp \
src/oboe/src/flowgraph/SourceFloat.cpp \
src/oboe/src/flowgraph/SourceI16.cpp \
src/oboe/src/flowgraph/SourceI24.cpp \
src/oboe/src/flowgraph/SourceI32.cpp \
src/oboe/src/flowgraph/resampler/IntegerRatio.cpp \
src/oboe/src/flowgraph/resampler/LinearResampler.cpp \
src/oboe/src/flowgraph/resampler/MultiChannelResampler.cpp \
src/oboe/src/flowgraph/resampler/PolyphaseResampler.cpp \
src/oboe/src/flowgraph/resampler/PolyphaseResamplerMono.cpp \
src/oboe/src/flowgraph/resampler/PolyphaseResamplerStereo.cpp \
src/oboe/src/flowgraph/resampler/SincResampler.cpp \
src/oboe/src/flowgraph/resampler/SincResamplerStereo.cpp \
src/oboe/src/opensles/AudioInputStreamOpenSLES.cpp \
src/oboe/src/opensles/AudioOutputStreamOpenSLES.cpp \
src/oboe/src/opensles/AudioStreamBuffered.cpp \
src/oboe/src/opensles/AudioStreamOpenSLES.cpp \
src/oboe/src/opensles/EngineOpenSLES.cpp \
src/oboe/src/opensles/OpenSLESUtilities.cpp \
src/oboe/src/opensles/OutputMixerOpenSLES.cpp \
src/oboe/src/common/StabilizedCallback.cpp \
src/oboe/src/common/Trace.cpp \
src/oboe/src/common/Version.cpp \
OBOE_HEADERS = src/oboe/src/aaudio/AAudioLoader.h \
src/oboe/src/aaudio/AudioStreamAAudio.h \
src/oboe/src/common/AudioSourceCaller.h \
src/oboe/src/common/DataConversionFlowGraph.h \
src/oboe/src/common/FilterAudioStream.h \
src/oboe/src/common/FixedBlockAdapter.h \
src/oboe/src/common/FixedBlockReader.h \
src/oboe/src/common/FixedBlockWriter.h \
src/oboe/src/common/SourceFloatCaller.h \
src/oboe/src/common/SourceI16Caller.h \
src/oboe/src/common/SourceI24Caller.h \
src/oboe/src/common/SourceI32Caller.h \
src/oboe/src/common/QuirksManager.h \
src/oboe/src/fifo/FifoBuffer.h \
src/oboe/src/fifo/FifoController.h \
src/oboe/src/fifo/FifoControllerBase.h \
src/oboe/src/fifo/FifoControllerIndirect.h \
src/oboe/src/flowgraph/FlowGraphNode.h \
src/oboe/src/flowgraph/ChannelCountConverter.h \
src/oboe/src/flowgraph/ClipToRange.h \
src/oboe/src/flowgraph/ManyToMultiConverter.h \
src/oboe/src/flowgraph/MonoToMultiConverter.h \
src/oboe/src/flowgraph/MultiToMonoConverter.h \
src/oboe/src/flowgraph/RampLinear.h \
src/oboe/src/flowgraph/SampleRateConverter.h \
src/oboe/src/flowgraph/SinkFloat.h \
src/oboe/src/flowgraph/SinkI16.h \
src/oboe/src/flowgraph/SinkI24.h \
src/oboe/src/flowgraph/SinkI32.h \
src/oboe/src/flowgraph/SourceFloat.h \
src/oboe/src/flowgraph/SourceI16.h \
src/oboe/src/flowgraph/SourceI24.h \
src/oboe/src/flowgraph/SourceI32.h \
src/oboe/src/flowgraph/resampler/IntegerRatio.h \
src/oboe/src/flowgraph/resampler/LinearResampler.h \
src/oboe/src/flowgraph/resampler/MultiChannelResampler.h \
src/oboe/src/flowgraph/resampler/PolyphaseResampler.h \
src/oboe/src/flowgraph/resampler/PolyphaseResamplerMono.h \
src/oboe/src/flowgraph/resampler/PolyphaseResamplerStereo.h \
src/oboe/src/flowgraph/resampler/SincResampler.h \
src/oboe/src/flowgraph/resampler/SincResamplerStereo.h \
src/oboe/src/opensles/AudioInputStreamOpenSLES.h \
src/oboe/src/opensles/AudioOutputStreamOpenSLES.h \
src/oboe/src/opensles/AudioStreamBuffered.h \
src/oboe/src/opensles/AudioStreamOpenSLES.h \
src/oboe/src/opensles/EngineOpenSLES.h \
src/oboe/src/opensles/OpenSLESUtilities.h \
src/oboe/src/opensles/OutputMixerOpenSLES.h \
src/oboe/src/common/Trace.h \
INCLUDEPATH_OBOE = src/oboe/include/ \
src/oboe/src/
DISTFILES_OBOE += src/oboe/AUTHORS \
src/oboe/CONTRIBUTING \
src/oboe/LICENSE \
src/oboe/README
INCLUDEPATH += $$INCLUDEPATH_OBOE
HEADERS += $$OBOE_HEADERS
SOURCES += $$OBOE_SOURCES
DISTFILES += $$DISTFILES_OBOE
# SSL
android: include($${ANDROID_SDK_ROOT}/android_openssl/openssl.pri)