annotate runner/runner.pro @ 35:c1b3af62bc2a

* Avoid failing on second and subsequent input files in single-output-file mode (because first input file caused output file to be open, so second input file failed because output "already existed")
author Chris Cannam
date Mon, 24 May 2010 16:03:41 +0000
parents 8b20521fc40f
children
rev   line source
Chris@0 1
Chris@0 2 TEMPLATE = app
Chris@0 3
Chris@0 4 SV_UNIT_PACKAGES = vamp vamp-hostsdk samplerate mad id3tag oggz fishsound sndfile lrdf redland rasqal raptor
Chris@0 5
Chris@0 6 #linux-g++:LIBS += -Wl,-Bstatic
Chris@0 7 #linux-g++:DEFINES += BUILD_STATIC
Chris@0 8
Chris@18 9 load(../prf/sv.prf)
Chris@0 10
Chris@0 11 CONFIG += sv qt thread warn_on stl rtti exceptions console
Chris@0 12 QT += xml network
Chris@0 13 QT -= gui
Chris@0 14
Chris@0 15 # Using the "console" CONFIG flag above should ensure this happens for
Chris@0 16 # normal Windows builds, but the console feature doesn't get picked up
Chris@0 17 # in my local cross-compile setup because qmake itself doesn't know to
Chris@0 18 # look for win32 features
Chris@0 19 win32-x-g++:QMAKE_LFLAGS += -Wl,-subsystem,console
Chris@0 20
Chris@0 21 # If you have compiled your Vamp plugin SDK with FFTW (using its
Chris@0 22 # HAVE_FFTW3 flag), you can define the same flag here to ensure the
Chris@0 23 # program saves and restores FFTW wisdom in its configuration properly
Chris@0 24 #
Chris@0 25 #DEFINES += HAVE_FFTW3
Chris@0 26
Chris@0 27 TARGET = sonic-annotator
Chris@0 28
Chris@2 29 DEPENDPATH += . .. i18n main
Chris@2 30 INCLUDEPATH += . .. main
Chris@31 31 LIBPATH = ../data ../plugin ../rdf ../transform ../base ../system $$LIBPATH
Chris@0 32
Chris@0 33 QMAKE_CXXFLAGS_RELEASE += -fmessage-length=80 -fdiagnostics-show-location=every-line
Chris@0 34
Chris@0 35 contains(DEFINES, BUILD_STATIC):LIBS -= -ljack
Chris@0 36
Chris@0 37 LIBS = -lsvdata -lsvtransform -lsvplugin -lsvrdf -lsvdata -lsvbase -lsvsystem $$LIBS
Chris@0 38
Chris@31 39 PRE_TARGETDEPS += ../data/libsvdata.a \
Chris@2 40 ../transform/libsvtransform.a \
Chris@2 41 ../plugin/libsvplugin.a \
Chris@2 42 ../rdf/libsvrdf.a \
Chris@2 43 ../base/libsvbase.a \
Chris@2 44 ../system/libsvsystem.a
Chris@0 45
Chris@0 46 OBJECTS_DIR = tmp_obj
Chris@0 47 MOC_DIR = tmp_moc
Chris@0 48
Chris@0 49 # Input
Chris@0 50 HEADERS += \
Chris@0 51 AudioDBFeatureWriter.h \
Chris@0 52 FeatureWriterFactory.h \
Chris@0 53 DefaultFeatureWriter.h \
Chris@0 54 FeatureExtractionManager.h
Chris@0 55
Chris@0 56 SOURCES += \
Chris@0 57 main.cpp \
Chris@0 58 DefaultFeatureWriter.cpp \
Chris@0 59 FeatureExtractionManager.cpp \
Chris@0 60 AudioDBFeatureWriter.cpp \
Chris@0 61 FeatureWriterFactory.cpp
Chris@0 62
Chris@0 63
Chris@0 64
Chris@0 65
Chris@0 66 # Restore dynamic linkage, in case we went static earlier
Chris@0 67 linux-g++:LIBS += -Wl,-Bdynamic -lpthread -ldl -lz