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
History | View | Annotate | Download (3.69 KB)
| 1 | 134:9fe9c52a40bb | cannam | |
|---|---|---|---|
| 2 | 411:da760c174b77 | Chris | win32-msvc* {
|
| 3 | # Necessary for WinRT header used to determine background colour |
||
| 4 | CONFIG += c++17 |
||
| 5 | } |
||
| 6 | !win32-msvc* {
|
||
| 7 | CONFIG += c++14 |
||
| 8 | } |
||
| 9 | 101:ddc288a7977e | Chris | |
| 10 | CONFIG += release |
||
| 11 | #CONFIG += debug |
||
| 12 | |||
| 13 | 108:debead5f6bf8 | Chris | PREFIX_PATH = /usr/local |
| 14 | |||
| 15 | 101:ddc288a7977e | Chris | DEFINES += NDEBUG BUILD_RELEASE |
| 16 | 103:519c6649cc68 | Chris | DEFINES += NO_TIMING NO_HIT_COUNTS |
| 17 | 101:ddc288a7977e | Chris | |
| 18 | DEFINES += HAVE_PIPER HAVE_PLUGIN_CHECKER_HELPER |
||
| 19 | |||
| 20 | # Full set of defines expected for all platforms when we have the |
||
| 21 | # sv-dependency-builds subrepo available to provide the dependencies. |
||
| 22 | |||
| 23 | DEFINES += \ |
||
| 24 | HAVE_BZ2 \ |
||
| 25 | HAVE_FFTW3 \ |
||
| 26 | HAVE_FFTW3F \ |
||
| 27 | HAVE_SNDFILE \ |
||
| 28 | HAVE_SAMPLERATE \ |
||
| 29 | HAVE_RUBBERBAND \ |
||
| 30 | HAVE_LIBLO \ |
||
| 31 | HAVE_MAD \ |
||
| 32 | HAVE_ID3TAG \ |
||
| 33 | 134:9fe9c52a40bb | cannam | HAVE_OPUS \ |
| 34 | 101:ddc288a7977e | Chris | HAVE_PORTAUDIO |
| 35 | |||
| 36 | # Default set of libs for the above. Config sections below may update |
||
| 37 | # these. |
||
| 38 | |||
| 39 | LIBS += \ |
||
| 40 | 108:debead5f6bf8 | Chris | -lbase \ |
| 41 | 101:ddc288a7977e | Chris | -lbz2 \ |
| 42 | 134:9fe9c52a40bb | cannam | -lrubberband \ |
| 43 | 101:ddc288a7977e | Chris | -lfftw3 \ |
| 44 | -lfftw3f \ |
||
| 45 | -lsndfile \ |
||
| 46 | -lFLAC \ |
||
| 47 | -logg \ |
||
| 48 | -lvorbis \ |
||
| 49 | -lvorbisenc \ |
||
| 50 | -lvorbisfile \ |
||
| 51 | 134:9fe9c52a40bb | cannam | -lopusfile \ |
| 52 | -lopus \ |
||
| 53 | 101:ddc288a7977e | Chris | -logg \ |
| 54 | -lmad \ |
||
| 55 | -lid3tag \ |
||
| 56 | -lportaudio \ |
||
| 57 | -lsamplerate \ |
||
| 58 | -lz \ |
||
| 59 | -lsord-0 \ |
||
| 60 | -lserd-0 \ |
||
| 61 | -llo \ |
||
| 62 | -lcapnp \ |
||
| 63 | -lkj |
||
| 64 | |||
| 65 | win32-g++ {
|
||
| 66 | |||
| 67 | # This config is currently used for 32-bit Windows builds. |
||
| 68 | |||
| 69 | 134:9fe9c52a40bb | cannam | INCLUDEPATH += $$PWD/sv-dependency-builds/win32-mingw/include $$PWD/sv-dependency-builds/win32-mingw/include/opus |
| 70 | 101:ddc288a7977e | Chris | |
| 71 | 108:debead5f6bf8 | Chris | LIBS += -Lrelease -L$$PWD/sv-dependency-builds/win32-mingw/lib |
| 72 | 101:ddc288a7977e | Chris | |
| 73 | 103:519c6649cc68 | Chris | DEFINES += NOMINMAX _USE_MATH_DEFINES CAPNP_LITE |
| 74 | 101:ddc288a7977e | Chris | |
| 75 | QMAKE_CXXFLAGS_RELEASE += -ffast-math |
||
| 76 | |||
| 77 | # Don't have liblo |
||
| 78 | DEFINES -= HAVE_LIBLO |
||
| 79 | LIBS -= -llo |
||
| 80 | 134:9fe9c52a40bb | cannam | |
| 81 | # (We don't have MediaFoundation support either, with this build sadly) |
||
| 82 | 101:ddc288a7977e | Chris | |
| 83 | 134:9fe9c52a40bb | cannam | LIBS += -lwinmm -lws2_32 |
| 84 | 101:ddc288a7977e | Chris | } |
| 85 | |||
| 86 | win32-msvc* {
|
||
| 87 | |||
| 88 | # This config is actually used only for 64-bit Windows builds. |
||
| 89 | # even though the qmake spec is still called win32-msvc*. If |
||
| 90 | # we want to do 32-bit builds with MSVC as well, then we'll |
||
| 91 | # need to add a way to distinguish the two. |
||
| 92 | |||
| 93 | 361:fe0e9a1ffeda | Chris | 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/ |
| 94 | 101:ddc288a7977e | Chris | |
| 95 | 134:9fe9c52a40bb | cannam | # This seems to be intruding even when we're supposed to be release |
| 96 | 101:ddc288a7977e | Chris | # CONFIG(debug) {
|
| 97 | # LIBS += -NODEFAULTLIB:MSVCRT -Ldebug \ |
||
| 98 | 108:debead5f6bf8 | Chris | # -L$$PWD/sv-dependency-builds/win64-msvc/lib/debug \ |
| 99 | # -L$$PWD/sv-dependency-builds/win64-msvc/lib |
||
| 100 | 101:ddc288a7977e | Chris | # } |
| 101 | CONFIG(release) {
|
||
| 102 | 134:9fe9c52a40bb | cannam | LIBS += -NODEFAULTLIB:LIBCMT -Lrelease \ |
| 103 | 108:debead5f6bf8 | Chris | -L$$PWD/sv-dependency-builds/win64-msvc/lib |
| 104 | 101:ddc288a7977e | Chris | } |
| 105 | |||
| 106 | 413:a40b7d7b4eed | Chris | DEFINES += NOMINMAX _USE_MATH_DEFINES CAPNP_LITE HAVE_MEDIAFOUNDATION _HAS_STD_BYTE=0 |
| 107 | 101:ddc288a7977e | Chris | |
| 108 | 294:f774c02f82f6 | Chris | QMAKE_CXXFLAGS_RELEASE += -fp:fast |
| 109 | 101:ddc288a7977e | Chris | |
| 110 | 134:9fe9c52a40bb | cannam | LIBS -= -lFLAC -lvorbis -lvorbisenc -lvorbisfile |
| 111 | 101:ddc288a7977e | Chris | |
| 112 | # These have different names |
||
| 113 | LIBS -= -lsord-0 -lserd-0 |
||
| 114 | LIBS += -lsord -lserd |
||
| 115 | |||
| 116 | # Don't have liblo |
||
| 117 | DEFINES -= HAVE_LIBLO |
||
| 118 | LIBS -= -llo |
||
| 119 | |||
| 120 | 462:dc2226fa0795 | Chris | LIBS += -lmfplat -lmfreadwrite -lmfuuid -lpropsys -ladvapi32 -lwinmm -lws2_32 |
| 121 | 101:ddc288a7977e | Chris | } |
| 122 | |||
| 123 | macx* {
|
||
| 124 | |||
| 125 | # All Mac builds are 64-bit these days. |
||
| 126 | |||
| 127 | 170:acaa4559b1d3 | Chris | INCLUDEPATH += $$PWD/sv-dependency-builds/osx/include $$PWD/sv-dependency-builds/osx/include/opus |
| 128 | LIBS += -L$$PWD/sv-dependency-builds/osx/lib -L$$PWD |
||
| 129 | |||
| 130 | 476:68f74e5042e5 | Chris | INCLUDEPATH += /usr/local/opt/boost/include $$PWD/../boost_1_74_0 |
| 131 | 101:ddc288a7977e | Chris | |
| 132 | 134:9fe9c52a40bb | cannam | QMAKE_CXXFLAGS_RELEASE += -O3 -ffast-math -flto |
| 133 | QMAKE_LFLAGS_RELEASE += -O3 -flto |
||
| 134 | 101:ddc288a7977e | Chris | |
| 135 | 447:1778edddeb0a | Chris | QMAKE_LFLAGS_RELEASE += -isysroot $$QMAKE_MAC_SDK_PATH |
| 136 | |||
| 137 | 103:519c6649cc68 | Chris | DEFINES += HAVE_COREAUDIO HAVE_VDSP |
| 138 | 101:ddc288a7977e | Chris | LIBS += \ |
| 139 | -framework CoreAudio \ |
||
| 140 | -framework CoreMidi \ |
||
| 141 | -framework AudioUnit \ |
||
| 142 | -framework AudioToolbox \ |
||
| 143 | -framework CoreFoundation \ |
||
| 144 | -framework CoreServices \ |
||
| 145 | -framework Accelerate |
||
| 146 | } |
||
| 147 | |||
| 148 | linux* {
|
||
| 149 | |||
| 150 | message("Building without ./configure on Linux is unlikely to work")
|
||
| 151 | message("If you really want to try it, remove this from noconfig.pri")
|
||
| 152 | error("Refusing to build without ./configure first")
|
||
| 153 | } |