diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2021-05-07 03:36:45 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2021-05-07 03:36:45 +0200 |
commit | c7b651a6ca408afe6dbf22e782fa1b3bca8468d0 (patch) | |
tree | b82b2222f7b154fe15054e224c4f942c2e1efea2 /tdecore/tdehw | |
parent | 44ad33926031a2aae1c515488fc2eded94fd6c8f (diff) | |
download | tdelibs-c7b651a6ca408afe6dbf22e782fa1b3bca8468d0.tar.gz tdelibs-c7b651a6ca408afe6dbf22e782fa1b3bca8468d0.zip |
Build tdehw library as a standalone library.
This causes tdecore API change!
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'tdecore/tdehw')
-rw-r--r-- | tdecore/tdehw/CMakeLists.txt | 6 | ||||
-rw-r--r-- | tdecore/tdehw/tdehardwaredevices.cpp | 7 | ||||
-rw-r--r-- | tdecore/tdehw/tdenetworkconnections.cpp | 7 |
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; } |