Commit df0c4121 authored by Thomas Friedrichsmeier's avatar Thomas Friedrichsmeier
Browse files

Fix build with MinGW on Windows.

REVIEW: 127328
parent 1335d672
...@@ -306,6 +306,7 @@ add_library(okularpart SHARED ${okularpart_SRCS}) ...@@ -306,6 +306,7 @@ add_library(okularpart SHARED ${okularpart_SRCS})
generate_export_header(okularpart BASE_NAME okularpart) generate_export_header(okularpart BASE_NAME okularpart)
target_link_libraries(okularpart okularcore Qt5::Svg KF5::Parts ${MATH_LIB} Phonon::phonon4qt5 KF5::Solid KF5::KDELibs4Support KF5::Wallet KF5::Archive) target_link_libraries(okularpart okularcore Qt5::Svg KF5::Parts ${MATH_LIB} Phonon::phonon4qt5 KF5::Solid KF5::KDELibs4Support KF5::Wallet KF5::Archive)
set_target_properties(okularpart PROPERTIES PREFIX "")
if (Qt5TextToSpeech_FOUND) if (Qt5TextToSpeech_FOUND)
target_link_libraries(okularpart Qt5::TextToSpeech) target_link_libraries(okularpart Qt5::TextToSpeech)
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#define _OKULAR_VIEWERINTERFACE_H_ #define _OKULAR_VIEWERINTERFACE_H_
#include "../core/okularcore_export.h" #include "../core/okularcore_export.h"
#ifdef _MSC_VER #ifdef Q_OS_WIN
#define VIEWERINTERFACE_EXPORT __declspec(dllexport) #define VIEWERINTERFACE_EXPORT __declspec(dllexport)
#else #else
#define VIEWERINTERFACE_EXPORT OKULARCORE_EXPORT #define VIEWERINTERFACE_EXPORT OKULARCORE_EXPORT
......
...@@ -20,9 +20,8 @@ set(okular_SRCS ...@@ -20,9 +20,8 @@ set(okular_SRCS
kconfig_add_kcfg_files(okular_SRCS ${CMAKE_SOURCE_DIR}/conf/settings.kcfgc ) kconfig_add_kcfg_files(okular_SRCS ${CMAKE_SOURCE_DIR}/conf/settings.kcfgc )
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/settings.cpp PROPERTIES COMPILE_DEFINITIONS "okularpart_EXPORTS")
add_library(okularplugin SHARED ${okular_SRCS}) add_library(okularplugin SHARED ${okular_SRCS})
set_target_properties(okularplugin PROPERTIES COMPILE_DEFINITIONS "okularpart_EXPORTS")
target_link_libraries(okularplugin target_link_libraries(okularplugin
Qt5::Quick Qt5::Quick
Qt5::Qml Qt5::Qml
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment