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