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 @ 177:237f00189f5e

History | View | Annotate | Download (3.48 KB)

1

    
2
CONFIG += c++14
3

    
4
CONFIG += release
5
#CONFIG += debug
6

    
7
PREFIX_PATH = /usr/local
8

    
9
DEFINES += NDEBUG BUILD_RELEASE
10
DEFINES += NO_TIMING NO_HIT_COUNTS
11

    
12
DEFINES += HAVE_PIPER HAVE_PLUGIN_CHECKER_HELPER
13

    
14
# Full set of defines expected for all platforms when we have the
15
# sv-dependency-builds subrepo available to provide the dependencies.
16

    
17
DEFINES += \
18
        HAVE_BZ2 \
19
	HAVE_FFTW3 \
20
	HAVE_FFTW3F \
21
	HAVE_SNDFILE \
22
	HAVE_SAMPLERATE \
23
	HAVE_RUBBERBAND \
24
	HAVE_LIBLO \
25
	HAVE_MAD \
26
	HAVE_ID3TAG \
27
        HAVE_OPUS \
28
	HAVE_PORTAUDIO
29

    
30
# Default set of libs for the above. Config sections below may update
31
# these.
32

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

    
59
win32-g++ {
60

    
61
    # This config is currently used for 32-bit Windows builds.
62

    
63
    INCLUDEPATH += $$PWD/sv-dependency-builds/win32-mingw/include $$PWD/sv-dependency-builds/win32-mingw/include/opus
64

    
65
    LIBS += -Lrelease -L$$PWD/sv-dependency-builds/win32-mingw/lib
66

    
67
    DEFINES += NOMINMAX _USE_MATH_DEFINES CAPNP_LITE
68

    
69
    QMAKE_CXXFLAGS_RELEASE += -ffast-math
70

    
71
    # Don't have liblo
72
    DEFINES -= HAVE_LIBLO
73
    LIBS -= -llo
74

    
75
    # (We don't have MediaFoundation support either, with this build sadly)
76
    
77
    LIBS += -lwinmm -lws2_32 
78
}
79

    
80
win32-msvc* {
81

    
82
    # This config is actually used only for 64-bit Windows builds.
83
    # even though the qmake spec is still called win32-msvc*. If
84
    # we want to do 32-bit builds with MSVC as well, then we'll
85
    # need to add a way to distinguish the two.
86
    
87
    INCLUDEPATH += $$PWD/sv-dependency-builds/win64-msvc/include $$PWD/sv-dependency-builds/win64-msvc/include/opus /Libraries/boost_1_69_0 $$PWD/../boost_1_69_0/
88

    
89
    # This seems to be intruding even when we're supposed to be release
90
#    CONFIG(debug) {
91
#        LIBS += -NODEFAULTLIB:MSVCRT -Ldebug \
92
#            -L$$PWD/sv-dependency-builds/win64-msvc/lib/debug \
93
#            -L$$PWD/sv-dependency-builds/win64-msvc/lib
94
#    }
95
    CONFIG(release) {
96
        LIBS += -NODEFAULTLIB:LIBCMT -Lrelease \
97
            -L$$PWD/sv-dependency-builds/win64-msvc/lib
98
    }
99

    
100
    DEFINES += NOMINMAX _USE_MATH_DEFINES CAPNP_LITE HAVE_MEDIAFOUNDATION
101

    
102
    QMAKE_CXXFLAGS_RELEASE += -fp:fast -gl
103
    QMAKE_LFLAGS_RELEASE += -ltcg
104

    
105
    LIBS -= -lFLAC -lvorbis -lvorbisenc -lvorbisfile
106

    
107
    # These have different names
108
    LIBS -= -lsord-0 -lserd-0
109
    LIBS += -lsord -lserd
110

    
111
    # Don't have liblo
112
    DEFINES -= HAVE_LIBLO
113
    LIBS -= -llo
114
    
115
    LIBS += -lmfplat -lmfreadwrite -lmfuuid -lpropsys -ladvapi32 -lwinmm -lws2_32
116
}
117

    
118
macx* {
119

    
120
    # All Mac builds are 64-bit these days.
121

    
122
    INCLUDEPATH += $$PWD/sv-dependency-builds/osx/include $$PWD/sv-dependency-builds/osx/include/opus
123
    LIBS += -L$$PWD/sv-dependency-builds/osx/lib -L$$PWD
124

    
125
    INCLUDEPATH += /usr/local/opt/boost/include
126

    
127
    QMAKE_CXXFLAGS_RELEASE += -O3 -ffast-math -flto
128
    QMAKE_LFLAGS_RELEASE += -O3 -flto
129

    
130
    DEFINES += HAVE_COREAUDIO HAVE_VDSP
131
    LIBS += \
132
        -framework CoreAudio \
133
	-framework CoreMidi \
134
	-framework AudioUnit \
135
	-framework AudioToolbox \
136
	-framework CoreFoundation \
137
	-framework CoreServices \
138
	-framework Accelerate
139
}
140

    
141
linux* {
142

    
143
    message("Building without ./configure on Linux is unlikely to work")
144
    message("If you really want to try it, remove this from noconfig.pri")
145
    error("Refusing to build without ./configure first")
146
}
147