annotate noconfig.pri @ 536:1058d9b37a97

Update subrepos and build system to align with current SV
author Chris Cannam
date Tue, 12 Jun 2018 10:56:10 +0100
parents 37d4e1b84a67
children f55363ecc57d
rev   line source
Chris@525 1
Chris@525 2 CONFIG += release
Chris@525 3
Chris@525 4 #CONFIG -= release
Chris@525 5 #CONFIG += debug
Chris@525 6
Chris@525 7 DEFINES += NDEBUG BUILD_RELEASE
Chris@525 8 DEFINES += NO_TIMING NO_HIT_COUNTS
Chris@525 9
Chris@525 10 # Full set of defines expected for all platforms when we have the
Chris@525 11 # sv-dependency-builds subrepo available to provide the dependencies.
Chris@525 12
Chris@525 13 DEFINES += \
Chris@525 14 HAVE_BZ2 \
Chris@525 15 HAVE_FFTW3 \
Chris@525 16 HAVE_FFTW3F \
Chris@525 17 HAVE_SNDFILE \
Chris@525 18 HAVE_SAMPLERATE \
Chris@525 19 HAVE_RUBBERBAND \
Chris@525 20 HAVE_LIBLO \
Chris@525 21 HAVE_MAD \
Chris@525 22 HAVE_ID3TAG \
Chris@525 23 HAVE_PORTAUDIO
Chris@525 24
Chris@525 25 # Default set of libs for the above. Config sections below may update
Chris@525 26 # these.
Chris@525 27
Chris@525 28 LIBS += \
Chris@536 29 -lbase \
Chris@525 30 -lbz2 \
Chris@525 31 -lrubberband \
Chris@525 32 -lfftw3 \
Chris@525 33 -lfftw3f \
Chris@525 34 -lsndfile \
Chris@525 35 -lFLAC \
Chris@525 36 -logg \
Chris@525 37 -lvorbis \
Chris@525 38 -lvorbisenc \
Chris@525 39 -lvorbisfile \
Chris@525 40 -logg \
Chris@525 41 -lmad \
Chris@525 42 -lid3tag \
Chris@525 43 -lportaudio \
Chris@525 44 -lsamplerate \
Chris@525 45 -lz \
Chris@525 46 -lsord-0 \
Chris@525 47 -lserd-0 \
Chris@525 48 -llo \
Chris@525 49 -lcapnp \
Chris@525 50 -lkj
Chris@525 51
Chris@525 52 win32-g++ {
Chris@525 53
Chris@525 54 # This config is currently used for 32-bit Windows builds.
Chris@525 55
Chris@536 56 INCLUDEPATH += $$PWD/sv-dependency-builds/win32-mingw/include
Chris@525 57
Chris@536 58 LIBS += -Lrelease -L$$PWD/sv-dependency-builds/win32-mingw/lib
Chris@525 59
Chris@525 60 DEFINES += NOMINMAX _USE_MATH_DEFINES CAPNP_LITE
Chris@525 61
Chris@525 62 QMAKE_CXXFLAGS_RELEASE += -ffast-math
Chris@525 63
Chris@525 64 # Don't have liblo
Chris@525 65 DEFINES -= HAVE_LIBLO
Chris@525 66 LIBS -= -llo
Chris@525 67
Chris@525 68 LIBS += -lwinmm -lws2_32
Chris@525 69 }
Chris@525 70
Chris@525 71 win32-msvc* {
Chris@525 72
Chris@525 73 # This config is actually used only for 64-bit Windows builds.
Chris@525 74 # even though the qmake spec is still called win32-msvc*. If
Chris@525 75 # we want to do 32-bit builds with MSVC as well, then we'll
Chris@525 76 # need to add a way to distinguish the two.
Chris@525 77
Chris@536 78 INCLUDEPATH += $$PWD/sv-dependency-builds/win64-msvc/include
Chris@525 79
Chris@525 80 ## This seems to be intruding even when we're supposed to be release
Chris@525 81 # CONFIG(debug) {
Chris@525 82 # LIBS += -NODEFAULTLIB:MSVCRT -Ldebug \
Chris@525 83 # -L../tony/sv-dependency-builds/win64-msvc/lib/debug \
Chris@525 84 # -L../tony/sv-dependency-builds/win64-msvc/lib
Chris@525 85 # }
Chris@525 86 CONFIG(release) {
Chris@525 87 LIBS += -Lrelease \
Chris@536 88 -L$$PWD/sv-dependency-builds/win64-msvc/lib
Chris@525 89 }
Chris@525 90
Chris@525 91 DEFINES += NOMINMAX _USE_MATH_DEFINES CAPNP_LITE
Chris@525 92
Chris@536 93 QMAKE_CXXFLAGS_RELEASE += -fp:fast -gl
Chris@536 94 QMAKE_LFLAGS_RELEASE += -ltcg
Chris@525 95
Chris@525 96 # No Ogg/FLAC support in the sndfile build on this platform yet
Chris@525 97 LIBS -= -lFLAC -logg -lvorbis -lvorbisenc -lvorbisfile
Chris@525 98
Chris@525 99 # These have different names
Chris@525 100 LIBS -= -lsord-0 -lserd-0
Chris@525 101 LIBS += -lsord -lserd
Chris@525 102
Chris@525 103 # Don't have liblo
Chris@525 104 DEFINES -= HAVE_LIBLO
Chris@525 105 LIBS -= -llo
Chris@525 106
Chris@525 107 LIBS += -ladvapi32 -lwinmm -lws2_32
Chris@525 108 }
Chris@525 109
Chris@525 110 macx* {
Chris@525 111
Chris@525 112 # All Mac builds are 64-bit these days.
Chris@525 113
Chris@536 114 INCLUDEPATH += $$PWD/sv-dependency-builds/osx/include
Chris@536 115 LIBS += -L$$PWD/sv-dependency-builds/osx/lib -L$$PWD
Chris@525 116
Chris@525 117 QMAKE_CXXFLAGS_RELEASE += -O3 -ffast-math
Chris@525 118
Chris@525 119 DEFINES += HAVE_COREAUDIO HAVE_VDSP
Chris@525 120 LIBS += \
Chris@525 121 -framework CoreAudio \
Chris@525 122 -framework CoreMidi \
Chris@525 123 -framework AudioUnit \
Chris@525 124 -framework AudioToolbox \
Chris@525 125 -framework CoreFoundation \
Chris@525 126 -framework CoreServices \
Chris@525 127 -framework Accelerate
Chris@525 128 }
Chris@525 129
Chris@525 130 linux* {
Chris@525 131
Chris@525 132 message("Building without ./configure on Linux is unlikely to work")
Chris@525 133 message("If you really want to try it, remove this from noconfig.pri")
Chris@525 134 error("Refusing to build without ./configure first")
Chris@525 135 }
Chris@525 136