annotate noconfig.pri @ 1294:0e0370b84040 project-file-rework

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