annotate sv.pro @ 639:85834f881360

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