Sophie

Sophie

distrib > Mandriva > 2010.1 > i586 > media > main-testing-src > by-pkgid > 357e0466909645e33fa8bfa6e2222a8a > files > 10

kdebase4-runtime-4.4.5-0.1mdv2010.2.src.rpm

Index: runtime/kioslave/network/kupnp/lib/upnp_export.h
===================================================================
--- runtime/kioslave/network/kupnp/lib/upnp_export.h	(revision 1079848)
+++ runtime/kioslave/network/kupnp/lib/upnp_export.h	(revision 1079849)
@@ -23,9 +23,6 @@
 #ifndef UPNP_EXPORT_H
 #define UPNP_EXPORT_H
 
-// disable while just a private static lib
-#define KUPNP_EXPORT
-#if 0
 // KDE
 #include <kdemacros.h>
 
@@ -45,4 +42,3 @@
 # endif
 #endif
 
-#endif
Index: runtime/kioslave/network/kupnp/lib/CMakeLists.txt
===================================================================
--- runtime/kioslave/network/kupnp/lib/CMakeLists.txt	(revision 1079848)
+++ runtime/kioslave/network/kupnp/lib/CMakeLists.txt	(revision 1079849)
@@ -20,18 +20,18 @@
 qt4_add_dbus_interface( kupnp_LIB_SRCS  org.Coherence.xml coherence_interface )
 
 
-kde4_add_library( kupnp  STATIC ${kupnp_LIB_SRCS} )
+kde4_add_library( kupnp  SHARED ${kupnp_LIB_SRCS} )
 
 # If making the lib SHARED again, uncomment again:
-# target_link_libraries( kupnp
-#   ${QT_QTDBUS_LIBRARY}
-#   ${QT_QTCORE_LIBRARY}
-# )
-# set_target_properties( kupnp  PROPERTIES
-#   VERSION ${GENERIC_LIB_VERSION}
-#   SOVERSION ${GENERIC_LIB_SOVERSION}
-# )
+target_link_libraries( kupnp
+  ${QT_QTDBUS_LIBRARY}
+  ${QT_QTCORE_LIBRARY}
+  ${KDE4_KDECORE_LIBS})
+set_target_properties( kupnp  PROPERTIES
+  VERSION ${GENERIC_LIB_VERSION}
+  SOVERSION ${GENERIC_LIB_SOVERSION}
+)
 
-# install( TARGETS kupnp  ${INSTALL_TARGETS_DEFAULT_ARGS} )
+install( TARGETS kupnp  ${INSTALL_TARGETS_DEFAULT_ARGS} )
 
-# install( FILES ${kupnp_LIB_HDRS}  DESTINATION ${INCLUDE_INSTALL_DIR}/upnp  COMPONENT Devel )
+install( FILES ${kupnp_LIB_HDRS}  DESTINATION ${INCLUDE_INSTALL_DIR}/upnp  COMPONENT Devel )