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