comparison noconfig.pri @ 1292:0c82a10b5c3e project-file-rework

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