comparison noconfig.pri @ 288:fd4a6183482f kapoor_1202

Merge from branch piper-nopiper. The next release will be based on this.
author Chris Cannam
date Fri, 02 Dec 2016 10:04:44 +0000
parents 7ed00474dfbb
children e16e4cda23b9
comparison
equal deleted inserted replaced
259:9e7d180be225 288:fd4a6183482f
1
2 CONFIG += release
3
4 #CONFIG -= release
5 #CONFIG += debug
6
7 DEFINES += NDEBUG BUILD_RELEASE
8 DEFINES += NO_TIMING
9
10 # Full set of defines expected for all platforms when we have the
11 # sv-dependency-builds subrepo available to provide the dependencies.
12
13 DEFINES += \
14 HAVE_BZ2 \
15 HAVE_FFTW3 \
16 HAVE_FFTW3F \
17 HAVE_SNDFILE \
18 HAVE_SAMPLERATE \
19 HAVE_MAD \
20 HAVE_ID3TAG
21
22 # Default set of libs for the above. Config sections below may update
23 # these.
24
25 LIBS += \
26 -lbz2 \
27 -lrubberband \
28 -lfftw3 \
29 -lfftw3f \
30 -lsndfile \
31 -lFLAC \
32 -logg \
33 -lvorbis \
34 -lvorbisenc \
35 -lvorbisfile \
36 -logg \
37 -lmad \
38 -lid3tag \
39 -lsamplerate \
40 -lz \
41 -lsord-0 \
42 -lserd-0
43
44 win32-g++ {
45
46 # This config is currently used for 32-bit Windows builds.
47
48 INCLUDEPATH += sv-dependency-builds/win32-mingw/include
49
50 LIBS += -Lrelease -Lsv-dependency-builds/win32-mingw/lib -L../sonic-annotator/sv-dependency-builds/win32-mingw/lib
51
52 DEFINES += NOMINMAX _USE_MATH_DEFINES USE_OWN_ALIGNED_MALLOC CAPNP_LITE
53
54 QMAKE_CXXFLAGS_RELEASE += -ffast-math
55
56 LIBS += -lwinmm -lws2_32
57 }
58
59 win32-msvc* {
60
61 # This config is actually used only for 64-bit Windows builds.
62 # even though the qmake spec is still called win32-msvc*. If
63 # we want to do 32-bit builds with MSVC as well, then we'll
64 # need to add a way to distinguish the two.
65
66 INCLUDEPATH += sv-dependency-builds/win64-msvc/include
67
68 CONFIG(release) {
69 LIBS += -Lrelease \
70 -L../sonic-annotator/sv-dependency-builds/win64-msvc/lib
71 }
72
73 DEFINES += NOMINMAX _USE_MATH_DEFINES USE_OWN_ALIGNED_MALLOC
74
75 QMAKE_CXXFLAGS_RELEASE += -fp:fast
76
77 # No Ogg/FLAC support in the sndfile build on this platform yet
78 LIBS -= -lFLAC -logg -lvorbis -lvorbisenc -lvorbisfile
79
80 # These have different names
81 LIBS -= -lsord-0 -lserd-0
82 LIBS += -lsord -lserd
83
84 LIBS += -ladvapi32 -lwinmm -lws2_32
85 }
86
87 macx* {
88
89 # All Mac builds are 64-bit these days.
90
91 INCLUDEPATH += sv-dependency-builds/osx/include
92 LIBS += -Lsv-dependency-builds/osx/lib
93
94 QMAKE_CXXFLAGS_RELEASE += -ffast-math
95
96 DEFINES += MALLOC_IS_ALIGNED HAVE_VDSP
97 LIBS += \
98 -framework CoreAudio \
99 -framework CoreMidi \
100 -framework AudioUnit \
101 -framework AudioToolbox \
102 -framework CoreFoundation \
103 -framework CoreServices \
104 -framework Accelerate
105 }
106
107 linux* {
108
109 message("Building without ./configure on Linux is unlikely to work")
110 message("If you really want to try it, remove this from noconfig.pri")
111 error("Refusing to build without ./configure first")
112 }
113