summaryrefslogtreecommitdiffstats
path: root/tdecore/tdehw
diff options
context:
space:
mode:
Diffstat (limited to 'tdecore/tdehw')
-rw-r--r--tdecore/tdehw/CMakeLists.txt6
-rw-r--r--tdecore/tdehw/tdehardwaredevices.cpp7
-rw-r--r--tdecore/tdehw/tdenetworkconnections.cpp7
3 files changed, 18 insertions, 2 deletions
diff --git a/tdecore/tdehw/CMakeLists.txt b/tdecore/tdehw/CMakeLists.txt
index 737d0557c..d314b055f 100644
--- a/tdecore/tdehw/CMakeLists.txt
+++ b/tdecore/tdehw/CMakeLists.txt
@@ -124,7 +124,9 @@ set( ${target}_SRCS
disksHelper.cpp
)
-tde_add_library( ${target} STATIC_PIC AUTOMOC
+tde_add_library( ${target} SHARED AUTOMOC
SOURCES ${${target}_SRCS}
- LINK udev ${TDENM_LIBRARIES} ${TDEUPOWER_LIBRARIES} ${TDEHW_CUSTOM_LIBRARIES}
+ VERSION 14.1.0
+ LINK_PRIVATE udev tdecore-shared ${TDENM_LIBRARIES} ${TDEUPOWER_LIBRARIES} ${TDEHW_CUSTOM_LIBRARIES}
+ DESTINATION ${LIB_INSTALL_DIR}
)
diff --git a/tdecore/tdehw/tdehardwaredevices.cpp b/tdecore/tdehw/tdehardwaredevices.cpp
index 28a0f44d2..441db942d 100644
--- a/tdecore/tdehw/tdehardwaredevices.cpp
+++ b/tdecore/tdehw/tdehardwaredevices.cpp
@@ -119,6 +119,13 @@ unsigned int reverse_bits(unsigned int x)
// Helper function implemented in tdestoragedevice.cpp
TQString decodeHexEncoding(TQString str);
+extern "C" {
+ KDE_EXPORT TDEHardwareDevices* create_tdeHardwareDevices()
+ {
+ return new TDEHardwareDevices();
+ }
+}
+
TDEHardwareDevices::TDEHardwareDevices() {
// Initialize members
pci_id_map = 0;
diff --git a/tdecore/tdehw/tdenetworkconnections.cpp b/tdecore/tdehw/tdenetworkconnections.cpp
index 2961c8737..0cf1823a1 100644
--- a/tdecore/tdehw/tdenetworkconnections.cpp
+++ b/tdecore/tdehw/tdenetworkconnections.cpp
@@ -40,6 +40,13 @@
/* TDENetworkSearchDomain */
/*================================================================================================*/
+extern "C" {
+ KDE_EXPORT TDEGlobalNetworkManager* create_tdeGlobalNetworkManager()
+ {
+ return new TDEGlobalNetworkManager();
+ }
+}
+
TDENetworkSearchDomain::TDENetworkSearchDomain() {
m_isIPV6 = false;
}