Chris@42: TEMPLATE = app Chris@4: Chris@83: win32-g++ { Chris@83: INCLUDEPATH += sv-dependency-builds/win32-mingw/include Chris@83: LIBS += -Lsv-dependency-builds/win32-mingw/lib Chris@83: } Chris@83: win32-msvc* { Chris@83: INCLUDEPATH += sv-dependency-builds/win32-msvc/include Chris@83: LIBS += -Lsv-dependency-builds/win32-msvc/lib Chris@83: } Chris@133: mac* { Chris@133: INCLUDEPATH += sv-dependency-builds/osx/include Chris@133: LIBS += -L../vamp-plugin-sdk -Lsv-dependency-builds/osx/lib Chris@133: } Chris@83: Chris@83: exists(config.pri) { Chris@83: include(config.pri) Chris@83: } Chris@133: Chris@133: !exists(config.pri) { Chris@133: Chris@133: CONFIG += release Chris@133: DEFINES += NDEBUG BUILD_RELEASE NO_TIMING Chris@133: Chris@133: DEFINES += HAVE_BZ2 HAVE_FFTW3 HAVE_FFTW3F HAVE_SNDFILE HAVE_SAMPLERATE HAVE_VAMP HAVE_VAMPHOSTSDK HAVE_DATAQUAY HAVE_MAD HAVE_ID3TAG Chris@133: Chris@133: LIBS += -lbz2 -lvamp-hostsdk -lfftw3 -lfftw3f -lsndfile -lFLAC -logg -lvorbis -lvorbisenc -lvorbisfile -logg -lmad -lid3tag -lsamplerate -lz -lsord-0 -lserd-0 Chris@133: Chris@133: win* { Chris@133: LIBS += -lwinmm -lws2_32 Chris@133: } Chris@133: macx* { Chris@133: DEFINES += HAVE_COREAUDIO Chris@133: LIBS += -framework CoreAudio -framework CoreMidi -framework AudioUnit -framework AudioToolbox -framework CoreFoundation -framework CoreServices -framework Accelerate Chris@83: } Chris@83: } Chris@4: Chris@42: CONFIG += qt thread warn_on stl rtti exceptions console Chris@42: QT += xml network Chris@74: QT -= gui widgets Chris@4: Chris@42: # Using the "console" CONFIG flag above should ensure this happens for Chris@42: # normal Windows builds, but the console feature doesn't get picked up Chris@42: # in my local cross-compile setup because qmake itself doesn't know to Chris@42: # look for win32 features Chris@42: win32-x-g++:QMAKE_LFLAGS += -Wl,-subsystem,console Chris@4: Chris@42: # If you have compiled your Vamp plugin SDK with FFTW (using its Chris@42: # HAVE_FFTW3 flag), you can define the same flag here to ensure the Chris@42: # program saves and restores FFTW wisdom in its configuration properly Chris@42: # Chris@42: #DEFINES += HAVE_FFTW3 Chris@42: Chris@42: TARGET = sonic-annotator Chris@42: Chris@136: DEPENDPATH += . svcore runner Chris@136: INCLUDEPATH += . dataquay svcore runner Chris@42: Chris@67: QMAKE_LIBDIR = svcore $$QMAKE_LIBDIR Chris@42: Chris@42: QMAKE_CXXFLAGS_RELEASE += -fmessage-length=80 -fdiagnostics-show-location=every-line Chris@42: Chris@42: OBJECTS_DIR = o Chris@42: MOC_DIR = o Chris@42: Chris@42: contains(DEFINES, BUILD_STATIC):LIBS -= -ljack Chris@42: Chris@74: MY_LIBS = -Lsvcore -Ldataquay -lsvcore -ldataquay Chris@74: Chris@74: linux* { Chris@74: MY_LIBS = -Wl,-Bstatic $$MY_LIBS -Wl,-Bdynamic Chris@74: } Chris@74: chris@85: win* { chris@85: MY_LIBS = -Lsvcore/release -Ldataquay/release $$MY_LIBS chris@85: } chris@85: Chris@74: LIBS = $$MY_LIBS $$LIBS Chris@42: chris@85: #PRE_TARGETDEPS += svcore/libsvcore.a Chris@42: Chris@42: HEADERS += \ Chris@42: runner/AudioDBFeatureWriter.h \ Chris@42: runner/FeatureWriterFactory.h \ Chris@42: runner/DefaultFeatureWriter.h \ Chris@107: runner/FeatureExtractionManager.h \ Chris@145: runner/JAMSFeatureWriter.h \ Chris@154: runner/LabFeatureWriter.h \ Chris@136: runner/MIDIFeatureWriter.h \ Chris@107: runner/MultiplexedReader.h Chris@42: Chris@42: SOURCES += \ Chris@42: runner/main.cpp \ Chris@42: runner/DefaultFeatureWriter.cpp \ Chris@42: runner/FeatureExtractionManager.cpp \ Chris@42: runner/AudioDBFeatureWriter.cpp \ Chris@107: runner/FeatureWriterFactory.cpp \ Chris@145: runner/JAMSFeatureWriter.cpp \ Chris@154: runner/LabFeatureWriter.cpp \ Chris@136: runner/MIDIFeatureWriter.cpp \ Chris@107: runner/MultiplexedReader.cpp Chris@42: Chris@74: !win32 { Chris@74: QMAKE_POST_LINK=/bin/bash tests/test.sh Chris@74: } Chris@74: