annotate sv.pro @ 539:bf1c6e2b8791 with-dependencies

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