annotate runner.pro @ 114:34a0dad473c3 multiplex

Average channels of file contributing to each input, don't sum
author Chris Cannam
date Fri, 03 Oct 2014 09:30:18 +0100
parents 7b60603966cf
children d012c0dafa36
rev   line source
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@83 11
Chris@83 12 exists(config.pri) {
Chris@83 13 include(config.pri)
Chris@83 14 }
Chris@83 15 win* {
Chris@83 16 !exists(config.pri) {
Chris@83 17 DEFINES += HAVE_BZ2 HAVE_FFTW3 HAVE_FFTW3F HAVE_SNDFILE HAVE_SAMPLERATE HAVE_VAMP HAVE_VAMPHOSTSDK HAVE_DATAQUAY HAVE_MAD HAVE_ID3TAG
Chris@83 18 LIBS += -lbz2 -lvamp-hostsdk -lfftw3 -lfftw3f -lsndfile -lFLAC -logg -lvorbis -lvorbisenc -lvorbisfile -logg -lmad -lid3tag -lsamplerate -lz -lsord-0 -lserd-0 -lwinmm -lws2_32
Chris@83 19 }
Chris@83 20 }
Chris@4 21
Chris@42 22 CONFIG += qt thread warn_on stl rtti exceptions console
Chris@42 23 QT += xml network
Chris@74 24 QT -= gui widgets
Chris@4 25
Chris@42 26 # Using the "console" CONFIG flag above should ensure this happens for
Chris@42 27 # normal Windows builds, but the console feature doesn't get picked up
Chris@42 28 # in my local cross-compile setup because qmake itself doesn't know to
Chris@42 29 # look for win32 features
Chris@42 30 win32-x-g++:QMAKE_LFLAGS += -Wl,-subsystem,console
Chris@4 31
Chris@42 32 # If you have compiled your Vamp plugin SDK with FFTW (using its
Chris@42 33 # HAVE_FFTW3 flag), you can define the same flag here to ensure the
Chris@42 34 # program saves and restores FFTW wisdom in its configuration properly
Chris@42 35 #
Chris@42 36 #DEFINES += HAVE_FFTW3
Chris@42 37
Chris@42 38 TARGET = sonic-annotator
Chris@42 39
Chris@67 40 DEPENDPATH += . svcore
Chris@79 41 INCLUDEPATH += . dataquay svcore
Chris@42 42
Chris@67 43 QMAKE_LIBDIR = svcore $$QMAKE_LIBDIR
Chris@42 44
Chris@42 45 QMAKE_CXXFLAGS_RELEASE += -fmessage-length=80 -fdiagnostics-show-location=every-line
Chris@42 46
Chris@42 47 OBJECTS_DIR = o
Chris@42 48 MOC_DIR = o
Chris@42 49
Chris@42 50 contains(DEFINES, BUILD_STATIC):LIBS -= -ljack
Chris@42 51
Chris@74 52 MY_LIBS = -Lsvcore -Ldataquay -lsvcore -ldataquay
Chris@74 53
Chris@74 54 linux* {
Chris@74 55 MY_LIBS = -Wl,-Bstatic $$MY_LIBS -Wl,-Bdynamic
Chris@74 56 }
Chris@74 57
Chris@86 58 win* {
Chris@86 59 MY_LIBS = -Lsvcore/release -Ldataquay/release $$MY_LIBS
Chris@86 60 }
Chris@86 61
Chris@74 62 LIBS = $$MY_LIBS $$LIBS
Chris@42 63
Chris@86 64 #PRE_TARGETDEPS += svcore/libsvcore.a
Chris@42 65
Chris@42 66 HEADERS += \
Chris@42 67 runner/AudioDBFeatureWriter.h \
Chris@42 68 runner/FeatureWriterFactory.h \
Chris@42 69 runner/DefaultFeatureWriter.h \
Chris@107 70 runner/FeatureExtractionManager.h \
Chris@107 71 runner/MultiplexedReader.h
Chris@42 72
Chris@42 73 SOURCES += \
Chris@42 74 runner/main.cpp \
Chris@42 75 runner/DefaultFeatureWriter.cpp \
Chris@42 76 runner/FeatureExtractionManager.cpp \
Chris@42 77 runner/AudioDBFeatureWriter.cpp \
Chris@107 78 runner/FeatureWriterFactory.cpp \
Chris@107 79 runner/MultiplexedReader.cpp
Chris@42 80
Chris@74 81 !win32 {
Chris@74 82 QMAKE_POST_LINK=/bin/bash tests/test.sh
Chris@74 83 }
Chris@74 84