Mercurial > hg > sonic-visualiser
comparison noconfig.pri @ 1304:6e47bd2263e2 piper
Merge from branch project-file-rework
author | Chris Cannam |
---|---|
date | Fri, 28 Oct 2016 15:19:12 +0100 |
parents | 9027d12841af |
children | a5721463e2f3 |
comparison
equal
deleted
inserted
replaced
1282:5b4f4de87892 | 1304:6e47bd2263e2 |
---|---|
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_RUBBERBAND \ | |
20 HAVE_LIBLO \ | |
21 HAVE_MAD \ | |
22 HAVE_ID3TAG \ | |
23 HAVE_PORTAUDIO | |
24 | |
25 # Default set of libs for the above. Config sections below may update | |
26 # these. | |
27 | |
28 LIBS += \ | |
29 -lbz2 \ | |
30 -lrubberband \ | |
31 -lfftw3 \ | |
32 -lfftw3f \ | |
33 -lsndfile \ | |
34 -lFLAC \ | |
35 -logg \ | |
36 -lvorbis \ | |
37 -lvorbisenc \ | |
38 -lvorbisfile \ | |
39 -logg \ | |
40 -lmad \ | |
41 -lid3tag \ | |
42 -lportaudio \ | |
43 -lsamplerate \ | |
44 -lz \ | |
45 -lsord-0 \ | |
46 -lserd-0 \ | |
47 -llo \ | |
48 -lcapnp \ | |
49 -lkj | |
50 | |
51 win32-g++ { | |
52 | |
53 # This config is currently used for 32-bit Windows builds. | |
54 | |
55 INCLUDEPATH += sv-dependency-builds/win32-mingw/include | |
56 | |
57 LIBS += -Lrelease -Lsv-dependency-builds/win32-mingw/lib -L../sonic-visualiser/sv-dependency-builds/win32-mingw/lib | |
58 | |
59 DEFINES += NOMINMAX _USE_MATH_DEFINES USE_OWN_ALIGNED_MALLOC CAPNP_LITE | |
60 | |
61 QMAKE_CXXFLAGS_RELEASE += -ffast-math | |
62 | |
63 # Don't have liblo | |
64 DEFINES -= HAVE_LIBLO | |
65 LIBS -= -llo | |
66 | |
67 LIBS += -lwinmm -lws2_32 | |
68 } | |
69 | |
70 win32-msvc* { | |
71 | |
72 # This config is actually used only for 64-bit Windows builds. | |
73 # even though the qmake spec is still called win32-msvc*. If | |
74 # we want to do 32-bit builds with MSVC as well, then we'll | |
75 # need to add a way to distinguish the two. | |
76 | |
77 INCLUDEPATH += sv-dependency-builds/win64-msvc/include | |
78 | |
79 ## This seems to be intruding even when we're supposed to be release | |
80 # CONFIG(debug) { | |
81 # LIBS += -NODEFAULTLIB:MSVCRT -Ldebug \ | |
82 # -L../sonic-visualiser/sv-dependency-builds/win64-msvc/lib/debug \ | |
83 # -L../sonic-visualiser/sv-dependency-builds/win64-msvc/lib | |
84 # } | |
85 CONFIG(release) { | |
86 LIBS += -Lrelease \ | |
87 -L../sonic-visualiser/sv-dependency-builds/win64-msvc/lib | |
88 } | |
89 | |
90 DEFINES += NOMINMAX _USE_MATH_DEFINES USE_OWN_ALIGNED_MALLOC CAPNP_LITE | |
91 | |
92 QMAKE_CXXFLAGS_RELEASE += -fp:fast | |
93 | |
94 # No Ogg/FLAC support in the sndfile build on this platform yet | |
95 LIBS -= -lFLAC -logg -lvorbis -lvorbisenc -lvorbisfile | |
96 | |
97 # These have different names | |
98 LIBS -= -lsord-0 -lserd-0 | |
99 LIBS += -lsord -lserd | |
100 | |
101 # Don't have liblo | |
102 DEFINES -= HAVE_LIBLO | |
103 LIBS -= -llo | |
104 | |
105 LIBS += -ladvapi32 -lwinmm -lws2_32 | |
106 } | |
107 | |
108 macx* { | |
109 | |
110 # All Mac builds are 64-bit these days. | |
111 | |
112 INCLUDEPATH += sv-dependency-builds/osx/include | |
113 LIBS += -Lsv-dependency-builds/osx/lib | |
114 | |
115 QMAKE_CXXFLAGS_RELEASE += -ffast-math | |
116 | |
117 DEFINES += HAVE_COREAUDIO MALLOC_IS_ALIGNED HAVE_VDSP | |
118 LIBS += \ | |
119 -framework CoreAudio \ | |
120 -framework CoreMidi \ | |
121 -framework AudioUnit \ | |
122 -framework AudioToolbox \ | |
123 -framework CoreFoundation \ | |
124 -framework CoreServices \ | |
125 -framework Accelerate | |
126 } | |
127 | |
128 linux* { | |
129 | |
130 message("Building without ./configure on Linux is unlikely to work") | |
131 message("If you really want to try it, remove this from noconfig.pri") | |
132 error("Refusing to build without ./configure first") | |
133 } | |
134 |