annotate vamp-client/qt/test.pro @ 295:de5dc40f1830

Include headers needed to compile with GCC 15's -std=gnu23 default ``` In file included from ../piper-vamp-cpp/vamp-json/VampJson.h:55, from ../piper-vamp-cpp/vamp-server/convert.cpp:36: ../piper-vamp-cpp/vamp-support/PluginHandleMapper.h:69:13: error: ‘uint32_t’ does not name a type 69 | typedef uint32_t Handle; | ^~~~~~~~ ../piper-vamp-cpp/vamp-support/PluginHandleMapper.h:39:1: note: ‘uint32_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’ 38 | #include "PluginOutputIdMapper.h" +++ |+#include <cstdint> 39 | ../piper-vamp-cpp/ext/json11/json11.cpp: In function ‘void json11::dump(const std::string&, std::string&)’: ../piper-vamp-cpp/ext/json11/json11.cpp:95:32: error: ‘uint8_t’ does not name a type 95 | } else if (static_cast<uint8_t>(ch) <= 0x1f) { | ^~~~~~~ ../piper-vamp-cpp/ext/json11/json11.cpp:25:1: note: ‘uint8_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’ 24 | #include <cmath> +++ |+#include <cstdint> 25 | #include <cstdlib> ``` Signed-off-by: Michel Lind <salimma@fedoraproject.org>
author Michel Lind <salimma@fedoraproject.org>
date Fri, 24 Jan 2025 11:38:28 -0600
parents 63e460e69347
children
rev   line source
cannam@150 1
cannam@150 2 TEMPLATE = app
cannam@150 3
cannam@269 4 CONFIG += qt stl c++11 c++14 exceptions console warn_on
cannam@150 5 QT -= xml network gui widgets
cannam@150 6
cannam@150 7 !win32 {
cannam@150 8 QMAKE_CXXFLAGS += -Werror
cannam@150 9 }
cannam@150 10
cannam@150 11 OBJECTS_DIR = ../o
cannam@150 12 MOC_DIR = ../o
cannam@150 13
cannam@150 14 VAMPSDK_DIR = ../../../vamp-plugin-sdk
cannam@150 15 PIPER_DIR = ../../../piper
cannam@150 16
cannam@251 17 QMAKE_CXXFLAGS = -I$$VAMPSDK_DIR -I/usr/local/include -I.. -I../..
cannam@150 18
cannam@250 19 LIBS += $$VAMPSDK_DIR/libvamp-hostsdk.a -L/usr/local/lib -lcapnp -lkj
cannam@150 20
cannam@150 21 # Using the "console" CONFIG flag above should ensure this happens for
cannam@150 22 # normal Windows builds, but this may be necessary when cross-compiling
cannam@150 23 win32-x-g++:QMAKE_LFLAGS += -Wl,-subsystem,console
cannam@150 24
cannam@150 25 macx*: CONFIG -= app_bundle
cannam@150 26
cannam@150 27 TARGET = test
cannam@150 28
cannam@150 29 SOURCES += \
cannam@150 30 test.cpp \
cannam@150 31 ../../vamp-capnp/piper-capnp.cpp
cannam@150 32
cannam@150 33 HEADERS += \
cannam@150 34 ProcessQtTransport.h \
cannam@208 35 PiperAutoPlugin.h \
cannam@150 36 ../CapnpRRClient.h \
cannam@150 37 ../Loader.h \
cannam@150 38 ../PluginClient.h \
cannam@208 39 ../PiperVampPlugin.h \
cannam@150 40 ../SynchronousTransport.h
cannam@150 41
cannam@150 42