To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / noconfig.pri @ 476:68f74e5042e5

History | View | Annotate | Download (3.69 KB)

1

    
2
win32-msvc* {
3
    # Necessary for WinRT header used to determine background colour
4
    CONFIG += c++17
5
}
6
!win32-msvc* {
7
    CONFIG += c++14
8
}
9

    
10
CONFIG += release
11
#CONFIG += debug
12

    
13
PREFIX_PATH = /usr/local
14

    
15
DEFINES += NDEBUG BUILD_RELEASE
16
DEFINES += NO_TIMING NO_HIT_COUNTS
17

    
18
DEFINES += HAVE_PIPER HAVE_PLUGIN_CHECKER_HELPER
19

    
20
# Full set of defines expected for all platforms when we have the
21
# sv-dependency-builds subrepo available to provide the dependencies.
22

    
23
DEFINES += \
24
        HAVE_BZ2 \
25
	HAVE_FFTW3 \
26
	HAVE_FFTW3F \
27
	HAVE_SNDFILE \
28
	HAVE_SAMPLERATE \
29
	HAVE_RUBBERBAND \
30
	HAVE_LIBLO \
31
	HAVE_MAD \
32
	HAVE_ID3TAG \
33
        HAVE_OPUS \
34
	HAVE_PORTAUDIO
35

    
36
# Default set of libs for the above. Config sections below may update
37
# these.
38

    
39
LIBS += \
40
        -lbase \
41
        -lbz2 \
42
        -lrubberband \
43
	-lfftw3 \
44
	-lfftw3f \
45
	-lsndfile \
46
	-lFLAC \
47
	-logg \
48
	-lvorbis \
49
	-lvorbisenc \
50
	-lvorbisfile \
51
        -lopusfile \
52
        -lopus \
53
	-logg \
54
	-lmad \
55
	-lid3tag \
56
	-lportaudio \
57
	-lsamplerate \
58
	-lz \
59
	-lsord-0 \
60
	-lserd-0 \
61
	-llo \
62
	-lcapnp \
63
	-lkj
64

    
65
win32-g++ {
66

    
67
    # This config is currently used for 32-bit Windows builds.
68

    
69
    INCLUDEPATH += $$PWD/sv-dependency-builds/win32-mingw/include $$PWD/sv-dependency-builds/win32-mingw/include/opus
70

    
71
    LIBS += -Lrelease -L$$PWD/sv-dependency-builds/win32-mingw/lib
72

    
73
    DEFINES += NOMINMAX _USE_MATH_DEFINES CAPNP_LITE
74

    
75
    QMAKE_CXXFLAGS_RELEASE += -ffast-math
76

    
77
    # Don't have liblo
78
    DEFINES -= HAVE_LIBLO
79
    LIBS -= -llo
80

    
81
    # (We don't have MediaFoundation support either, with this build sadly)
82
    
83
    LIBS += -lwinmm -lws2_32 
84
}
85

    
86
win32-msvc* {
87

    
88
    # This config is actually used only for 64-bit Windows builds.
89
    # even though the qmake spec is still called win32-msvc*. If
90
    # we want to do 32-bit builds with MSVC as well, then we'll
91
    # need to add a way to distinguish the two.
92
    
93
    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/
94

    
95
    # This seems to be intruding even when we're supposed to be release
96
#    CONFIG(debug) {
97
#        LIBS += -NODEFAULTLIB:MSVCRT -Ldebug \
98
#            -L$$PWD/sv-dependency-builds/win64-msvc/lib/debug \
99
#            -L$$PWD/sv-dependency-builds/win64-msvc/lib
100
#    }
101
    CONFIG(release) {
102
        LIBS += -NODEFAULTLIB:LIBCMT -Lrelease \
103
            -L$$PWD/sv-dependency-builds/win64-msvc/lib
104
    }
105

    
106
    DEFINES += NOMINMAX _USE_MATH_DEFINES CAPNP_LITE HAVE_MEDIAFOUNDATION _HAS_STD_BYTE=0
107

    
108
    QMAKE_CXXFLAGS_RELEASE += -fp:fast
109

    
110
    LIBS -= -lFLAC -lvorbis -lvorbisenc -lvorbisfile
111

    
112
    # These have different names
113
    LIBS -= -lsord-0 -lserd-0
114
    LIBS += -lsord -lserd
115

    
116
    # Don't have liblo
117
    DEFINES -= HAVE_LIBLO
118
    LIBS -= -llo
119
    
120
    LIBS += -lmfplat -lmfreadwrite -lmfuuid -lpropsys -ladvapi32 -lwinmm -lws2_32
121
}
122

    
123
macx* {
124

    
125
    # All Mac builds are 64-bit these days.
126

    
127
    INCLUDEPATH += $$PWD/sv-dependency-builds/osx/include $$PWD/sv-dependency-builds/osx/include/opus
128
    LIBS += -L$$PWD/sv-dependency-builds/osx/lib -L$$PWD
129

    
130
    INCLUDEPATH += /usr/local/opt/boost/include $$PWD/../boost_1_74_0
131

    
132
    QMAKE_CXXFLAGS_RELEASE += -O3 -ffast-math -flto
133
    QMAKE_LFLAGS_RELEASE += -O3 -flto
134

    
135
    QMAKE_LFLAGS_RELEASE += -isysroot $$QMAKE_MAC_SDK_PATH
136

    
137
    DEFINES += HAVE_COREAUDIO HAVE_VDSP
138
    LIBS += \
139
        -framework CoreAudio \
140
	-framework CoreMidi \
141
	-framework AudioUnit \
142
	-framework AudioToolbox \
143
	-framework CoreFoundation \
144
	-framework CoreServices \
145
	-framework Accelerate
146
}
147

    
148
linux* {
149

    
150
    message("Building without ./configure on Linux is unlikely to work")
151
    message("If you really want to try it, remove this from noconfig.pri")
152
    error("Refusing to build without ./configure first")
153
}
154