summaryrefslogtreecommitdiffstats
path: root/libraries/iconfix
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-05-05 09:43:20 +0200
committerPetr Mrázek <peterix@gmail.com>2017-05-05 09:43:20 +0200
commit9d4c188fd47dbe593c216af5538011e694efb200 (patch)
treecadd88fa9a66cedafeb4e49431ce4cfebf61476a /libraries/iconfix
parente854894a3cf58936eb447e4476fb863cb05ea3f9 (diff)
downloadMultiMC-9d4c188fd47dbe593c216af5538011e694efb200.tar
MultiMC-9d4c188fd47dbe593c216af5538011e694efb200.tar.gz
MultiMC-9d4c188fd47dbe593c216af5538011e694efb200.tar.lz
MultiMC-9d4c188fd47dbe593c216af5538011e694efb200.tar.xz
MultiMC-9d4c188fd47dbe593c216af5538011e694efb200.zip
GH-1876 turn iconfix into a shared library
Diffstat (limited to 'libraries/iconfix')
-rw-r--r--libraries/iconfix/CMakeLists.txt9
-rw-r--r--libraries/iconfix/xdgicon.h4
2 files changed, 9 insertions, 4 deletions
diff --git a/libraries/iconfix/CMakeLists.txt b/libraries/iconfix/CMakeLists.txt
index 4dfc39a9..6a99effe 100644
--- a/libraries/iconfix/CMakeLists.txt
+++ b/libraries/iconfix/CMakeLists.txt
@@ -12,7 +12,10 @@ internal/qiconloader.cpp
internal/qiconloader_p.h
)
-add_library(iconfix STATIC ${ICONFIX_SOURCES})
-target_include_directories(iconfix PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
+add_library(MultiMC_iconfix SHARED ${ICONFIX_SOURCES})
+target_include_directories(MultiMC_iconfix PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} "${CMAKE_CURRENT_BINARY_DIR}" )
-qt5_use_modules(iconfix Core Widgets)
+qt5_use_modules(MultiMC_iconfix Core Widgets)
+
+set_target_properties(MultiMC_iconfix PROPERTIES CXX_VISIBILITY_PRESET hidden VISIBILITY_INLINES_HIDDEN 1)
+generate_export_header(MultiMC_iconfix)
diff --git a/libraries/iconfix/xdgicon.h b/libraries/iconfix/xdgicon.h
index 9c11683a..df8f026e 100644
--- a/libraries/iconfix/xdgicon.h
+++ b/libraries/iconfix/xdgicon.h
@@ -31,7 +31,9 @@
#include <QString>
#include <QStringList>
-class XdgIcon
+#include "multimc_iconfix_export.h"
+
+class MULTIMC_ICONFIX_EXPORT XdgIcon
{
public:
static QIcon fromTheme(const QString &iconName, const QIcon &fallback = QIcon());