annotate runner/runner.pro @ 21:9a4e410bda7a

* Add --force option, and throw/catch exceptions for failure cases rather than exiting directly
author Chris Cannam
date Tue, 07 Jul 2009 10:34:27 +0000
parents 4eab258f3505
children 8b20521fc40f
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@2 31 LIBPATH = ../audioio ../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 = -lsvaudioio -lsvdata -lsvtransform -lsvplugin -lsvrdf -lsvbase -lsvsystem $$LIBS
Chris@0 38 LIBS = -lsvdata -lsvtransform -lsvplugin -lsvrdf -lsvdata -lsvbase -lsvsystem $$LIBS
Chris@0 39
Chris@2 40 PRE_TARGETDEPS += ../audioio/libsvaudioio.a \
Chris@2 41 ../data/libsvdata.a \
Chris@2 42 ../transform/libsvtransform.a \
Chris@2 43 ../plugin/libsvplugin.a \
Chris@2 44 ../rdf/libsvrdf.a \
Chris@2 45 ../base/libsvbase.a \
Chris@2 46 ../system/libsvsystem.a
Chris@0 47
Chris@0 48 OBJECTS_DIR = tmp_obj
Chris@0 49 MOC_DIR = tmp_moc
Chris@0 50
Chris@0 51 # Input
Chris@0 52 HEADERS += \
Chris@0 53 AudioDBFeatureWriter.h \
Chris@0 54 FeatureWriterFactory.h \
Chris@0 55 DefaultFeatureWriter.h \
Chris@0 56 FeatureExtractionManager.h
Chris@0 57
Chris@0 58 SOURCES += \
Chris@0 59 main.cpp \
Chris@0 60 DefaultFeatureWriter.cpp \
Chris@0 61 FeatureExtractionManager.cpp \
Chris@0 62 AudioDBFeatureWriter.cpp \
Chris@0 63 FeatureWriterFactory.cpp
Chris@0 64
Chris@0 65
Chris@0 66
Chris@0 67
Chris@0 68 # Restore dynamic linkage, in case we went static earlier
Chris@0 69 linux-g++:LIBS += -Wl,-Bdynamic -lpthread -ldl -lz