annotate noconfig.pri @ 1661:fad5960ac61a sv_v3.0.1

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