diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-05-05 09:43:20 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-05-05 09:43:20 +0200 |
commit | 9d4c188fd47dbe593c216af5538011e694efb200 (patch) | |
tree | cadd88fa9a66cedafeb4e49431ce4cfebf61476a /libraries/iconfix | |
parent | e854894a3cf58936eb447e4476fb863cb05ea3f9 (diff) | |
download | MultiMC-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.txt | 9 | ||||
-rw-r--r-- | libraries/iconfix/xdgicon.h | 4 |
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()); |