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