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@83: Chris@83: exists(config.pri) { Chris@83: include(config.pri) Chris@83: } Chris@83: win* { Chris@83: !exists(config.pri) { Chris@83: DEFINES += HAVE_BZ2 HAVE_FFTW3 HAVE_FFTW3F HAVE_SNDFILE HAVE_SAMPLERATE HAVE_VAMP HAVE_VAMPHOSTSDK HAVE_DATAQUAY HAVE_MAD HAVE_ID3TAG Chris@83: 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: } 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@67: DEPENDPATH += . svcore Chris@79: INCLUDEPATH += . dataquay svcore 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@86: win* { Chris@86: MY_LIBS = -Lsvcore/release -Ldataquay/release $$MY_LIBS Chris@86: } Chris@86: Chris@74: LIBS = $$MY_LIBS $$LIBS Chris@42: Chris@86: #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@42: runner/FeatureExtractionManager.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@42: runner/FeatureWriterFactory.cpp Chris@42: Chris@74: !win32 { Chris@74: QMAKE_POST_LINK=/bin/bash tests/test.sh Chris@74: } Chris@74: