annotate sv.pro @ 536:2fe2fd554522 with-dependencies

Define fixed set of dependencies, on Windows, if no config available
author Chris Cannam
date Mon, 25 Mar 2013 15:30:14 +0000
parents 2fd3c90fff29
children bf1c6e2b8791
rev   line source
chris@535 1
chris@535 2 TEMPLATE = app
chris@535 3
Chris@536 4 exists(config.pri) {
Chris@536 5 include(config.pri)
Chris@536 6 }
Chris@536 7 win* {
Chris@536 8 !exists(config.pri) {
Chris@536 9 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_2_0
Chris@536 10 }
Chris@536 11 }
chris@535 12
chris@535 13 CONFIG += qt thread warn_on stl rtti exceptions
chris@535 14 QT += network xml gui widgets
chris@535 15
chris@535 16 TARGET = "Sonic Visualiser"
chris@535 17 linux*:TARGET = sonic-visualiser
chris@535 18 solaris*:TARGET = sonic-visualiser
chris@535 19
chris@535 20 DEPENDPATH += . svcore svgui svapp
chris@535 21 INCLUDEPATH += . svcore svgui svapp
chris@535 22
chris@535 23 win32-g++ {
chris@535 24 INCLUDEPATH += sv-dependency-builds/win32-mingw/include
chris@535 25 LIBS += sv-dependency-builds/win32-mingw/lib
chris@535 26 }
chris@535 27 win32-msvc* {
chris@535 28 INCLUDEPATH += sv-dependency-builds/win32-msvc/include
chris@535 29 LIBS += sv-dependency-builds/win32-msvc/lib
chris@535 30 }
chris@535 31
chris@535 32 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@535 33
chris@535 34 OBJECTS_DIR = o
chris@535 35 MOC_DIR = o
chris@535 36
chris@535 37 ICON = icons/sv-macicon.icns
chris@535 38 RC_FILE = icons/sv.rc
chris@535 39
chris@535 40 contains(DEFINES, BUILD_STATIC):LIBS -= -ljack
chris@535 41
chris@535 42 MY_LIBS = -Lsvapp -Lsvgui -Lsvcore -Ldataquay -lsvapp -lsvgui -lsvcore -ldataquay
chris@535 43
chris@535 44 linux* {
chris@535 45 MY_LIBS = -Wl,-Bstatic $$MY_LIBS -Wl,-Bdynamic
chris@535 46 }
chris@535 47
chris@535 48 win* {
chris@535 49 MY_LIBS = -Lsvapp/debug -Lsvgui/debug -Lsvcore/debug -Ldataquay/debug $$MY_LIBS
chris@535 50 }
chris@535 51
chris@535 52 LIBS = $$MY_LIBS $$LIBS
chris@535 53
chris@535 54 win* {
chris@535 55 #PRE_TARGETDEPS += svapp/svapp.lib \
chris@535 56 # svgui/svgui.lib \
chris@535 57 # svcore/svcore.lib \
chris@535 58 # dataquay/dataquay.lib
chris@535 59 }
chris@535 60 !win* {
chris@535 61 PRE_TARGETDEPS += svapp/libsvapp.a \
chris@535 62 svgui/libsvgui.a \
chris@535 63 svcore/libsvcore.a \
chris@535 64 dataquay/libdataquay.a
chris@535 65 }
chris@535 66
chris@535 67 RESOURCES += sonic-visualiser.qrc
chris@535 68
chris@535 69 HEADERS += main/MainWindow.h \
chris@535 70 main/PreferencesDialog.h
chris@535 71 SOURCES += main/main.cpp \
chris@535 72 main/OSCHandler.cpp \
chris@535 73 main/MainWindow.cpp \
chris@535 74 main/PreferencesDialog.cpp
chris@535 75
chris@535 76 # for mac integration
chris@535 77 QMAKE_INFO_PLIST = deploy/osx/Info.plist
chris@535 78