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@548
|
63 INCLUDEPATH += $$PWD/sv-dependency-builds/win32-mingw/include $$PWD/sv-dependency-builds/win32-mingw/include/opus
|
Chris@525
|
64
|
Chris@650
|
65 INCLUDEPATH += /Libraries/boost_1_71_0 /Libraries/boost_1_69_0 $$PWD/../boost_1_69_0
|
Chris@555
|
66
|
Chris@536
|
67 LIBS += -Lrelease -L$$PWD/sv-dependency-builds/win32-mingw/lib
|
Chris@525
|
68
|
Chris@525
|
69 DEFINES += NOMINMAX _USE_MATH_DEFINES CAPNP_LITE
|
Chris@525
|
70
|
Chris@525
|
71 QMAKE_CXXFLAGS_RELEASE += -ffast-math
|
Chris@525
|
72
|
Chris@525
|
73 # Don't have liblo
|
Chris@525
|
74 DEFINES -= HAVE_LIBLO
|
Chris@525
|
75 LIBS -= -llo
|
Chris@525
|
76
|
Chris@540
|
77 # (We don't have MediaFoundation support either, with this build sadly)
|
Chris@540
|
78
|
Chris@525
|
79 LIBS += -lwinmm -lws2_32
|
Chris@525
|
80 }
|
Chris@525
|
81
|
Chris@525
|
82 win32-msvc* {
|
Chris@525
|
83
|
Chris@525
|
84 # This config is actually used only for 64-bit Windows builds.
|
Chris@525
|
85 # even though the qmake spec is still called win32-msvc*. If
|
Chris@525
|
86 # we want to do 32-bit builds with MSVC as well, then we'll
|
Chris@525
|
87 # need to add a way to distinguish the two.
|
Chris@525
|
88
|
Chris@540
|
89 INCLUDEPATH += $$PWD/sv-dependency-builds/win64-msvc/include $$PWD/sv-dependency-builds/win64-msvc/include/opus
|
Chris@525
|
90
|
Chris@651
|
91 INCLUDEPATH += /Libraries/boost_1_71_0 /Libraries/boost_1_69_0 $$PWD/../boost_1_69_0
|
Chris@555
|
92
|
Chris@525
|
93 ## This seems to be intruding even when we're supposed to be release
|
Chris@525
|
94 # CONFIG(debug) {
|
Chris@525
|
95 # LIBS += -NODEFAULTLIB:MSVCRT -Ldebug \
|
Chris@587
|
96 # -L$$PWD/sv-dependency-builds/win64-msvc/lib/debug \
|
Chris@587
|
97 # -L$$PWD/sv-dependency-builds/win64-msvc/lib
|
Chris@525
|
98 # }
|
Chris@525
|
99 CONFIG(release) {
|
Chris@565
|
100 LIBS += -NODEFAULTLIB:LIBCMT -Lrelease \
|
Chris@536
|
101 -L$$PWD/sv-dependency-builds/win64-msvc/lib
|
Chris@525
|
102 }
|
Chris@525
|
103
|
Chris@540
|
104 DEFINES += NOMINMAX _USE_MATH_DEFINES CAPNP_LITE HAVE_MEDIAFOUNDATION
|
Chris@525
|
105
|
Chris@587
|
106 QMAKE_CXXFLAGS_RELEASE += -fp:fast
|
Chris@587
|
107
|
Chris@540
|
108 LIBS -= -lFLAC -lvorbis -lvorbisenc -lvorbisfile
|
Chris@525
|
109
|
Chris@525
|
110 # These have different names
|
Chris@525
|
111 LIBS -= -lsord-0 -lserd-0
|
Chris@525
|
112 LIBS += -lsord -lserd
|
Chris@525
|
113
|
Chris@525
|
114 # Don't have liblo
|
Chris@525
|
115 DEFINES -= HAVE_LIBLO
|
Chris@525
|
116 LIBS -= -llo
|
Chris@525
|
117
|
Chris@540
|
118 LIBS += -lmfplat -lmfreadwrite -lmfuuid -lpropsys -ladvapi32 -lwinmm -lws2_32
|
Chris@525
|
119 }
|
Chris@525
|
120
|
Chris@525
|
121 macx* {
|
Chris@525
|
122
|
Chris@525
|
123 # All Mac builds are 64-bit these days.
|
Chris@525
|
124
|
Chris@540
|
125 INCLUDEPATH += $$PWD/sv-dependency-builds/osx/include $$PWD/sv-dependency-builds/osx/include/opus
|
Chris@558
|
126
|
Chris@558
|
127 INCLUDEPATH += /usr/local/opt/boost/include
|
Chris@558
|
128
|
Chris@536
|
129 LIBS += -L$$PWD/sv-dependency-builds/osx/lib -L$$PWD
|
Chris@525
|
130
|
Chris@540
|
131 QMAKE_CXXFLAGS_RELEASE += -O3 -ffast-math -flto
|
Chris@540
|
132 QMAKE_LFLAGS_RELEASE += -O3 -flto
|
Chris@525
|
133
|
Chris@525
|
134 DEFINES += HAVE_COREAUDIO HAVE_VDSP
|
Chris@525
|
135 LIBS += \
|
Chris@525
|
136 -framework CoreAudio \
|
Chris@525
|
137 -framework CoreMidi \
|
Chris@525
|
138 -framework AudioUnit \
|
Chris@525
|
139 -framework AudioToolbox \
|
Chris@525
|
140 -framework CoreFoundation \
|
Chris@525
|
141 -framework CoreServices \
|
Chris@525
|
142 -framework Accelerate
|
Chris@525
|
143 }
|
Chris@525
|
144
|
Chris@525
|
145 linux* {
|
Chris@525
|
146
|
Chris@525
|
147 message("Building without ./configure on Linux is unlikely to work")
|
Chris@525
|
148 message("If you really want to try it, remove this from noconfig.pri")
|
Chris@525
|
149 error("Refusing to build without ./configure first")
|
Chris@525
|
150 }
|
Chris@525
|
151
|