Mercurial > hg > sonic-visualiser
annotate convert.pro @ 1976:810a0b8f5472 c++14
Requiring c++14 is not going to work for Travis (because we want to support a Qt version too old to know about the c++14 config flag) or for our AppImage build (because we want to run on distros to old to support the relevant gcc ABI). So instead we try to confine the C++ standard selection to one place (config/noconfig) and revert to c++11 if the compiler is too old to know about c++14. All of the actual SV code remains c++11, and we assume we build against an older version of capnproto when we want to perform a c++11 build.
author | Chris Cannam |
---|---|
date | Fri, 31 Aug 2018 13:41:27 +0100 |
parents | 714f8dad57bc |
children | 555e3add86b2 |
rev | line source |
---|---|
Chris@1297 | 1 |
Chris@1297 | 2 TEMPLATE = app |
Chris@1297 | 3 |
Chris@1976 | 4 CONFIG += stl exceptions console warn_on |
Chris@1297 | 5 |
Chris@1297 | 6 CONFIG -= qt |
Chris@1297 | 7 |
Chris@1297 | 8 exists(config.pri) { |
Chris@1297 | 9 include(config.pri) |
Chris@1297 | 10 } |
Chris@1297 | 11 |
Chris@1297 | 12 !exists(config.pri) { |
Chris@1297 | 13 include(noconfig.pri) |
Chris@1297 | 14 |
Chris@1297 | 15 macx*: LIBS -= -framework CoreAudio -framework CoreMidi -framework AudioUnit -framework AudioToolbox -framework CoreFoundation -framework CoreServices -framework Accelerate -lbz2 -lz |
Chris@1297 | 16 } |
Chris@1297 | 17 |
Chris@1301 | 18 # Can't support this flag with the JSON11 and basen modules as they stand |
Chris@1301 | 19 QMAKE_CXXFLAGS -= -Werror |
Chris@1301 | 20 |
Chris@1297 | 21 # Using the "console" CONFIG flag above should ensure this happens for |
Chris@1297 | 22 # normal Windows builds, but this may be necessary when cross-compiling |
Chris@1297 | 23 win32-x-g++: QMAKE_LFLAGS += -Wl,-subsystem,console |
Chris@1297 | 24 |
Chris@1297 | 25 macx*: CONFIG -= app_bundle |
Chris@1297 | 26 |
Chris@1297 | 27 linux*: LIBS += -ldl |
Chris@1297 | 28 |
Chris@1297 | 29 TARGET = piper-convert |
Chris@1297 | 30 |
Chris@1297 | 31 OBJECTS_DIR = o |
Chris@1297 | 32 MOC_DIR = o |
Chris@1297 | 33 |
Chris@1560 | 34 INCLUDEPATH += piper-cpp piper-cpp/ext vamp-plugin-sdk |
Chris@1297 | 35 |
Chris@1297 | 36 include(vamp-plugin-sdk-files.pri) |
Chris@1297 | 37 |
Chris@1297 | 38 for (file, VAMP_SOURCES) { SOURCES += $$file } |
Chris@1297 | 39 for (file, VAMP_HEADERS) { HEADERS += $$file } |
Chris@1297 | 40 |
Chris@1297 | 41 HEADERS += \ |
Chris@1297 | 42 piper-cpp/vamp-capnp/piper.capnp.h \ |
Chris@1297 | 43 piper-cpp/vamp-capnp/VampnProto.h |
Chris@1297 | 44 |
Chris@1297 | 45 SOURCES += \ |
Chris@1297 | 46 piper-cpp/vamp-capnp/piper-capnp.cpp \ |
Chris@1560 | 47 piper-cpp/ext/json11/json11.cpp \ |
Chris@1297 | 48 piper-cpp/vamp-server/convert.cpp |