To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / noconfig.pri @ 361:fe0e9a1ffeda
History | View | Annotate | Download (3.47 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_71_0 /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 |
| 103 |
|
| 104 |
LIBS -= -lFLAC -lvorbis -lvorbisenc -lvorbisfile |
| 105 |
|
| 106 |
# These have different names |
| 107 |
LIBS -= -lsord-0 -lserd-0 |
| 108 |
LIBS += -lsord -lserd |
| 109 |
|
| 110 |
# Don't have liblo |
| 111 |
DEFINES -= HAVE_LIBLO |
| 112 |
LIBS -= -llo |
| 113 |
|
| 114 |
LIBS += -lmfplat -lmfreadwrite -lmfuuid -lpropsys -ladvapi32 -lwinmm -lws2_32 |
| 115 |
} |
| 116 |
|
| 117 |
macx* {
|
| 118 |
|
| 119 |
# All Mac builds are 64-bit these days. |
| 120 |
|
| 121 |
INCLUDEPATH += $$PWD/sv-dependency-builds/osx/include $$PWD/sv-dependency-builds/osx/include/opus |
| 122 |
LIBS += -L$$PWD/sv-dependency-builds/osx/lib -L$$PWD |
| 123 |
|
| 124 |
INCLUDEPATH += /usr/local/opt/boost/include |
| 125 |
|
| 126 |
QMAKE_CXXFLAGS_RELEASE += -O3 -ffast-math -flto |
| 127 |
QMAKE_LFLAGS_RELEASE += -O3 -flto |
| 128 |
|
| 129 |
DEFINES += HAVE_COREAUDIO HAVE_VDSP |
| 130 |
LIBS += \ |
| 131 |
-framework CoreAudio \ |
| 132 |
-framework CoreMidi \ |
| 133 |
-framework AudioUnit \ |
| 134 |
-framework AudioToolbox \ |
| 135 |
-framework CoreFoundation \ |
| 136 |
-framework CoreServices \ |
| 137 |
-framework Accelerate |
| 138 |
} |
| 139 |
|
| 140 |
linux* {
|
| 141 |
|
| 142 |
message("Building without ./configure on Linux is unlikely to work")
|
| 143 |
message("If you really want to try it, remove this from noconfig.pri")
|
| 144 |
error("Refusing to build without ./configure first")
|
| 145 |
} |
| 146 |
|