annotate noconfig.pri @ 332:b7825e35b5b7

Update with Qt test fix
author Chris Cannam
date Tue, 12 Jun 2018 11:21:12 +0100
parents e16e4cda23b9
children ba3c0e70b5dd
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@328 26 -lbase \
Chris@260 27 -lbz2 \
Chris@260 28 -lrubberband \
Chris@260 29 -lfftw3 \
Chris@260 30 -lfftw3f \
Chris@260 31 -lsndfile \
Chris@260 32 -lFLAC \
Chris@260 33 -logg \
Chris@260 34 -lvorbis \
Chris@260 35 -lvorbisenc \
Chris@260 36 -lvorbisfile \
Chris@260 37 -logg \
Chris@260 38 -lmad \
Chris@260 39 -lid3tag \
Chris@260 40 -lsamplerate \
Chris@260 41 -lz \
Chris@260 42 -lsord-0 \
Chris@260 43 -lserd-0
Chris@260 44
Chris@260 45 win32-g++ {
Chris@260 46
Chris@260 47 # This config is currently used for 32-bit Windows builds.
Chris@260 48
Chris@328 49 INCLUDEPATH += $$PWD/sv-dependency-builds/win32-mingw/include
Chris@260 50
Chris@328 51 LIBS += -Lrelease -L$$PWD/sv-dependency-builds/win32-mingw/lib
Chris@260 52
Chris@328 53 DEFINES += NOMINMAX _USE_MATH_DEFINES CAPNP_LITE
Chris@260 54
Chris@260 55 QMAKE_CXXFLAGS_RELEASE += -ffast-math
Chris@260 56
Chris@260 57 LIBS += -lwinmm -lws2_32
Chris@260 58 }
Chris@260 59
Chris@260 60 win32-msvc* {
Chris@260 61
Chris@260 62 # This config is actually used only for 64-bit Windows builds.
Chris@260 63 # even though the qmake spec is still called win32-msvc*. If
Chris@260 64 # we want to do 32-bit builds with MSVC as well, then we'll
Chris@260 65 # need to add a way to distinguish the two.
Chris@260 66
Chris@328 67 INCLUDEPATH += $$PWD/sv-dependency-builds/win64-msvc/include
Chris@260 68
Chris@260 69 CONFIG(release) {
Chris@260 70 LIBS += -Lrelease \
Chris@328 71 -L$$PWD/sv-dependency-builds/win64-msvc/lib
Chris@260 72 }
Chris@260 73
Chris@328 74 DEFINES += NOMINMAX _USE_MATH_DEFINES
Chris@260 75
Chris@328 76 QMAKE_CXXFLAGS_RELEASE += -fp:fast -gl
Chris@328 77 QMAKE_LFLAGS_RELEASE += -ltcg
Chris@260 78
Chris@260 79 # No Ogg/FLAC support in the sndfile build on this platform yet
Chris@260 80 LIBS -= -lFLAC -logg -lvorbis -lvorbisenc -lvorbisfile
Chris@260 81
Chris@260 82 # These have different names
Chris@260 83 LIBS -= -lsord-0 -lserd-0
Chris@260 84 LIBS += -lsord -lserd
Chris@260 85
Chris@260 86 LIBS += -ladvapi32 -lwinmm -lws2_32
Chris@260 87 }
Chris@260 88
Chris@260 89 macx* {
Chris@260 90
Chris@260 91 # All Mac builds are 64-bit these days.
Chris@260 92
Chris@328 93 INCLUDEPATH += $$PWD/sv-dependency-builds/osx/include
Chris@328 94 LIBS += -L$$PWD/sv-dependency-builds/osx/lib -L$$PWD
Chris@260 95
Chris@328 96 QMAKE_CXXFLAGS_RELEASE += -O3 -ffast-math
Chris@260 97
Chris@328 98 DEFINES += HAVE_VDSP
Chris@260 99 LIBS += \
cannam@283 100 -framework CoreAudio \
cannam@283 101 -framework CoreMidi \
cannam@283 102 -framework AudioUnit \
cannam@283 103 -framework AudioToolbox \
Chris@260 104 -framework CoreFoundation \
Chris@260 105 -framework CoreServices \
Chris@260 106 -framework Accelerate
Chris@260 107 }
Chris@260 108
Chris@260 109 linux* {
Chris@260 110
Chris@260 111 message("Building without ./configure on Linux is unlikely to work")
Chris@260 112 message("If you really want to try it, remove this from noconfig.pri")
Chris@260 113 error("Refusing to build without ./configure first")
Chris@260 114 }
Chris@260 115