Fix exporting QtSingleApplication

remotes/origin/Falkon/3.0
David Rosca 8 years ago
parent 5e1635bffa
commit 6dff236e07
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8
  1. 20
      src/lib/3rdparty/qtsingleapplication/qtsingleapplication.h
  2. 5
      src/lib/CMakeLists.txt

@ -49,25 +49,11 @@
#include <QApplication>
class QtLocalPeer;
#include "qzcommon.h"
#if defined(Q_OS_WIN)
# if !defined(QT_QTSINGLEAPPLICATION_EXPORT) && !defined(QT_QTSINGLEAPPLICATION_IMPORT)
# define QT_QTSINGLEAPPLICATION_EXPORT
# elif defined(QT_QTSINGLEAPPLICATION_IMPORT)
# if defined(QT_QTSINGLEAPPLICATION_EXPORT)
# undef QT_QTSINGLEAPPLICATION_EXPORT
# endif
# define QT_QTSINGLEAPPLICATION_EXPORT __declspec(dllimport)
# elif defined(QT_QTSINGLEAPPLICATION_EXPORT)
# undef QT_QTSINGLEAPPLICATION_EXPORT
# define QT_QTSINGLEAPPLICATION_EXPORT __declspec(dllexport)
# endif
#else
# define QT_QTSINGLEAPPLICATION_EXPORT
#endif
class QtLocalPeer;
class QT_QTSINGLEAPPLICATION_EXPORT QtSingleApplication : public QApplication
class FALKON_EXPORT QtSingleApplication : public QApplication
{
Q_OBJECT

@ -3,15 +3,10 @@ add_definitions(-DFALKON_SHAREDLIBRARY)
set(CMAKE_CXX_STANDARD 14) # Enable C++14, with cmake >= 3.1
set(CMAKE_CXX_EXTENSIONS OFF) # Don't enable gcc-specific extensions
if (WIN32)
add_definitions(-DQT_QTSINGLEAPPLICATION_EXPORT=)
endif()
set(SRCS
3rdparty/qtsingleapplication/qtsingleapplication.cpp
3rdparty/qtsingleapplication/qtlocalpeer.cpp
)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/qtsingleapplication)
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
set(SRCS ${SRCS} ${CMAKE_SOURCE_DIR}/tests/modeltest/modeltest.cpp)

Loading…
Cancel
Save