annotate noconfig.pri @ 314:d741e2c90eab

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