annotate sv.pro @ 1266:3ca6b4102407 msvc2015_64

Further MSVC build stuff. Committing this as-is because it's building and running now, but there's a lot to tidy up.
author Chris Cannam
date Wed, 19 Oct 2016 17:33:32 +0100
parents 65b8c009a9f2
children ba71dbc5ee8b
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@929 59 CONFIG += qt thread warn_on stl rtti exceptions c++11
Chris@951 60 QT += network xml gui widgets svg
Chris@451 61
Chris@451 62 TARGET = "Sonic Visualiser"
Chris@451 63 linux*:TARGET = sonic-visualiser
Chris@451 64 solaris*:TARGET = sonic-visualiser
Chris@451 65
Chris@1035 66 DEPENDPATH += . bqaudioio svcore svgui svapp
Chris@1035 67 INCLUDEPATH += . bqaudioio svcore svgui svapp
Chris@451 68
Chris@451 69 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 70
Chris@451 71 OBJECTS_DIR = o
Chris@451 72 MOC_DIR = o
Chris@451 73
Chris@451 74 ICON = icons/sv-macicon.icns
Chris@451 75 RC_FILE = icons/sv.rc
Chris@451 76
Chris@451 77 contains(DEFINES, BUILD_STATIC):LIBS -= -ljack
Chris@451 78
Chris@1147 79 MY_LIBS = -Lsvapp -Lsvgui -Lsvcore -Lchecker -Ldataquay -L. \
Chris@1144 80 -lsvapp -lsvgui -lsvcore -lchecker -ldataquay -lbq
Chris@528 81
Chris@528 82 linux* {
Chris@528 83 MY_LIBS = -Wl,-Bstatic $$MY_LIBS -Wl,-Bdynamic
Chris@528 84 }
Chris@528 85
Chris@1266 86 ##??? how to set this appropriately for debug/release
Chris@1266 87 win32*:CONFIG(debug) {
Chris@1266 88 MY_LIBS = -Lsvapp/debug -Lsvgui/debug -Lsvcore/debug -Lchecker/debug -Ldataquay/debug $$MY_LIBS
Chris@1266 89 }
Chris@1266 90 win32*:CONFIG(release) {
Chris@1147 91 MY_LIBS = -Lsvapp/release -Lsvgui/release -Lsvcore/release -Lchecker/release -Ldataquay/release $$MY_LIBS
Chris@639 92 }
Chris@639 93
Chris@528 94 LIBS = $$MY_LIBS $$LIBS
Chris@451 95
Chris@1266 96 win32-g++* {
Chris@689 97 PRE_TARGETDEPS += svapp/release/libsvapp.a \
Chris@689 98 svgui/release/libsvgui.a \
Chris@689 99 svcore/release/libsvcore.a \
Chris@1144 100 dataquay/release/libdataquay.a \
Chris@1147 101 checker/release/libchecker.a
Chris@503 102 }
Chris@503 103 !win* {
Chris@668 104 PRE_TARGETDEPS += svapp/libsvapp.a \
Chris@668 105 svgui/libsvgui.a \
Chris@668 106 svcore/libsvcore.a \
Chris@1144 107 dataquay/libdataquay.a \
Chris@1147 108 checker/libchecker.a
Chris@503 109 }
Chris@451 110
Chris@1266 111 win32-msvc*:CONFIG(debug) {
Chris@1266 112 PRE_TARGETDEPS += svapp/debug/svapp.lib \
Chris@1266 113 svgui/debug/svgui.lib \
Chris@1266 114 svcore/debug/svcore.lib \
Chris@1266 115 dataquay/debug/dataquay.lib \
Chris@1266 116 checker/debug/checker.lib
Chris@1266 117 }
Chris@1266 118 win32-msvc*:CONFIG(release) {
Chris@1266 119 PRE_TARGETDEPS += svapp/release/svapp.lib \
Chris@1266 120 svgui/release/svgui.lib \
Chris@1266 121 svcore/release/svcore.lib \
Chris@1266 122 dataquay/release/dataquay.lib \
Chris@1266 123 checker/release/checker.lib
Chris@1266 124 }
Chris@1266 125
Chris@451 126 RESOURCES += sonic-visualiser.qrc
Chris@451 127
Chris@1142 128 HEADERS += \
Chris@1142 129 vamp-plugin-sdk/vamp-hostsdk/PluginBase.h \
Chris@1142 130 vamp-plugin-sdk/vamp-hostsdk/PluginBufferingAdapter.h \
Chris@1142 131 vamp-plugin-sdk/vamp-hostsdk/PluginChannelAdapter.h \
Chris@1142 132 vamp-plugin-sdk/vamp-hostsdk/Plugin.h \
Chris@1142 133 vamp-plugin-sdk/vamp-hostsdk/PluginHostAdapter.h \
Chris@1142 134 vamp-plugin-sdk/vamp-hostsdk/PluginInputDomainAdapter.h \
Chris@1142 135 vamp-plugin-sdk/vamp-hostsdk/PluginLoader.h \
Chris@1142 136 vamp-plugin-sdk/vamp-hostsdk/PluginSummarisingAdapter.h \
Chris@1142 137 vamp-plugin-sdk/vamp-hostsdk/PluginWrapper.h \
Chris@1142 138 vamp-plugin-sdk/vamp-hostsdk/RealTime.h \
Chris@1142 139 vamp-plugin-sdk/src/vamp-hostsdk/Window.h \
Chris@1142 140 main/MainWindow.h \
Chris@1142 141 main/NetworkPermissionTester.h \
Chris@1142 142 main/Surveyer.h \
Chris@1142 143 main/SVSplash.h \
Chris@1142 144 main/PreferencesDialog.h
Chris@1142 145 SOURCES += \
Chris@1142 146 vamp-plugin-sdk/src/vamp-hostsdk/PluginBufferingAdapter.cpp \
Chris@1142 147 vamp-plugin-sdk/src/vamp-hostsdk/PluginChannelAdapter.cpp \
Chris@1142 148 vamp-plugin-sdk/src/vamp-hostsdk/PluginHostAdapter.cpp \
Chris@1142 149 vamp-plugin-sdk/src/vamp-hostsdk/PluginInputDomainAdapter.cpp \
Chris@1142 150 vamp-plugin-sdk/src/vamp-hostsdk/PluginLoader.cpp \
Chris@1142 151 vamp-plugin-sdk/src/vamp-hostsdk/PluginSummarisingAdapter.cpp \
Chris@1142 152 vamp-plugin-sdk/src/vamp-hostsdk/PluginWrapper.cpp \
Chris@1142 153 vamp-plugin-sdk/src/vamp-hostsdk/RealTime.cpp \
Chris@1142 154 vamp-plugin-sdk/src/vamp-hostsdk/Files.cpp \
Chris@1142 155 main/main.cpp \
Chris@1142 156 main/OSCHandler.cpp \
Chris@1142 157 main/MainWindow.cpp \
Chris@1142 158 main/NetworkPermissionTester.cpp \
Chris@1142 159 main/Surveyer.cpp \
Chris@1142 160 main/SVSplash.cpp \
Chris@1142 161 main/PreferencesDialog.cpp
Chris@451 162
Chris@451 163 # for mac integration
Chris@451 164 QMAKE_INFO_PLIST = deploy/osx/Info.plist
Chris@451 165