annotate noconfig.pri @ 2193:28feef0729c4 bqaudiostream

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