libkdeconnect: KDECONNECT_EXPORT turned to be import declaration outside of lib.
This commit is contained in:
parent
35757aef8f
commit
a6d4dd87be
2 changed files with 6 additions and 0 deletions
|
@ -8,6 +8,8 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR}
|
|||
${CMAKE_BINARY_DIR}
|
||||
${CMAKE_SOURCE_DIR})
|
||||
|
||||
add_definitions(-DKDECONNECT_LIBRARY)
|
||||
|
||||
set(libkdeconnect_SRC
|
||||
dbusinterfaces.cpp
|
||||
devicesmodel.cpp
|
||||
|
|
|
@ -23,6 +23,10 @@
|
|||
|
||||
#include <QtCore/QtGlobal>
|
||||
|
||||
#if defined(KDECONNECT_LIBRARY)
|
||||
#define KDECONNECT_EXPORT Q_DECL_EXPORT
|
||||
#else
|
||||
#define KDECONNECT_EXPORT Q_DECL_IMPORT
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue