annotate runner.pro @ 249:85ab36c3b7d8 sonic-annotator-1.4

Win32 build fix
author Chris Cannam
date Fri, 18 Mar 2016 15:30:43 +0000
parents c8e5fcddf8be
children 382f33b7f00e
rev   line source
Chris@42 1 TEMPLATE = app
Chris@4 2
Chris@242 3 INCLUDEPATH += vamp-plugin-sdk
Chris@242 4
Chris@83 5 win32-g++ {
Chris@83 6 INCLUDEPATH += sv-dependency-builds/win32-mingw/include
Chris@83 7 LIBS += -Lsv-dependency-builds/win32-mingw/lib
Chris@83 8 }
Chris@83 9 win32-msvc* {
Chris@83 10 INCLUDEPATH += sv-dependency-builds/win32-msvc/include
Chris@83 11 LIBS += -Lsv-dependency-builds/win32-msvc/lib
Chris@83 12 }
Chris@133 13 mac* {
Chris@133 14 INCLUDEPATH += sv-dependency-builds/osx/include
Chris@178 15 LIBS += -Lsv-dependency-builds/osx/lib
Chris@133 16 }
Chris@83 17
Chris@83 18 exists(config.pri) {
Chris@83 19 include(config.pri)
Chris@83 20 }
Chris@133 21
Chris@133 22 !exists(config.pri) {
Chris@133 23
Chris@133 24 CONFIG += release
Chris@133 25 DEFINES += NDEBUG BUILD_RELEASE NO_TIMING
Chris@133 26
Chris@242 27 DEFINES += HAVE_BZ2 HAVE_FFTW3 HAVE_FFTW3F HAVE_SNDFILE HAVE_SAMPLERATE HAVE_DATAQUAY HAVE_MAD HAVE_ID3TAG
Chris@133 28
Chris@178 29 LIBS += -lbz2 -lfftw3 -lfftw3f -lsndfile -lFLAC -logg -lvorbis -lvorbisenc -lvorbisfile -logg -lmad -lid3tag -lsamplerate -lz -lsord-0 -lserd-0
Chris@133 30
Chris@133 31 win* {
Chris@247 32 DEFINES += _USE_MATH_DEFINES
Chris@133 33 LIBS += -lwinmm -lws2_32
Chris@133 34 }
Chris@133 35 macx* {
Chris@133 36 DEFINES += HAVE_COREAUDIO
Chris@133 37 LIBS += -framework CoreAudio -framework CoreMidi -framework AudioUnit -framework AudioToolbox -framework CoreFoundation -framework CoreServices -framework Accelerate
Chris@83 38 }
Chris@178 39 linux* {
Chris@178 40 LIBS += -ldl
Chris@178 41 }
Chris@83 42 }
Chris@4 43
Chris@195 44 CONFIG += qt thread warn_on stl rtti exceptions console c++11
Chris@42 45 QT += xml network
Chris@74 46 QT -= gui widgets
Chris@4 47
Chris@42 48 # Using the "console" CONFIG flag above should ensure this happens for
Chris@42 49 # normal Windows builds, but the console feature doesn't get picked up
Chris@42 50 # in my local cross-compile setup because qmake itself doesn't know to
Chris@42 51 # look for win32 features
Chris@42 52 win32-x-g++:QMAKE_LFLAGS += -Wl,-subsystem,console
Chris@4 53
Chris@242 54 DEFINES += HAVE_FFTW3 HAVE_VAMP HAVE_VAMPHOSTSDK
Chris@42 55
Chris@42 56 TARGET = sonic-annotator
Chris@42 57
Chris@136 58 DEPENDPATH += . svcore runner
Chris@136 59 INCLUDEPATH += . dataquay svcore runner
Chris@42 60
Chris@67 61 QMAKE_LIBDIR = svcore $$QMAKE_LIBDIR
Chris@42 62
Chris@42 63 QMAKE_CXXFLAGS_RELEASE += -fmessage-length=80 -fdiagnostics-show-location=every-line
Chris@42 64
Chris@42 65 OBJECTS_DIR = o
Chris@42 66 MOC_DIR = o
Chris@42 67
Chris@42 68 contains(DEFINES, BUILD_STATIC):LIBS -= -ljack
Chris@42 69
Chris@74 70 MY_LIBS = -Lsvcore -Ldataquay -lsvcore -ldataquay
Chris@74 71
Chris@74 72 linux* {
Chris@74 73 MY_LIBS = -Wl,-Bstatic $$MY_LIBS -Wl,-Bdynamic
Chris@74 74 }
Chris@74 75
chris@85 76 win* {
chris@85 77 MY_LIBS = -Lsvcore/release -Ldataquay/release $$MY_LIBS
chris@85 78 }
chris@85 79
Chris@74 80 LIBS = $$MY_LIBS $$LIBS
Chris@42 81
Chris@249 82 win* {
Chris@249 83 PRE_TARGETDEPS += svcore/release/libsvcore.a
Chris@249 84 }
Chris@249 85
Chris@249 86 !win* {
Chris@227 87 PRE_TARGETDEPS += svcore/libsvcore.a
Chris@249 88 }
Chris@42 89
Chris@42 90 HEADERS += \
Chris@178 91 vamp-plugin-sdk/vamp-hostsdk/PluginBase.h \
Chris@178 92 vamp-plugin-sdk/vamp-hostsdk/PluginBufferingAdapter.h \
Chris@178 93 vamp-plugin-sdk/vamp-hostsdk/PluginChannelAdapter.h \
Chris@178 94 vamp-plugin-sdk/vamp-hostsdk/Plugin.h \
Chris@178 95 vamp-plugin-sdk/vamp-hostsdk/PluginHostAdapter.h \
Chris@178 96 vamp-plugin-sdk/vamp-hostsdk/PluginInputDomainAdapter.h \
Chris@178 97 vamp-plugin-sdk/vamp-hostsdk/PluginLoader.h \
Chris@178 98 vamp-plugin-sdk/vamp-hostsdk/PluginSummarisingAdapter.h \
Chris@178 99 vamp-plugin-sdk/vamp-hostsdk/PluginWrapper.h \
Chris@178 100 vamp-plugin-sdk/vamp-hostsdk/RealTime.h \
Chris@178 101 vamp-plugin-sdk/src/vamp-hostsdk/Window.h \
Chris@42 102 runner/AudioDBFeatureWriter.h \
Chris@42 103 runner/FeatureWriterFactory.h \
Chris@42 104 runner/DefaultFeatureWriter.h \
Chris@107 105 runner/FeatureExtractionManager.h \
Chris@145 106 runner/JAMSFeatureWriter.h \
Chris@154 107 runner/LabFeatureWriter.h \
Chris@136 108 runner/MIDIFeatureWriter.h \
Chris@107 109 runner/MultiplexedReader.h
Chris@42 110
Chris@42 111 SOURCES += \
Chris@178 112 vamp-plugin-sdk/src/vamp-hostsdk/PluginBufferingAdapter.cpp \
Chris@178 113 vamp-plugin-sdk/src/vamp-hostsdk/PluginChannelAdapter.cpp \
Chris@178 114 vamp-plugin-sdk/src/vamp-hostsdk/PluginHostAdapter.cpp \
Chris@178 115 vamp-plugin-sdk/src/vamp-hostsdk/PluginInputDomainAdapter.cpp \
Chris@178 116 vamp-plugin-sdk/src/vamp-hostsdk/PluginLoader.cpp \
Chris@178 117 vamp-plugin-sdk/src/vamp-hostsdk/PluginSummarisingAdapter.cpp \
Chris@178 118 vamp-plugin-sdk/src/vamp-hostsdk/PluginWrapper.cpp \
Chris@178 119 vamp-plugin-sdk/src/vamp-hostsdk/RealTime.cpp \
Chris@238 120 vamp-plugin-sdk/src/vamp-hostsdk/Files.cpp \
Chris@42 121 runner/main.cpp \
Chris@42 122 runner/DefaultFeatureWriter.cpp \
Chris@42 123 runner/FeatureExtractionManager.cpp \
Chris@42 124 runner/AudioDBFeatureWriter.cpp \
Chris@107 125 runner/FeatureWriterFactory.cpp \
Chris@145 126 runner/JAMSFeatureWriter.cpp \
Chris@154 127 runner/LabFeatureWriter.cpp \
Chris@136 128 runner/MIDIFeatureWriter.cpp \
Chris@107 129 runner/MultiplexedReader.cpp
Chris@42 130
Chris@74 131 !win32 {
Chris@74 132 QMAKE_POST_LINK=/bin/bash tests/test.sh
Chris@74 133 }
Chris@74 134