[poppler] qt5/src

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Oct 26 15:53:30 UTC 2018


 qt5/src/CMakeLists.txt    |    4 ++++
 qt5/src/poppler-private.h |    8 ++++----
 2 files changed, 8 insertions(+), 4 deletions(-)

New commits:
commit 5993cc0afdd6f1ebb4e6738536309245e53be18f
Author: Albert Astals Cid <aacid at kde.org>
Date:   Fri Oct 26 17:41:43 2018 +0200

    qt5: Default to hidden symbols

diff --git a/qt5/src/CMakeLists.txt b/qt5/src/CMakeLists.txt
index ffa16fa8..6f34054e 100644
--- a/qt5/src/CMakeLists.txt
+++ b/qt5/src/CMakeLists.txt
@@ -7,6 +7,10 @@ include_directories(
   ${CMAKE_CURRENT_BINARY_DIR}
 )
 
+set(CMAKE_C_VISIBILITY_PRESET hidden)
+set(CMAKE_CXX_VISIBILITY_PRESET hidden)
+set(CMAKE_VISIBILITY_INLINES_HIDDEN 1)
+
 set(poppler_qt5_SRCS
   poppler-annotation.cc
   poppler-document.cc
diff --git a/qt5/src/poppler-private.h b/qt5/src/poppler-private.h
index 9b261d36..a83b49a5 100644
--- a/qt5/src/poppler-private.h
+++ b/qt5/src/poppler-private.h
@@ -58,13 +58,13 @@ class FormWidget;
 namespace Poppler {
 
     /* borrowed from kpdf */
-    QString unicodeToQString(const Unicode* u, int len);
+    POPPLER_QT5_EXPORT QString unicodeToQString(const Unicode* u, int len);
 
-    QString UnicodeParsedString(const GooString *s1);
+    POPPLER_QT5_EXPORT QString UnicodeParsedString(const GooString *s1);
 
-    GooString *QStringToUnicodeGooString(const QString &s);
+    POPPLER_QT5_EXPORT GooString *QStringToUnicodeGooString(const QString &s);
 
-    GooString *QStringToGooString(const QString &s);
+    POPPLER_QT5_EXPORT GooString *QStringToGooString(const QString &s);
 
     GooString *QDateTimeToUnicodeGooString(const QDateTime &dt);
 


More information about the poppler mailing list