annotate sv.pro @ 1272:cbb241e91426 piper

Use .cpp file instead
author Chris Cannam
date Thu, 20 Oct 2016 18:35:09 +0100
parents ba71dbc5ee8b
children c6513cae4747
rev   line source
Chris@451 1
Chris@451 2 TEMPLATE = app
Chris@451 3
Chris@1142 4 INCLUDEPATH += vamp-plugin-sdk
Chris@1142 5
Chris@639 6 win32-g++ {
Chris@639 7 INCLUDEPATH += sv-dependency-builds/win32-mingw/include
Chris@1059 8 LIBS += -Lrelease -Lsv-dependency-builds/win32-mingw/lib
Chris@639 9 }
Chris@639 10 win32-msvc* {
Chris@1264 11 # We actually expect MSVC to be used only for 64-bit builds,
Chris@1264 12 # though the qmake spec is still called win32-msvc*
Chris@1264 13 INCLUDEPATH += sv-dependency-builds/win64-msvc/include
Chris@1266 14 # bah, this is happening even if not debug build
Chris@1266 15 # CONFIG(debug) {
Chris@1266 16 # LIBS += -NODEFAULTLIB:MSVCRT -Ldebug \
Chris@1266 17 # -L../sonic-visualiser/sv-dependency-builds/win64-msvc/lib/debug \
Chris@1266 18 # -L../sonic-visualiser/sv-dependency-builds/win64-msvc/lib
Chris@1266 19 # }
Chris@1266 20 CONFIG(release) {
Chris@1266 21 LIBS += -Lrelease \
Chris@1266 22 -L../sonic-visualiser/sv-dependency-builds/win64-msvc/lib
Chris@1266 23 }
Chris@639 24 }
Chris@742 25 mac* {
Chris@742 26 INCLUDEPATH += sv-dependency-builds/osx/include
Chris@742 27 LIBS += -Lsv-dependency-builds/osx/lib
Chris@742 28 }
Chris@639 29
Chris@639 30 exists(config.pri) {
Chris@639 31 include(config.pri)
Chris@639 32 }
Chris@639 33
Chris@742 34 !exists(config.pri) {
Chris@742 35
Chris@742 36 CONFIG += release
Chris@1266 37 DEFINES += NDEBUG BUILD_RELEASE
Chris@1266 38 DEFINES += NO_TIMING
Chris@742 39
Chris@1035 40 DEFINES += HAVE_BZ2 HAVE_FFTW3 HAVE_FFTW3F HAVE_SNDFILE HAVE_SAMPLERATE HAVE_VAMP HAVE_VAMPHOSTSDK HAVE_RUBBERBAND HAVE_DATAQUAY HAVE_LIBLO HAVE_MAD HAVE_ID3TAG HAVE_PORTAUDIO
Chris@742 41
Chris@1152 42 LIBS += -lbz2 -lrubberband -lfftw3 -lfftw3f -lsndfile -lFLAC -logg -lvorbis -lvorbisenc -lvorbisfile -logg -lmad -lid3tag -lportaudio -lsamplerate -lz -lsord-0 -lserd-0 -llo
Chris@742 43
Chris@742 44 win* {
Chris@1264 45 DEFINES += NOMINMAX _USE_MATH_DEFINES
Chris@1264 46 DEFINES -= HAVE_LIBLO
Chris@743 47 LIBS += -lwinmm -lws2_32
Chris@742 48 }
Chris@1264 49 win32-msvc* {
Chris@1264 50 LIBS -= -lFLAC -logg -lvorbis -lvorbisenc -lvorbisfile -lsord-0 -lserd-0 -llo
Chris@1264 51 LIBS += -lsord -lserd -ladvapi32
Chris@1264 52 }
Chris@742 53 macx* {
Chris@742 54 DEFINES += HAVE_COREAUDIO
Chris@742 55 LIBS += -framework CoreAudio -framework CoreMidi -framework AudioUnit -framework AudioToolbox -framework CoreFoundation -framework CoreServices -framework Accelerate
Chris@639 56 }
Chris@639 57 }
Chris@451 58
Chris@1255 59 LIBS += -lcapnp -lkj ##!!!
Chris@1255 60
Chris@929 61 CONFIG += qt thread warn_on stl rtti exceptions c++11
Chris@951 62 QT += network xml gui widgets svg
Chris@451 63
Chris@451 64 TARGET = "Sonic Visualiser"
Chris@451 65 linux*:TARGET = sonic-visualiser
Chris@451 66 solaris*:TARGET = sonic-visualiser
Chris@451 67
Chris@1255 68 DEPENDPATH += . bqaudioio piper-cpp svcore svgui svapp
Chris@1255 69 INCLUDEPATH += . bqaudioio piper-cpp svcore svgui svapp
Chris@451 70
Chris@451 71 TRANSLATIONS += i18n/sonic-visualiser_ru.ts i18n/sonic-visualiser_en_GB.ts i18n/sonic-visualiser_en_US.ts i18n/sonic-visualiser_cs_CZ.ts
Chris@451 72
Chris@451 73 OBJECTS_DIR = o
Chris@451 74 MOC_DIR = o
Chris@451 75
Chris@451 76 ICON = icons/sv-macicon.icns
Chris@451 77 RC_FILE = icons/sv.rc
Chris@451 78
Chris@451 79 contains(DEFINES, BUILD_STATIC):LIBS -= -ljack
Chris@451 80
Chris@1147 81 MY_LIBS = -Lsvapp -Lsvgui -Lsvcore -Lchecker -Ldataquay -L. \
Chris@1144 82 -lsvapp -lsvgui -lsvcore -lchecker -ldataquay -lbq
Chris@528 83
Chris@528 84 linux* {
Chris@528 85 MY_LIBS = -Wl,-Bstatic $$MY_LIBS -Wl,-Bdynamic
Chris@528 86 }
Chris@528 87
Chris@1266 88 ##??? how to set this appropriately for debug/release
Chris@1266 89 win32*:CONFIG(debug) {
Chris@1266 90 MY_LIBS = -Lsvapp/debug -Lsvgui/debug -Lsvcore/debug -Lchecker/debug -Ldataquay/debug $$MY_LIBS
Chris@1266 91 }
Chris@1266 92 win32*:CONFIG(release) {
Chris@1147 93 MY_LIBS = -Lsvapp/release -Lsvgui/release -Lsvcore/release -Lchecker/release -Ldataquay/release $$MY_LIBS
Chris@639 94 }
Chris@639 95
Chris@528 96 LIBS = $$MY_LIBS $$LIBS
Chris@451 97
Chris@1266 98 win32-g++* {
Chris@689 99 PRE_TARGETDEPS += svapp/release/libsvapp.a \
Chris@689 100 svgui/release/libsvgui.a \
Chris@689 101 svcore/release/libsvcore.a \
Chris@1144 102 dataquay/release/libdataquay.a \
Chris@1147 103 checker/release/libchecker.a
Chris@503 104 }
Chris@503 105 !win* {
Chris@668 106 PRE_TARGETDEPS += svapp/libsvapp.a \
Chris@668 107 svgui/libsvgui.a \
Chris@668 108 svcore/libsvcore.a \
Chris@1144 109 dataquay/libdataquay.a \
Chris@1147 110 checker/libchecker.a
Chris@503 111 }
Chris@451 112
Chris@1266 113 win32-msvc*:CONFIG(debug) {
Chris@1266 114 PRE_TARGETDEPS += svapp/debug/svapp.lib \
Chris@1266 115 svgui/debug/svgui.lib \
Chris@1266 116 svcore/debug/svcore.lib \
Chris@1266 117 dataquay/debug/dataquay.lib \
Chris@1266 118 checker/debug/checker.lib
Chris@1266 119 }
Chris@1266 120 win32-msvc*:CONFIG(release) {
Chris@1266 121 PRE_TARGETDEPS += svapp/release/svapp.lib \
Chris@1266 122 svgui/release/svgui.lib \
Chris@1266 123 svcore/release/svcore.lib \
Chris@1266 124 dataquay/release/dataquay.lib \
Chris@1266 125 checker/release/checker.lib
Chris@1266 126 }
Chris@1266 127
Chris@451 128 RESOURCES += sonic-visualiser.qrc
Chris@451 129
Chris@1142 130 HEADERS += \
Chris@1142 131 vamp-plugin-sdk/vamp-hostsdk/PluginBase.h \
Chris@1142 132 vamp-plugin-sdk/vamp-hostsdk/PluginBufferingAdapter.h \
Chris@1142 133 vamp-plugin-sdk/vamp-hostsdk/PluginChannelAdapter.h \
Chris@1142 134 vamp-plugin-sdk/vamp-hostsdk/Plugin.h \
Chris@1142 135 vamp-plugin-sdk/vamp-hostsdk/PluginHostAdapter.h \
Chris@1142 136 vamp-plugin-sdk/vamp-hostsdk/PluginInputDomainAdapter.h \
Chris@1142 137 vamp-plugin-sdk/vamp-hostsdk/PluginLoader.h \
Chris@1142 138 vamp-plugin-sdk/vamp-hostsdk/PluginSummarisingAdapter.h \
Chris@1142 139 vamp-plugin-sdk/vamp-hostsdk/PluginWrapper.h \
Chris@1142 140 vamp-plugin-sdk/vamp-hostsdk/RealTime.h \
Chris@1142 141 vamp-plugin-sdk/src/vamp-hostsdk/Window.h \
Chris@1142 142 main/MainWindow.h \
Chris@1142 143 main/NetworkPermissionTester.h \
Chris@1142 144 main/Surveyer.h \
Chris@1142 145 main/SVSplash.h \
Chris@1142 146 main/PreferencesDialog.h
Chris@1142 147 SOURCES += \
Chris@1142 148 vamp-plugin-sdk/src/vamp-hostsdk/PluginBufferingAdapter.cpp \
Chris@1142 149 vamp-plugin-sdk/src/vamp-hostsdk/PluginChannelAdapter.cpp \
Chris@1142 150 vamp-plugin-sdk/src/vamp-hostsdk/PluginHostAdapter.cpp \
Chris@1142 151 vamp-plugin-sdk/src/vamp-hostsdk/PluginInputDomainAdapter.cpp \
Chris@1142 152 vamp-plugin-sdk/src/vamp-hostsdk/PluginLoader.cpp \
Chris@1142 153 vamp-plugin-sdk/src/vamp-hostsdk/PluginSummarisingAdapter.cpp \
Chris@1142 154 vamp-plugin-sdk/src/vamp-hostsdk/PluginWrapper.cpp \
Chris@1142 155 vamp-plugin-sdk/src/vamp-hostsdk/RealTime.cpp \
Chris@1142 156 vamp-plugin-sdk/src/vamp-hostsdk/Files.cpp \
Chris@1272 157 piper-cpp/vamp-capnp/piper-capnp.cpp \
Chris@1142 158 main/main.cpp \
Chris@1142 159 main/OSCHandler.cpp \
Chris@1142 160 main/MainWindow.cpp \
Chris@1142 161 main/NetworkPermissionTester.cpp \
Chris@1142 162 main/Surveyer.cpp \
Chris@1142 163 main/SVSplash.cpp \
Chris@1142 164 main/PreferencesDialog.cpp
Chris@451 165
Chris@451 166 # for mac integration
Chris@451 167 QMAKE_INFO_PLIST = deploy/osx/Info.plist
Chris@451 168