annotate noconfig.pri @ 398:30c64a311d9c

Added tag sonic-annotator-1.6 for changeset a82030ec7b1f
author Chris Cannam
date Tue, 09 Jun 2020 17:33:22 +0100
parents 885960538dd4
children
rev   line source
Chris@334 1
Chris@334 2 CONFIG += c++14
Chris@260 3
Chris@260 4 CONFIG += release
Chris@334 5 #CONFIG += debug
Chris@260 6
Chris@334 7 PREFIX_PATH = /usr/local
Chris@260 8
Chris@394 9 #DEFINES += NDEBUG BUILD_RELEASE
Chris@394 10 DEFINES += BUILD_RELEASE
Chris@260 11 DEFINES += NO_TIMING
Chris@260 12
Chris@260 13 # Full set of defines expected for all platforms when we have the
Chris@260 14 # sv-dependency-builds subrepo available to provide the dependencies.
Chris@260 15
Chris@260 16 DEFINES += \
Chris@260 17 HAVE_BZ2 \
Chris@260 18 HAVE_FFTW3 \
Chris@260 19 HAVE_FFTW3F \
Chris@260 20 HAVE_SNDFILE \
Chris@260 21 HAVE_SAMPLERATE \
Chris@260 22 HAVE_MAD \
Chris@334 23 HAVE_ID3TAG \
Chris@334 24 HAVE_OPUS
Chris@334 25
Chris@260 26 # Default set of libs for the above. Config sections below may update
Chris@260 27 # these.
Chris@260 28
Chris@260 29 LIBS += \
Chris@328 30 -lbase \
Chris@260 31 -lbz2 \
Chris@260 32 -lrubberband \
Chris@260 33 -lfftw3 \
Chris@260 34 -lfftw3f \
Chris@260 35 -lsndfile \
Chris@260 36 -lFLAC \
Chris@260 37 -logg \
Chris@260 38 -lvorbis \
Chris@260 39 -lvorbisenc \
Chris@260 40 -lvorbisfile \
Chris@334 41 -lopusfile \
Chris@334 42 -lopus \
Chris@260 43 -logg \
Chris@260 44 -lmad \
Chris@260 45 -lid3tag \
Chris@260 46 -lsamplerate \
Chris@260 47 -lz \
Chris@260 48 -lsord-0 \
Chris@260 49 -lserd-0
Chris@260 50
Chris@260 51 win32-g++ {
Chris@260 52
Chris@260 53 # This config is currently used for 32-bit Windows builds.
Chris@260 54
Chris@338 55 INCLUDEPATH += $$PWD/sv-dependency-builds/win32-mingw/include $$PWD/sv-dependency-builds/win32-mingw/include/opus
Chris@260 56
Chris@328 57 LIBS += -Lrelease -L$$PWD/sv-dependency-builds/win32-mingw/lib
Chris@260 58
Chris@328 59 DEFINES += NOMINMAX _USE_MATH_DEFINES CAPNP_LITE
Chris@260 60
Chris@260 61 QMAKE_CXXFLAGS_RELEASE += -ffast-math
Chris@260 62
Chris@339 63 # (We don't have MediaFoundation support, with this build sadly)
Chris@339 64
Chris@339 65 LIBS += -lwinmm -lws2_32
Chris@260 66 }
Chris@260 67
Chris@260 68 win32-msvc* {
Chris@260 69
Chris@260 70 # This config is actually used only for 64-bit Windows builds.
Chris@260 71 # even though the qmake spec is still called win32-msvc*. If
Chris@260 72 # we want to do 32-bit builds with MSVC as well, then we'll
Chris@260 73 # need to add a way to distinguish the two.
Chris@260 74
Chris@338 75 INCLUDEPATH += $$PWD/sv-dependency-builds/win64-msvc/include $$PWD/sv-dependency-builds/win64-msvc/include/opus
Chris@260 76
Chris@260 77 CONFIG(release) {
Chris@394 78 SOURCES += deploy/win/static-redirects.cpp
Chris@394 79 LIBS += -Lrelease -L$$PWD/sv-dependency-builds/win64-msvc/lib
Chris@260 80 }
Chris@260 81
Chris@369 82 DEFINES += NOMINMAX _USE_MATH_DEFINES HAVE_MEDIAFOUNDATION AVOID_WINRT_DEPENDENCY
Chris@260 83
Chris@328 84 QMAKE_CXXFLAGS_RELEASE += -fp:fast -gl
Chris@328 85 QMAKE_LFLAGS_RELEASE += -ltcg
Chris@260 86
Chris@260 87 # No Ogg/FLAC support in the sndfile build on this platform yet
Chris@339 88 LIBS -= -lFLAC -lvorbis -lvorbisenc -lvorbisfile
Chris@260 89
Chris@260 90 # These have different names
Chris@260 91 LIBS -= -lsord-0 -lserd-0
Chris@260 92 LIBS += -lsord -lserd
Chris@260 93
Chris@334 94 LIBS += -lmfplat -lmfreadwrite -lmfuuid -lpropsys -ladvapi32 -lwinmm -lws2_32
Chris@260 95 }
Chris@260 96
Chris@260 97 macx* {
Chris@260 98
Chris@260 99 # All Mac builds are 64-bit these days.
Chris@260 100
Chris@334 101 INCLUDEPATH += $$PWD/sv-dependency-builds/osx/include $$PWD/sv-dependency-builds/osx/include/opus
Chris@328 102 LIBS += -L$$PWD/sv-dependency-builds/osx/lib -L$$PWD
Chris@260 103
Chris@334 104 QMAKE_CXXFLAGS_RELEASE += -O3 -ffast-math -flto
Chris@339 105 QMAKE_LFLAGS_RELEASE += -O3 -flto
Chris@260 106
Chris@334 107 DEFINES += HAVE_COREAUDIO HAVE_VDSP
Chris@260 108 LIBS += \
cannam@283 109 -framework CoreAudio \
cannam@283 110 -framework CoreMidi \
cannam@283 111 -framework AudioUnit \
cannam@283 112 -framework AudioToolbox \
Chris@260 113 -framework CoreFoundation \
Chris@260 114 -framework CoreServices \
Chris@260 115 -framework Accelerate
Chris@260 116 }
Chris@260 117
Chris@260 118 linux* {
Chris@260 119
Chris@260 120 message("Building without ./configure on Linux is unlikely to work")
Chris@260 121 message("If you really want to try it, remove this from noconfig.pri")
Chris@260 122 error("Refusing to build without ./configure first")
Chris@260 123 }
Chris@260 124