annotate server.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@1278 1
Chris@1278 2 TEMPLATE = app
Chris@1278 3
Chris@1976 4 CONFIG += stl exceptions console warn_on
cannam@1285 5 CONFIG -= qt
Chris@1278 6
Chris@1278 7 exists(config.pri) {
Chris@1278 8 include(config.pri)
Chris@1278 9 }
Chris@1278 10
Chris@1279 11 !exists(config.pri) {
Chris@1279 12 include(noconfig.pri)
cannam@1289 13
cannam@1289 14 macx*: LIBS -= -framework CoreAudio -framework CoreMidi -framework AudioUnit -framework AudioToolbox -framework CoreFoundation -framework CoreServices -framework Accelerate -lbz2 -lz
Chris@1278 15 }
Chris@1278 16
Chris@1301 17 # Can't support this flag with the JSON11 and basen modules as they stand
Chris@1301 18 QMAKE_CXXFLAGS -= -Werror
Chris@1301 19
Chris@1278 20 # Using the "console" CONFIG flag above should ensure this happens for
Chris@1278 21 # normal Windows builds, but this may be necessary when cross-compiling
cannam@1285 22 win32-x-g++: QMAKE_LFLAGS += -Wl,-subsystem,console
cannam@1285 23
cannam@1285 24 macx*: CONFIG -= app_bundle
Chris@1278 25
Chris@1279 26 linux*: LIBS += -ldl
Chris@1278 27
Chris@1300 28 TARGET = piper-vamp-simple-server
Chris@1278 29
Chris@1278 30 OBJECTS_DIR = o
Chris@1278 31 MOC_DIR = o
Chris@1278 32
Chris@1560 33 INCLUDEPATH += piper-cpp piper-cpp/ext vamp-plugin-sdk
Chris@1279 34
Chris@1279 35 include(vamp-plugin-sdk-files.pri)
Chris@1279 36
cannam@1285 37 for (file, VAMP_SOURCES) { SOURCES += $$file }
cannam@1285 38 for (file, VAMP_HEADERS) { HEADERS += $$file }
Chris@1278 39
Chris@1278 40 HEADERS += \
Chris@1278 41 piper-cpp/vamp-capnp/piper.capnp.h \
Chris@1278 42 piper-cpp/vamp-capnp/VampnProto.h
Chris@1278 43
Chris@1278 44 SOURCES += \
Chris@1278 45 piper-cpp/vamp-capnp/piper-capnp.cpp \
Chris@1560 46 piper-cpp/ext/json11/json11.cpp \
Chris@1300 47 piper-cpp/vamp-server/simple-server.cpp