Chris@42
|
1 TEMPLATE = app
|
Chris@4
|
2
|
Chris@83
|
3 win32-g++ {
|
Chris@83
|
4 INCLUDEPATH += sv-dependency-builds/win32-mingw/include
|
Chris@83
|
5 LIBS += -Lsv-dependency-builds/win32-mingw/lib
|
Chris@83
|
6 }
|
Chris@83
|
7 win32-msvc* {
|
Chris@83
|
8 INCLUDEPATH += sv-dependency-builds/win32-msvc/include
|
Chris@83
|
9 LIBS += -Lsv-dependency-builds/win32-msvc/lib
|
Chris@83
|
10 }
|
Chris@133
|
11 mac* {
|
Chris@133
|
12 INCLUDEPATH += sv-dependency-builds/osx/include
|
Chris@133
|
13 LIBS += -L../vamp-plugin-sdk -Lsv-dependency-builds/osx/lib
|
Chris@133
|
14 }
|
Chris@83
|
15
|
Chris@83
|
16 exists(config.pri) {
|
Chris@83
|
17 include(config.pri)
|
Chris@83
|
18 }
|
Chris@133
|
19
|
Chris@133
|
20 !exists(config.pri) {
|
Chris@133
|
21
|
Chris@133
|
22 CONFIG += release
|
Chris@133
|
23 DEFINES += NDEBUG BUILD_RELEASE NO_TIMING
|
Chris@133
|
24
|
Chris@133
|
25 DEFINES += HAVE_BZ2 HAVE_FFTW3 HAVE_FFTW3F HAVE_SNDFILE HAVE_SAMPLERATE HAVE_VAMP HAVE_VAMPHOSTSDK HAVE_DATAQUAY HAVE_MAD HAVE_ID3TAG
|
Chris@133
|
26
|
Chris@133
|
27 LIBS += -lbz2 -lvamp-hostsdk -lfftw3 -lfftw3f -lsndfile -lFLAC -logg -lvorbis -lvorbisenc -lvorbisfile -logg -lmad -lid3tag -lsamplerate -lz -lsord-0 -lserd-0
|
Chris@133
|
28
|
Chris@133
|
29 win* {
|
Chris@133
|
30 LIBS += -lwinmm -lws2_32
|
Chris@133
|
31 }
|
Chris@133
|
32 macx* {
|
Chris@133
|
33 DEFINES += HAVE_COREAUDIO
|
Chris@133
|
34 LIBS += -framework CoreAudio -framework CoreMidi -framework AudioUnit -framework AudioToolbox -framework CoreFoundation -framework CoreServices -framework Accelerate
|
Chris@83
|
35 }
|
Chris@83
|
36 }
|
Chris@4
|
37
|
Chris@42
|
38 CONFIG += qt thread warn_on stl rtti exceptions console
|
Chris@42
|
39 QT += xml network
|
Chris@74
|
40 QT -= gui widgets
|
Chris@4
|
41
|
Chris@42
|
42 # Using the "console" CONFIG flag above should ensure this happens for
|
Chris@42
|
43 # normal Windows builds, but the console feature doesn't get picked up
|
Chris@42
|
44 # in my local cross-compile setup because qmake itself doesn't know to
|
Chris@42
|
45 # look for win32 features
|
Chris@42
|
46 win32-x-g++:QMAKE_LFLAGS += -Wl,-subsystem,console
|
Chris@4
|
47
|
Chris@42
|
48 # If you have compiled your Vamp plugin SDK with FFTW (using its
|
Chris@42
|
49 # HAVE_FFTW3 flag), you can define the same flag here to ensure the
|
Chris@42
|
50 # program saves and restores FFTW wisdom in its configuration properly
|
Chris@42
|
51 #
|
Chris@42
|
52 #DEFINES += HAVE_FFTW3
|
Chris@42
|
53
|
Chris@42
|
54 TARGET = sonic-annotator
|
Chris@42
|
55
|
Chris@136
|
56 DEPENDPATH += . svcore runner
|
Chris@136
|
57 INCLUDEPATH += . dataquay svcore runner
|
Chris@42
|
58
|
Chris@67
|
59 QMAKE_LIBDIR = svcore $$QMAKE_LIBDIR
|
Chris@42
|
60
|
Chris@42
|
61 QMAKE_CXXFLAGS_RELEASE += -fmessage-length=80 -fdiagnostics-show-location=every-line
|
Chris@42
|
62
|
Chris@42
|
63 OBJECTS_DIR = o
|
Chris@42
|
64 MOC_DIR = o
|
Chris@42
|
65
|
Chris@42
|
66 contains(DEFINES, BUILD_STATIC):LIBS -= -ljack
|
Chris@42
|
67
|
Chris@74
|
68 MY_LIBS = -Lsvcore -Ldataquay -lsvcore -ldataquay
|
Chris@74
|
69
|
Chris@74
|
70 linux* {
|
Chris@74
|
71 MY_LIBS = -Wl,-Bstatic $$MY_LIBS -Wl,-Bdynamic
|
Chris@74
|
72 }
|
Chris@74
|
73
|
chris@85
|
74 win* {
|
chris@85
|
75 MY_LIBS = -Lsvcore/release -Ldataquay/release $$MY_LIBS
|
chris@85
|
76 }
|
chris@85
|
77
|
Chris@74
|
78 LIBS = $$MY_LIBS $$LIBS
|
Chris@42
|
79
|
chris@85
|
80 #PRE_TARGETDEPS += svcore/libsvcore.a
|
Chris@42
|
81
|
Chris@42
|
82 HEADERS += \
|
Chris@42
|
83 runner/AudioDBFeatureWriter.h \
|
Chris@42
|
84 runner/FeatureWriterFactory.h \
|
Chris@42
|
85 runner/DefaultFeatureWriter.h \
|
Chris@107
|
86 runner/FeatureExtractionManager.h \
|
Chris@145
|
87 runner/JAMSFeatureWriter.h \
|
Chris@154
|
88 runner/LabFeatureWriter.h \
|
Chris@136
|
89 runner/MIDIFeatureWriter.h \
|
Chris@107
|
90 runner/MultiplexedReader.h
|
Chris@42
|
91
|
Chris@42
|
92 SOURCES += \
|
Chris@42
|
93 runner/main.cpp \
|
Chris@42
|
94 runner/DefaultFeatureWriter.cpp \
|
Chris@42
|
95 runner/FeatureExtractionManager.cpp \
|
Chris@42
|
96 runner/AudioDBFeatureWriter.cpp \
|
Chris@107
|
97 runner/FeatureWriterFactory.cpp \
|
Chris@145
|
98 runner/JAMSFeatureWriter.cpp \
|
Chris@154
|
99 runner/LabFeatureWriter.cpp \
|
Chris@136
|
100 runner/MIDIFeatureWriter.cpp \
|
Chris@107
|
101 runner/MultiplexedReader.cpp
|
Chris@42
|
102
|
Chris@74
|
103 !win32 {
|
Chris@74
|
104 QMAKE_POST_LINK=/bin/bash tests/test.sh
|
Chris@74
|
105 }
|
Chris@74
|
106
|