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 @ 101:ddc288a7977e

History | View | Annotate | Download (3.08 KB)

1

    
2
CONFIG += release
3

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

    
7
DEFINES += NDEBUG BUILD_RELEASE
8
DEFINES += NO_TIMING
9

    
10
DEFINES += HAVE_PIPER HAVE_PLUGIN_CHECKER_HELPER
11

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

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

    
27
# Default set of libs for the above. Config sections below may update
28
# these.
29

    
30
LIBS += \
31
        -lbz2 \
32
	-lrubberband \
33
	-lfftw3 \
34
	-lfftw3f \
35
	-lsndfile \
36
	-lFLAC \
37
	-logg \
38
	-lvorbis \
39
	-lvorbisenc \
40
	-lvorbisfile \
41
	-logg \
42
	-lmad \
43
	-lid3tag \
44
	-lportaudio \
45
	-lsamplerate \
46
	-lz \
47
	-lsord-0 \
48
	-lserd-0 \
49
	-llo \
50
	-lcapnp \
51
	-lkj
52

    
53
win32-g++ {
54

    
55
    # This config is currently used for 32-bit Windows builds.
56

    
57
    INCLUDEPATH += sv-dependency-builds/win32-mingw/include
58

    
59
    LIBS += -Lrelease -Lsv-dependency-builds/win32-mingw/lib -L../sonic-visualiser/sv-dependency-builds/win32-mingw/lib
60

    
61
    DEFINES += NOMINMAX _USE_MATH_DEFINES USE_OWN_ALIGNED_MALLOC CAPNP_LITE
62

    
63
    QMAKE_CXXFLAGS_RELEASE += -ffast-math
64

    
65
    # Don't have liblo
66
    DEFINES -= HAVE_LIBLO
67
    LIBS -= -llo
68
    
69
    LIBS += -lwinmm -lws2_32
70
}
71

    
72
win32-msvc* {
73

    
74
    # This config is actually used only for 64-bit Windows builds.
75
    # even though the qmake spec is still called win32-msvc*. If
76
    # we want to do 32-bit builds with MSVC as well, then we'll
77
    # need to add a way to distinguish the two.
78
    
79
    INCLUDEPATH += sv-dependency-builds/win64-msvc/include
80

    
81
## This seems to be intruding even when we're supposed to be release
82
#    CONFIG(debug) {
83
#        LIBS += -NODEFAULTLIB:MSVCRT -Ldebug \
84
#            -L../sonic-visualiser/sv-dependency-builds/win64-msvc/lib/debug \
85
#            -L../sonic-visualiser/sv-dependency-builds/win64-msvc/lib
86
#    }
87
    CONFIG(release) {
88
        LIBS += -Lrelease \
89
            -L../sonic-visualiser/sv-dependency-builds/win64-msvc/lib
90
    }
91

    
92
    DEFINES += NOMINMAX _USE_MATH_DEFINES USE_OWN_ALIGNED_MALLOC CAPNP_LITE
93

    
94
    QMAKE_CXXFLAGS_RELEASE += -fp:fast
95

    
96
    # No Ogg/FLAC support in the sndfile build on this platform yet
97
    LIBS -= -lFLAC -logg -lvorbis -lvorbisenc -lvorbisfile
98

    
99
    # These have different names
100
    LIBS -= -lsord-0 -lserd-0
101
    LIBS += -lsord -lserd
102

    
103
    # Don't have liblo
104
    DEFINES -= HAVE_LIBLO
105
    LIBS -= -llo
106
    
107
    LIBS += -ladvapi32 -lwinmm -lws2_32
108
}
109

    
110
macx* {
111

    
112
    # All Mac builds are 64-bit these days.
113

    
114
    INCLUDEPATH += sv-dependency-builds/osx/include
115
    LIBS += -Lsv-dependency-builds/osx/lib
116

    
117
    QMAKE_CXXFLAGS_RELEASE += -ffast-math
118

    
119
    DEFINES += HAVE_COREAUDIO MALLOC_IS_ALIGNED HAVE_VDSP
120
    LIBS += \
121
        -framework CoreAudio \
122
	-framework CoreMidi \
123
	-framework AudioUnit \
124
	-framework AudioToolbox \
125
	-framework CoreFoundation \
126
	-framework CoreServices \
127
	-framework Accelerate
128
}
129

    
130
linux* {
131

    
132
    message("Building without ./configure on Linux is unlikely to work")
133
    message("If you really want to try it, remove this from noconfig.pri")
134
    error("Refusing to build without ./configure first")
135
}
136