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@2
|
9 load(../sv.prf)
|
Chris@0
|
10
|
Chris@0
|
11 LIBPATH += /usr/local/lib
|
Chris@0
|
12
|
Chris@0
|
13 CONFIG += sv qt thread warn_on stl rtti exceptions console
|
Chris@0
|
14 QT += xml network
|
Chris@0
|
15 QT -= gui
|
Chris@0
|
16
|
Chris@0
|
17 # Using the "console" CONFIG flag above should ensure this happens for
|
Chris@0
|
18 # normal Windows builds, but the console feature doesn't get picked up
|
Chris@0
|
19 # in my local cross-compile setup because qmake itself doesn't know to
|
Chris@0
|
20 # look for win32 features
|
Chris@0
|
21 win32-x-g++:QMAKE_LFLAGS += -Wl,-subsystem,console
|
Chris@0
|
22
|
Chris@0
|
23 # If you have compiled your Vamp plugin SDK with FFTW (using its
|
Chris@0
|
24 # HAVE_FFTW3 flag), you can define the same flag here to ensure the
|
Chris@0
|
25 # program saves and restores FFTW wisdom in its configuration properly
|
Chris@0
|
26 #
|
Chris@0
|
27 #DEFINES += HAVE_FFTW3
|
Chris@0
|
28
|
Chris@0
|
29 TARGET = sonic-annotator
|
Chris@0
|
30
|
Chris@2
|
31 DEPENDPATH += . .. i18n main
|
Chris@2
|
32 INCLUDEPATH += . .. main
|
Chris@2
|
33 LIBPATH = ../audioio ../data ../plugin ../rdf ../transform ../base ../system $$LIBPATH
|
Chris@0
|
34
|
Chris@0
|
35 QMAKE_CXXFLAGS_RELEASE += -fmessage-length=80 -fdiagnostics-show-location=every-line
|
Chris@0
|
36
|
Chris@0
|
37 contains(DEFINES, BUILD_STATIC):LIBS -= -ljack
|
Chris@0
|
38
|
Chris@0
|
39 #LIBS = -lsvaudioio -lsvdata -lsvtransform -lsvplugin -lsvrdf -lsvbase -lsvsystem $$LIBS
|
Chris@0
|
40 LIBS = -lsvdata -lsvtransform -lsvplugin -lsvrdf -lsvdata -lsvbase -lsvsystem $$LIBS
|
Chris@0
|
41
|
Chris@2
|
42 PRE_TARGETDEPS += ../audioio/libsvaudioio.a \
|
Chris@2
|
43 ../data/libsvdata.a \
|
Chris@2
|
44 ../transform/libsvtransform.a \
|
Chris@2
|
45 ../plugin/libsvplugin.a \
|
Chris@2
|
46 ../rdf/libsvrdf.a \
|
Chris@2
|
47 ../base/libsvbase.a \
|
Chris@2
|
48 ../system/libsvsystem.a
|
Chris@0
|
49
|
Chris@0
|
50 OBJECTS_DIR = tmp_obj
|
Chris@0
|
51 MOC_DIR = tmp_moc
|
Chris@0
|
52
|
Chris@0
|
53 # Input
|
Chris@0
|
54 HEADERS += \
|
Chris@0
|
55 AudioDBFeatureWriter.h \
|
Chris@0
|
56 FeatureWriterFactory.h \
|
Chris@0
|
57 DefaultFeatureWriter.h \
|
Chris@0
|
58 FeatureExtractionManager.h
|
Chris@0
|
59
|
Chris@0
|
60 SOURCES += \
|
Chris@0
|
61 main.cpp \
|
Chris@0
|
62 DefaultFeatureWriter.cpp \
|
Chris@0
|
63 FeatureExtractionManager.cpp \
|
Chris@0
|
64 AudioDBFeatureWriter.cpp \
|
Chris@0
|
65 FeatureWriterFactory.cpp
|
Chris@0
|
66
|
Chris@0
|
67
|
Chris@0
|
68
|
Chris@0
|
69
|
Chris@0
|
70 # Restore dynamic linkage, in case we went static earlier
|
Chris@0
|
71 linux-g++:LIBS += -Wl,-Bdynamic -lpthread -ldl -lz
|