From 2d704cf7655d86d93e801dbef73c2e6c45dcf62e Mon Sep 17 00:00:00 2001 From: Martchus Date: Fri, 10 Jan 2020 18:01:37 +0100 Subject: [PATCH] Fix missing export macros --- CMakeLists.txt | 2 +- connector/syncthingservice.h | 4 +++- testhelper/helper.h | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 71ac40d..bad5133 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,7 +10,7 @@ set(META_APP_CATEGORIES "Network;FileTransfer") set(META_GUI_OPTIONAL false) set(META_VERSION_MAJOR 0) set(META_VERSION_MINOR 10) -set(META_VERSION_PATCH 5) +set(META_VERSION_PATCH 6) set(META_VERSION_EXACT_SONAME ON) set(META_ADD_DEFAULT_CPP_UNIT_TEST_APPLICATION ON) diff --git a/connector/syncthingservice.h b/connector/syncthingservice.h index eba1b6c..5b42e40 100644 --- a/connector/syncthingservice.h +++ b/connector/syncthingservice.h @@ -1,6 +1,8 @@ #if defined(LIB_SYNCTHING_CONNECTOR_SUPPORT_SYSTEMD) && !defined(DATA_SYNCTHINGSERVICE_H) #define DATA_SYNCTHINGSERVICE_H +#include "./global.h" + #include #include @@ -35,7 +37,7 @@ typedef QList ManagerDBusUnitFileChangeList; enum class SystemdScope { System, User }; -class SyncthingService : public QObject { +class LIB_SYNCTHING_CONNECTOR_EXPORT SyncthingService : public QObject { Q_OBJECT Q_PROPERTY(QString unitName READ unitName WRITE setUnitName NOTIFY unitNameChanged) Q_PROPERTY(bool systemdAvailable READ isSystemdAvailable NOTIFY systemdAvailableChanged) diff --git a/testhelper/helper.h b/testhelper/helper.h index eaf4f77..4e3a17b 100644 --- a/testhelper/helper.h +++ b/testhelper/helper.h @@ -1,6 +1,8 @@ #ifndef SYNCTHINGTESTHELPER_H #define SYNCTHINGTESTHELPER_H +#include "./global.h" + #include #ifndef SYNCTHINGTESTHELPER_FOR_CLI @@ -50,7 +52,7 @@ inline std::ostream &operator<<(std::ostream &o, const QSet &qstringset namespace CppUtilities { -extern double timeoutFactor; +extern double SYNCTHINGTESTHELPER_EXPORT timeoutFactor; /*! * \brief Waits for the \a duration specified in ms while keeping the event loop running.