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 @ 108:debead5f6bf8

History | View | Annotate | Download (3.02 KB)

1

    
2
CONFIG += release
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_PORTAUDIO
28

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

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

    
56
win32-g++ {
57

    
58
    # This config is currently used for 32-bit Windows builds.
59

    
60
    INCLUDEPATH += $$PWD/sv-dependency-builds/win32-mingw/include
61

    
62
    LIBS += -Lrelease -L$$PWD/sv-dependency-builds/win32-mingw/lib
63

    
64
    DEFINES += NOMINMAX _USE_MATH_DEFINES CAPNP_LITE
65

    
66
    QMAKE_CXXFLAGS_RELEASE += -ffast-math
67

    
68
    # Don't have liblo
69
    DEFINES -= HAVE_LIBLO
70
    LIBS -= -llo
71
    
72
    LIBS += -lwinmm -lws2_32
73
}
74

    
75
win32-msvc* {
76

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

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

    
95
    DEFINES += NOMINMAX _USE_MATH_DEFINES CAPNP_LITE
96

    
97
    QMAKE_CXXFLAGS_RELEASE += -fp:fast
98

    
99
    # No Ogg/FLAC support in the sndfile build on this platform yet
100
    LIBS -= -lFLAC -logg -lvorbis -lvorbisenc -lvorbisfile
101

    
102
    # These have different names
103
    LIBS -= -lsord-0 -lserd-0
104
    LIBS += -lsord -lserd
105

    
106
    # Don't have liblo
107
    DEFINES -= HAVE_LIBLO
108
    LIBS -= -llo
109
    
110
    LIBS += -ladvapi32 -lwinmm -lws2_32
111
}
112

    
113
macx* {
114

    
115
    # All Mac builds are 64-bit these days.
116

    
117
    INCLUDEPATH += $$PWD/sv-dependency-builds/osx/include
118
    LIBS += -L$$PWD/sv-dependency-builds/osx/lib -L$$PWD
119

    
120
    QMAKE_CXXFLAGS_RELEASE += -O3 -ffast-math
121

    
122
    DEFINES += HAVE_COREAUDIO HAVE_VDSP
123
    LIBS += \
124
        -framework CoreAudio \
125
	-framework CoreMidi \
126
	-framework AudioUnit \
127
	-framework AudioToolbox \
128
	-framework CoreFoundation \
129
	-framework CoreServices \
130
	-framework Accelerate
131
}
132

    
133
linux* {
134

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