Mercurial > hg > sonic-visualiser
changeset 1268:ba71dbc5ee8b piper
Merge from branch 3.0-integration
author | Chris Cannam |
---|---|
date | Thu, 20 Oct 2016 11:19:34 +0100 |
parents | 83ad03154d36 (current diff) 33b624877694 (diff) |
children | becd3a1b755f |
files | .hgsubstate sv.pro |
diffstat | 5 files changed, 76 insertions(+), 23 deletions(-) [+] |
line wrap: on
line diff
--- a/.hgsubstate Mon Oct 17 18:56:28 2016 +0100 +++ b/.hgsubstate Thu Oct 20 11:19:34 2016 +0100 @@ -1,13 +1,13 @@ fd86e70e00ae923479609a7e53d6481c09a76791 bqaudioio 6b0cbfca8fb7cf64f89b0a0026b63bc212b156af bqresample -126afd8e6a38eec4a201d63af28e271b6edb74cb bqvec -9f62684e1911c4184e7b97ba3a0673cb0464f3a2 checker +68f8e88d6d76fc4ca074166cb80979ccbfc2b6c9 bqvec +92e72014d9798a7339cfb09d6f2d877d8bf7fd65 checker 896aefe629c85b05ae0880ec93a396b9e3a5a304 dataquay 68ae618c6b0e442d08a71d39217784a08f2a8de3 icons/scalable 2ca3f7587550c7d80d0ca7b6ae1c266ca93859cd piper 3ba0d7d4af38dc1dcb1f7d357e22c31cb539e818 piper-cpp -1e4f338ae482429a7ab9bdd0825242042354152f sv-dependency-builds -f257967855e2e666921d167295105c5923947435 svapp -77320e522253b0e53959db5f73b595b76473e710 svcore -0d04b1cdb9f9c98403af5bdd87352379de52a7d9 svgui +efe5b9f38b13a28cb8054da2490fa32caf4364b2 sv-dependency-builds +d5ca6c5bad13fb033f7533f289d29e8166dbe381 svapp +771a179255767433678439f2f0315329db136087 svcore +52675a1f662c62f94596146e4ed5b237fe562f09 svgui a75fdb8b368c706a4c033090dcdc4e9e50ebf681 vamp-plugin-sdk
--- a/bq.pro Mon Oct 17 18:56:28 2016 +0100 +++ b/bq.pro Thu Oct 20 11:19:34 2016 +0100 @@ -6,8 +6,10 @@ LIBS += -Lsv-dependency-builds/win32-mingw/lib } win32-msvc* { - INCLUDEPATH += sv-dependency-builds/win32-msvc/include - LIBS += -Lsv-dependency-builds/win32-msvc/lib + # We actually expect MSVC to be used only for 64-bit builds, + # though the qmake spec is still called win32-msvc* + INCLUDEPATH += sv-dependency-builds/win64-msvc/include + LIBS += -Lrelease -Lsv-dependency-builds/win64-msvc/lib } mac* { INCLUDEPATH += sv-dependency-builds/osx/include @@ -23,14 +25,24 @@ CONFIG += release DEFINES += NDEBUG BUILD_RELEASE NO_TIMING - DEFINES += HAVE_BZ2 HAVE_FFTW3 HAVE_FFTW3F HAVE_SNDFILE HAVE_LIBSAMPLERATE HAVE_VAMP HAVE_VAMPHOSTSDK HAVE_RUBBERBAND HAVE_DATAQUAY HAVE_LIBLO HAVE_MAD HAVE_ID3TAG HAVE_PORTAUDIO + linux* { + DEFINES += HAVE_FFTW3 HAVE_FFTW3F HAVE_SNDFILE HAVE_LIBSAMPLERATE HAVE_MAD HAVE_ID3TAG HAVE_PORTAUDIO + LIBS += -lfftw3 -lfftw3f -lsndfile -lFLAC -logg -lvorbis -lvorbisenc -lvorbisfile -logg -lmad -lid3tag -lportaudio -lsamplerate -lz + } - LIBS += -lbz2 -lrubberband -lvamp-hostsdk -lfftw3 -lfftw3f -lsndfile -lFLAC -logg -lvorbis -lvorbisenc -lvorbisfile -logg -lmad -lid3tag -lportaudio -lsamplerate -lz -lsord-0 -lserd-0 -llo - - win* { + win32-g++ { + DEFINES += HAVE_FFTW3 HAVE_FFTW3F HAVE_SNDFILE HAVE_LIBSAMPLERATE HAVE_MAD HAVE_ID3TAG HAVE_PORTAUDIO + LIBS += -lfftw3 -lfftw3f -lsndfile -lFLAC -logg -lvorbis -lvorbisenc -lvorbisfile -logg -lmad -lid3tag -lportaudio -lsamplerate -lz DEFINES += USE_OWN_ALIGNED_MALLOC _USE_MATH_DEFINES LIBS += -lwinmm -lws2_32 } + win32-msvc* { + DEFINES += HAVE_FFTW3 HAVE_FFTW3F HAVE_SNDFILE HAVE_LIBSAMPLERATE HAVE_MAD HAVE_ID3TAG HAVE_PORTAUDIO + LIBS += -lfftw3 -lfftw3f -lportaudio + DEFINES += USE_OWN_ALIGNED_MALLOC _USE_MATH_DEFINES + LIBS += -lwinmm -lws2_32 + } + macx* { DEFINES += HAVE_COREAUDIO MALLOC_IS_ALIGNED LIBS += -framework CoreAudio -framework CoreMidi -framework AudioUnit -framework AudioToolbox -framework CoreFoundation -framework CoreServices -framework Accelerate
--- a/main/MainWindow.cpp Mon Oct 17 18:56:28 2016 +0100 +++ b/main/MainWindow.cpp Thu Oct 20 11:19:34 2016 +0100 @@ -1180,7 +1180,9 @@ // Avoid warnings/errors with -Wextra because we aren't explicitly // handling all layer types (-Wall is OK with this because of the // default but the stricter level insists) +#ifdef __GNUC__ #pragma GCC diagnostic ignored "-Wswitch-enum" +#endif switch (type) { @@ -4578,9 +4580,10 @@ aboutText += tr("<h3>About Sonic Visualiser</h3>"); aboutText += tr("<p>Sonic Visualiser is a program for viewing and exploring audio data for semantic music analysis and annotation.<br><a href=\"http://www.sonicvisualiser.org/\">http://www.sonicvisualiser.org/</a></p>"); - aboutText += tr("<p><small>%1 : %2 configuration</small></p>") + aboutText += tr("<p><small>%1 : %2 configuration, %3-bit build</small></p>") .arg(version) - .arg(debug ? tr("Debug") : tr("Release")); + .arg(debug ? tr("Debug") : tr("Release")) + .arg(sizeof(void *) * 8); aboutText += "<small>"; @@ -4679,7 +4682,7 @@ #endif aboutText += - "<p><small>Sonic Visualiser Copyright © 2005–2015 Chris Cannam and " + "<p><small>Sonic Visualiser Copyright © 2005–2016 Chris Cannam and " "Queen Mary, University of London.</small></p>" "<p><small>This program is free software; you can redistribute it and/or " "modify it under the terms of the GNU General Public License as "
--- a/platform-dataquay.pri Mon Oct 17 18:56:28 2016 +0100 +++ b/platform-dataquay.pri Thu Oct 20 11:19:34 2016 +0100 @@ -18,8 +18,10 @@ LIBS += -L../../sv-dependency-builds/win32-mingw/lib } win32-msvc* { - INCLUDEPATH += ../sv-dependency-builds/win32-msvc/include - LIBS += -L../../sv-dependency-builds/win32-msvc/lib + # We actually expect MSVC to be used only for 64-bit builds, + # though the qmake spec is still called win32-msvc* + INCLUDEPATH += ../sv-dependency-builds/win64-msvc/include + LIBS += -L../../sv-dependency-builds/win64-msvc/lib } mac* { INCLUDEPATH += ../sv-dependency-builds/osx/include
--- a/sv.pro Mon Oct 17 18:56:28 2016 +0100 +++ b/sv.pro Thu Oct 20 11:19:34 2016 +0100 @@ -8,8 +8,19 @@ LIBS += -Lrelease -Lsv-dependency-builds/win32-mingw/lib } win32-msvc* { - INCLUDEPATH += sv-dependency-builds/win32-msvc/include - LIBS += -Lrelease -Lsv-dependency-builds/win32-msvc/lib + # We actually expect MSVC to be used only for 64-bit builds, + # though the qmake spec is still called win32-msvc* + INCLUDEPATH += sv-dependency-builds/win64-msvc/include +# bah, this is happening even if not debug build +# CONFIG(debug) { +# LIBS += -NODEFAULTLIB:MSVCRT -Ldebug \ +# -L../sonic-visualiser/sv-dependency-builds/win64-msvc/lib/debug \ +# -L../sonic-visualiser/sv-dependency-builds/win64-msvc/lib +# } + CONFIG(release) { + LIBS += -Lrelease \ + -L../sonic-visualiser/sv-dependency-builds/win64-msvc/lib + } } mac* { INCLUDEPATH += sv-dependency-builds/osx/include @@ -23,16 +34,22 @@ !exists(config.pri) { CONFIG += release - DEFINES += NDEBUG BUILD_RELEASE NO_TIMING + DEFINES += NDEBUG BUILD_RELEASE + DEFINES += NO_TIMING 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 LIBS += -lbz2 -lrubberband -lfftw3 -lfftw3f -lsndfile -lFLAC -logg -lvorbis -lvorbisenc -lvorbisfile -logg -lmad -lid3tag -lportaudio -lsamplerate -lz -lsord-0 -lserd-0 -llo win* { - DEFINES += _USE_MATH_DEFINES + DEFINES += NOMINMAX _USE_MATH_DEFINES + DEFINES -= HAVE_LIBLO LIBS += -lwinmm -lws2_32 } + win32-msvc* { + LIBS -= -lFLAC -logg -lvorbis -lvorbisenc -lvorbisfile -lsord-0 -lserd-0 -llo + LIBS += -lsord -lserd -ladvapi32 + } macx* { DEFINES += HAVE_COREAUDIO LIBS += -framework CoreAudio -framework CoreMidi -framework AudioUnit -framework AudioToolbox -framework CoreFoundation -framework CoreServices -framework Accelerate @@ -68,13 +85,17 @@ MY_LIBS = -Wl,-Bstatic $$MY_LIBS -Wl,-Bdynamic } -win* { +##??? how to set this appropriately for debug/release +win32*:CONFIG(debug) { +MY_LIBS = -Lsvapp/debug -Lsvgui/debug -Lsvcore/debug -Lchecker/debug -Ldataquay/debug $$MY_LIBS +} +win32*:CONFIG(release) { MY_LIBS = -Lsvapp/release -Lsvgui/release -Lsvcore/release -Lchecker/release -Ldataquay/release $$MY_LIBS } LIBS = $$MY_LIBS $$LIBS -win* { +win32-g++* { PRE_TARGETDEPS += svapp/release/libsvapp.a \ svgui/release/libsvgui.a \ svcore/release/libsvcore.a \ @@ -89,6 +110,21 @@ checker/libchecker.a } +win32-msvc*:CONFIG(debug) { +PRE_TARGETDEPS += svapp/debug/svapp.lib \ + svgui/debug/svgui.lib \ + svcore/debug/svcore.lib \ + dataquay/debug/dataquay.lib \ + checker/debug/checker.lib +} +win32-msvc*:CONFIG(release) { +PRE_TARGETDEPS += svapp/release/svapp.lib \ + svgui/release/svgui.lib \ + svcore/release/svcore.lib \ + dataquay/release/dataquay.lib \ + checker/release/checker.lib +} + RESOURCES += sonic-visualiser.qrc HEADERS += \