Chris@42
|
1 TEMPLATE = app
|
Chris@4
|
2
|
Chris@42
|
3 include(config.pri)
|
Chris@4
|
4
|
Chris@42
|
5 CONFIG += qt thread warn_on stl rtti exceptions console
|
Chris@42
|
6 QT += xml network
|
Chris@74
|
7 QT -= gui widgets
|
Chris@4
|
8
|
Chris@42
|
9 # Using the "console" CONFIG flag above should ensure this happens for
|
Chris@42
|
10 # normal Windows builds, but the console feature doesn't get picked up
|
Chris@42
|
11 # in my local cross-compile setup because qmake itself doesn't know to
|
Chris@42
|
12 # look for win32 features
|
Chris@42
|
13 win32-x-g++:QMAKE_LFLAGS += -Wl,-subsystem,console
|
Chris@4
|
14
|
Chris@42
|
15 # If you have compiled your Vamp plugin SDK with FFTW (using its
|
Chris@42
|
16 # HAVE_FFTW3 flag), you can define the same flag here to ensure the
|
Chris@42
|
17 # program saves and restores FFTW wisdom in its configuration properly
|
Chris@42
|
18 #
|
Chris@42
|
19 #DEFINES += HAVE_FFTW3
|
Chris@42
|
20
|
Chris@42
|
21 TARGET = sonic-annotator
|
Chris@42
|
22
|
Chris@67
|
23 DEPENDPATH += . svcore
|
Chris@67
|
24 INCLUDEPATH += . svcore
|
Chris@42
|
25
|
Chris@67
|
26 QMAKE_LIBDIR = svcore $$QMAKE_LIBDIR
|
Chris@42
|
27
|
Chris@42
|
28 QMAKE_CXXFLAGS_RELEASE += -fmessage-length=80 -fdiagnostics-show-location=every-line
|
Chris@42
|
29
|
Chris@42
|
30 OBJECTS_DIR = o
|
Chris@42
|
31 MOC_DIR = o
|
Chris@42
|
32
|
Chris@42
|
33 contains(DEFINES, BUILD_STATIC):LIBS -= -ljack
|
Chris@42
|
34
|
Chris@74
|
35 MY_LIBS = -Lsvcore -Ldataquay -lsvcore -ldataquay
|
Chris@74
|
36
|
Chris@74
|
37 linux* {
|
Chris@74
|
38 MY_LIBS = -Wl,-Bstatic $$MY_LIBS -Wl,-Bdynamic
|
Chris@74
|
39 }
|
Chris@74
|
40
|
Chris@74
|
41 LIBS = $$MY_LIBS $$LIBS
|
Chris@42
|
42
|
Chris@67
|
43 PRE_TARGETDEPS += svcore/libsvcore.a
|
Chris@42
|
44
|
Chris@42
|
45 HEADERS += \
|
Chris@42
|
46 runner/AudioDBFeatureWriter.h \
|
Chris@42
|
47 runner/FeatureWriterFactory.h \
|
Chris@42
|
48 runner/DefaultFeatureWriter.h \
|
Chris@42
|
49 runner/FeatureExtractionManager.h
|
Chris@42
|
50
|
Chris@42
|
51 SOURCES += \
|
Chris@42
|
52 runner/main.cpp \
|
Chris@42
|
53 runner/DefaultFeatureWriter.cpp \
|
Chris@42
|
54 runner/FeatureExtractionManager.cpp \
|
Chris@42
|
55 runner/AudioDBFeatureWriter.cpp \
|
Chris@42
|
56 runner/FeatureWriterFactory.cpp
|
Chris@42
|
57
|
Chris@74
|
58 !win32 {
|
Chris@74
|
59 QMAKE_POST_LINK=/bin/bash tests/test.sh
|
Chris@74
|
60 }
|
Chris@74
|
61
|