annotate noconfig.pri @ 2556:d07cf8e01d51

Remove this debug output on startup
author Chris Cannam
date Thu, 11 Jun 2020 15:33:09 +0100
parents 98321b83ac9b
children 1799e90689b5
rev   line source
Chris@1284 1
Chris@2458 2 win32-msvc* {
Chris@2458 3 # Necessary for WinRT header used to determine background colour
Chris@2458 4 CONFIG += c++17
Chris@2458 5 }
Chris@2458 6 !win32-msvc* {
Chris@2458 7 CONFIG += c++14
Chris@2458 8 }
Chris@1299 9
Chris@2199 10 CONFIG += release
Chris@2199 11 #CONFIG += debug
Chris@1299 12
Chris@1753 13 PREFIX_PATH = /usr/local
Chris@1753 14
Chris@1284 15 DEFINES += NDEBUG BUILD_RELEASE
Chris@1484 16 DEFINES += NO_TIMING NO_HIT_COUNTS
Chris@1284 17
Chris@1319 18 DEFINES += HAVE_PIPER HAVE_PLUGIN_CHECKER_HELPER
Chris@1319 19
Chris@2539 20 DEFINES += $$[SV_PERSISTENT_DEFINES]
Chris@2539 21
Chris@1292 22 # Full set of defines expected for all platforms when we have the
Chris@1292 23 # sv-dependency-builds subrepo available to provide the dependencies.
Chris@1292 24
Chris@1292 25 DEFINES += \
Chris@1292 26 HAVE_BZ2 \
Chris@1292 27 HAVE_FFTW3 \
Chris@1292 28 HAVE_FFTW3F \
Chris@1292 29 HAVE_SNDFILE \
Chris@1292 30 HAVE_SAMPLERATE \
Chris@1292 31 HAVE_RUBBERBAND \
Chris@1292 32 HAVE_LIBLO \
Chris@1292 33 HAVE_MAD \
Chris@1292 34 HAVE_ID3TAG \
Chris@2192 35 HAVE_OPUS \
Chris@1292 36 HAVE_PORTAUDIO
Chris@1292 37
Chris@1292 38 # Default set of libs for the above. Config sections below may update
Chris@1292 39 # these.
Chris@1292 40
Chris@1292 41 LIBS += \
Chris@1827 42 -lbase \
Chris@1292 43 -lbz2 \
Chris@2207 44 -lrubberband \
Chris@1292 45 -lfftw3 \
Chris@1292 46 -lfftw3f \
Chris@1292 47 -lsndfile \
Chris@1292 48 -lFLAC \
Chris@1292 49 -logg \
Chris@1292 50 -lvorbis \
Chris@1292 51 -lvorbisenc \
Chris@1292 52 -lvorbisfile \
Chris@2195 53 -lopusfile \
Chris@2195 54 -lopus \
Chris@1292 55 -logg \
Chris@1292 56 -lmad \
Chris@1292 57 -lid3tag \
Chris@1292 58 -lportaudio \
Chris@1292 59 -lsamplerate \
Chris@1292 60 -lz \
Chris@1292 61 -lsord-0 \
Chris@1292 62 -lserd-0 \
Chris@1292 63 -llo \
Chris@1292 64 -lcapnp \
Chris@1292 65 -lkj
Chris@1292 66
Chris@1284 67 win32-g++ {
Chris@1292 68
Chris@1292 69 # This config is currently used for 32-bit Windows builds.
Chris@1292 70
Chris@2199 71 INCLUDEPATH += $$PWD/sv-dependency-builds/win32-mingw/include $$PWD/sv-dependency-builds/win32-mingw/include/opus
Chris@1292 72
Chris@1827 73 LIBS += -Lrelease -L$$PWD/sv-dependency-builds/win32-mingw/lib
Chris@1295 74
Chris@2199 75 DEFINES += NOMINMAX _USE_MATH_DEFINES CAPNP_LITE
Chris@1295 76
Chris@1295 77 QMAKE_CXXFLAGS_RELEASE += -ffast-math
Chris@1292 78
Chris@1292 79 # Don't have liblo
Chris@1292 80 DEFINES -= HAVE_LIBLO
Chris@1292 81 LIBS -= -llo
Chris@2199 82
Chris@2199 83 # (We don't have MediaFoundation support either, with this build sadly)
Chris@1292 84
Chris@2199 85 LIBS += -lwinmm -lws2_32
Chris@1284 86 }
Chris@1284 87
Chris@1284 88 win32-msvc* {
Chris@1292 89
Chris@1292 90 # This config is actually used only for 64-bit Windows builds.
Chris@1292 91 # even though the qmake spec is still called win32-msvc*. If
Chris@1292 92 # we want to do 32-bit builds with MSVC as well, then we'll
Chris@1292 93 # need to add a way to distinguish the two.
Chris@1292 94
Chris@2197 95 INCLUDEPATH += $$PWD/sv-dependency-builds/win64-msvc/include $$PWD/sv-dependency-builds/win64-msvc/include/opus
Chris@1294 96
Chris@1982 97 # This seems to be intruding even when we're supposed to be release
Chris@1294 98 # CONFIG(debug) {
Chris@1294 99 # LIBS += -NODEFAULTLIB:MSVCRT -Ldebug \
Chris@1982 100 # -L$$PWD/sv-dependency-builds/win64-msvc/lib/debug \
Chris@1982 101 # -L$$PWD/sv-dependency-builds/win64-msvc/lib
Chris@1294 102 # }
Chris@1292 103 CONFIG(release) {
Chris@2202 104 LIBS += -NODEFAULTLIB:LIBCMT -Lrelease \
Chris@1827 105 -L$$PWD/sv-dependency-builds/win64-msvc/lib
Chris@1292 106 }
Chris@1292 107
Chris@2458 108 DEFINES += NOMINMAX _USE_MATH_DEFINES CAPNP_LITE HAVE_MEDIAFOUNDATION _HAS_STD_BYTE=0
Chris@1294 109
Chris@1839 110 QMAKE_CXXFLAGS_RELEASE += -fp:fast -gl
Chris@1839 111 QMAKE_LFLAGS_RELEASE += -ltcg
Chris@1292 112
Chris@2197 113 LIBS -= -lFLAC -lvorbis -lvorbisenc -lvorbisfile
Chris@1292 114
Chris@1292 115 # These have different names
Chris@1292 116 LIBS -= -lsord-0 -lserd-0
Chris@1292 117 LIBS += -lsord -lserd
Chris@1292 118
Chris@1292 119 # Don't have liblo
Chris@1292 120 DEFINES -= HAVE_LIBLO
Chris@1292 121 LIBS -= -llo
Chris@2458 122
Chris@2458 123 ##!!! WindowsApp seems to be win10-specific! can I avoid this?
Chris@1292 124
Chris@2458 125 LIBS += -lWindowsApp -lmfplat -lmfreadwrite -lmfuuid -lpropsys -ladvapi32 -lwinmm -lws2_32
Chris@1284 126 }
Chris@1284 127
Chris@1292 128 macx* {
Chris@1292 129
Chris@1292 130 # All Mac builds are 64-bit these days.
Chris@1292 131
Chris@2195 132 INCLUDEPATH += $$PWD/sv-dependency-builds/osx/include $$PWD/sv-dependency-builds/osx/include/opus
cannam@1830 133 LIBS += -L$$PWD/sv-dependency-builds/osx/lib -L$$PWD
Chris@1292 134
Chris@2106 135 QMAKE_CXXFLAGS_RELEASE += -O3 -ffast-math -flto
Chris@2106 136 QMAKE_LFLAGS_RELEASE += -O3 -flto
Chris@1295 137
Chris@1546 138 DEFINES += HAVE_COREAUDIO HAVE_VDSP
Chris@1292 139 LIBS += \
Chris@1292 140 -framework CoreAudio \
Chris@1292 141 -framework CoreMidi \
Chris@1292 142 -framework AudioUnit \
Chris@1292 143 -framework AudioToolbox \
Chris@1292 144 -framework CoreFoundation \
Chris@1292 145 -framework CoreServices \
Chris@1292 146 -framework Accelerate
Chris@1284 147 }
Chris@1284 148
Chris@1292 149 linux* {
Chris@1284 150
Chris@1292 151 message("Building without ./configure on Linux is unlikely to work")
Chris@1292 152 message("If you really want to try it, remove this from noconfig.pri")
Chris@1292 153 error("Refusing to build without ./configure first")
Chris@1292 154 }
Chris@1284 155