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@742
|
12 mac* {
|
Chris@742
|
13 INCLUDEPATH += sv-dependency-builds/osx/include
|
Chris@742
|
14 LIBS += -Lsv-dependency-builds/osx/lib
|
Chris@742
|
15 }
|
Chris@639
|
16
|
Chris@639
|
17 exists(config.pri) {
|
Chris@639
|
18 include(config.pri)
|
Chris@639
|
19 }
|
Chris@639
|
20
|
Chris@742
|
21 !exists(config.pri) {
|
Chris@742
|
22
|
Chris@742
|
23 CONFIG += release
|
Chris@742
|
24 DEFINES += NDEBUG BUILD_RELEASE NO_TIMING
|
Chris@742
|
25
|
Chris@742
|
26 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@742
|
27
|
Chris@742
|
28 LIBS += -lbz2 -lrubberband -lvamp-hostsdk -lfftw3 -lfftw3f -lsndfile -lFLAC -logg -lvorbis -lvorbisenc -lvorbisfile -logg -lmad -lid3tag -lportaudio -lsamplerate -lz -lsord-0 -lserd-0
|
Chris@742
|
29
|
Chris@742
|
30 win* {
|
Chris@742
|
31 LIBS += -llo -lwinmm -lws2_32
|
Chris@742
|
32 }
|
Chris@742
|
33 macx* {
|
Chris@742
|
34 DEFINES += HAVE_COREAUDIO
|
Chris@742
|
35 LIBS += -framework CoreAudio -framework CoreMidi -framework AudioUnit -framework AudioToolbox -framework CoreFoundation -framework CoreServices -framework Accelerate
|
Chris@639
|
36 }
|
Chris@639
|
37 }
|
Chris@451
|
38
|
Chris@451
|
39 CONFIG += qt thread warn_on stl rtti exceptions
|
Chris@528
|
40 QT += network xml gui widgets
|
Chris@451
|
41
|
Chris@451
|
42 TARGET = "Sonic Visualiser"
|
Chris@451
|
43 linux*:TARGET = sonic-visualiser
|
Chris@451
|
44 solaris*:TARGET = sonic-visualiser
|
Chris@451
|
45
|
Chris@517
|
46 DEPENDPATH += . svcore svgui svapp
|
Chris@517
|
47 INCLUDEPATH += . svcore svgui svapp
|
Chris@451
|
48
|
Chris@451
|
49 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
|
50
|
Chris@451
|
51 OBJECTS_DIR = o
|
Chris@451
|
52 MOC_DIR = o
|
Chris@451
|
53
|
Chris@451
|
54 ICON = icons/sv-macicon.icns
|
Chris@451
|
55 RC_FILE = icons/sv.rc
|
Chris@451
|
56
|
Chris@451
|
57 contains(DEFINES, BUILD_STATIC):LIBS -= -ljack
|
Chris@451
|
58
|
Chris@528
|
59 MY_LIBS = -Lsvapp -Lsvgui -Lsvcore -Ldataquay -lsvapp -lsvgui -lsvcore -ldataquay
|
Chris@528
|
60
|
Chris@528
|
61 linux* {
|
Chris@528
|
62 MY_LIBS = -Wl,-Bstatic $$MY_LIBS -Wl,-Bdynamic
|
Chris@528
|
63 }
|
Chris@528
|
64
|
Chris@639
|
65 win* {
|
Chris@639
|
66 MY_LIBS = -Lsvapp/release -Lsvgui/release -Lsvcore/release -Ldataquay/release $$MY_LIBS
|
Chris@639
|
67 }
|
Chris@639
|
68
|
Chris@528
|
69 LIBS = $$MY_LIBS $$LIBS
|
Chris@451
|
70
|
Chris@503
|
71 win* {
|
Chris@689
|
72 PRE_TARGETDEPS += svapp/release/libsvapp.a \
|
Chris@689
|
73 svgui/release/libsvgui.a \
|
Chris@689
|
74 svcore/release/libsvcore.a \
|
Chris@689
|
75 dataquay/release/libdataquay.a
|
Chris@503
|
76 }
|
Chris@503
|
77 !win* {
|
Chris@668
|
78 PRE_TARGETDEPS += svapp/libsvapp.a \
|
Chris@668
|
79 svgui/libsvgui.a \
|
Chris@668
|
80 svcore/libsvcore.a \
|
Chris@668
|
81 dataquay/libdataquay.a
|
Chris@503
|
82 }
|
Chris@451
|
83
|
Chris@451
|
84 RESOURCES += sonic-visualiser.qrc
|
Chris@451
|
85
|
Chris@451
|
86 HEADERS += main/MainWindow.h \
|
Chris@663
|
87 main/NetworkPermissionTester.h \
|
Chris@662
|
88 main/Surveyer.h \
|
Chris@528
|
89 main/PreferencesDialog.h
|
Chris@451
|
90 SOURCES += main/main.cpp \
|
Chris@451
|
91 main/OSCHandler.cpp \
|
Chris@451
|
92 main/MainWindow.cpp \
|
Chris@663
|
93 main/NetworkPermissionTester.cpp \
|
Chris@662
|
94 main/Surveyer.cpp \
|
Chris@528
|
95 main/PreferencesDialog.cpp
|
Chris@451
|
96
|
Chris@451
|
97 # for mac integration
|
Chris@451
|
98 QMAKE_INFO_PLIST = deploy/osx/Info.plist
|
Chris@451
|
99
|