Skip to content

Commit

Permalink
Fix packaging issues (hopefully all of the)
Browse files Browse the repository at this point in the history
  • Loading branch information
abh3 committed Jul 14, 2017
1 parent 1c45a9a commit e2d1b84
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 59 deletions.
4 changes: 2 additions & 2 deletions packaging/rhel/xrootd.spec.in
Expand Up @@ -733,9 +733,9 @@ fi
%{_libdir}/libXrdN2No2p-4.so
%{_libdir}/libXrdOssSIgpfsT-4.so
%{_libdir}/libXrdServer.so.*
%{_libdir}/libXrdSsi-4.so.*
%{_libdir}/libXrdSsi-4.so
%{_libdir}/libXrdSsiLib.so.*
%{_libdir}/libXrdSsiLog-4.so.*
%{_libdir}/libXrdSsiLog-4.so
%{_libdir}/libXrdSsiShMap.so.*
%{_libdir}/libXrdThrottle-4.so

Expand Down
52 changes: 1 addition & 51 deletions src/XrdPlugins.cmake
Expand Up @@ -9,8 +9,6 @@ set( LIB_XRD_N2NO2P XrdN2No2p-${PLUGIN_VERSION} )
set( LIB_XRD_PSS XrdPss-${PLUGIN_VERSION} )
set( LIB_XRD_GPFS XrdOssSIgpfsT-${PLUGIN_VERSION} )
set( LIB_XRD_ZCRC32 XrdCksCalczcrc32-${PLUGIN_VERSION} )
set( LIB_XRD_SSI XrdSsi-${PLUGIN_VERSION} )
set( LIB_XRD_SSILOG XrdSsiLog-${PLUGIN_VERSION} )
set( LIB_XRD_THROTTLE XrdThrottle-${PLUGIN_VERSION} )

#-------------------------------------------------------------------------------
Expand Down Expand Up @@ -123,54 +121,6 @@ set_target_properties(
INTERFACE_LINK_LIBRARIES ""
LINK_INTERFACE_LIBRARIES "" )

#-------------------------------------------------------------------------------
# The XrdSsi lib
#-------------------------------------------------------------------------------
add_library(
${LIB_XRD_SSI}
SHARED
XrdSsi/XrdSsiDir.cc XrdSsi/XrdSsiDir.hh
XrdSsi/XrdSsiFile.cc XrdSsi/XrdSsiFile.hh
XrdSsi/XrdSsiFileReq.cc XrdSsi/XrdSsiFileReq.hh
XrdSsi/XrdSsiFileSess.cc XrdSsi/XrdSsiFileSess.hh
XrdSsi/XrdSsiSfs.cc XrdSsi/XrdSsiSfs.hh
XrdSsi/XrdSsiSfsConfig.cc XrdSsi/XrdSsiSfsConfig.hh
XrdSsi/XrdSsiStat.cc
)

target_link_libraries(
${LIB_XRD_SSI}
XrdSsiLib
XrdUtils
XrdServer )

set_target_properties(
${LIB_XRD_SSI}
PROPERTIES
INTERFACE_LINK_LIBRARIES ""
LINK_INTERFACE_LIBRARIES "" )

#-------------------------------------------------------------------------------
# The XrdSsiLog lib
#-------------------------------------------------------------------------------
add_library(
${LIB_XRD_SSILOG}
SHARED
XrdSsi/XrdSsiLogging.cc
)

target_link_libraries(
${LIB_XRD_SSILOG}
XrdSsiLib
XrdUtils
XrdServer )

set_target_properties(
${LIB_XRD_SSILOG}
PROPERTIES
INTERFACE_LINK_LIBRARIES ""
LINK_INTERFACE_LIBRARIES "" )

#-------------------------------------------------------------------------------
# The XrdThrottle lib
#-------------------------------------------------------------------------------
Expand Down Expand Up @@ -200,5 +150,5 @@ set_target_properties(
# Install
#-------------------------------------------------------------------------------
install(
TARGETS ${LIB_XRD_PSS} ${LIB_XRD_BWM} ${LIB_XRD_GPFS} ${LIB_XRD_ZCRC32} ${LIB_XRD_SSI} ${LIB_XRD_SSILOG} ${LIB_XRD_THROTTLE} ${LIB_XRD_N2NO2P}
TARGETS ${LIB_XRD_PSS} ${LIB_XRD_BWM} ${LIB_XRD_GPFS} ${LIB_XRD_ZCRC32} ${LIB_XRD_THROTTLE} ${LIB_XRD_N2NO2P}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} )
66 changes: 60 additions & 6 deletions src/XrdSsi.cmake
@@ -1,16 +1,22 @@

include( XRootDCommon )

#-------------------------------------------------------------------------------
# Modules
#-------------------------------------------------------------------------------
set( LIB_XRD_SSI XrdSsi-${PLUGIN_VERSION} )
set( LIB_XRD_SSILOG XrdSsiLog-${PLUGIN_VERSION} )

#-------------------------------------------------------------------------------
# Shared library version
#-------------------------------------------------------------------------------
set( XRD_SSI_VERSION 1.0.0 )
set( XRD_SSI_SOVERSION 1 )
set( XRD_SSI_LIB_VERSION 1.0.0 )
set( XRD_SSI_LIB_SOVERSION 1 )
set( XRD_SSI_SHMAP_VERSION 1.0.0 )
set( XRD_SSI_SHMAP_SOVERSION 1 )

#-------------------------------------------------------------------------------
# The XrdSsi library
# The XrdSsiLib library
#-------------------------------------------------------------------------------
add_library(
XrdSsiLib
Expand Down Expand Up @@ -52,8 +58,8 @@ target_link_libraries(
set_target_properties(
XrdSsiLib
PROPERTIES
VERSION ${XRD_SSI_VERSION}
SOVERSION ${XRD_SSI_SOVERSION}
VERSION ${XRD_SSI_LIB_VERSION}
SOVERSION ${XRD_SSI_LIB_SOVERSION}
LINK_INTERFACE_LIBRARIES "" )

#-------------------------------------------------------------------------------
Expand All @@ -78,9 +84,57 @@ set_target_properties(
SOVERSION ${XRD_SSI_SHMAP_SOVERSION}
LINK_INTERFACE_LIBRARIES "" )

#-------------------------------------------------------------------------------
# The XrdSsi plugin
#-------------------------------------------------------------------------------
add_library(
${LIB_XRD_SSI}
SHARED
XrdSsi/XrdSsiDir.cc XrdSsi/XrdSsiDir.hh
XrdSsi/XrdSsiFile.cc XrdSsi/XrdSsiFile.hh
XrdSsi/XrdSsiFileReq.cc XrdSsi/XrdSsiFileReq.hh
XrdSsi/XrdSsiFileSess.cc XrdSsi/XrdSsiFileSess.hh
XrdSsi/XrdSsiSfs.cc XrdSsi/XrdSsiSfs.hh
XrdSsi/XrdSsiSfsConfig.cc XrdSsi/XrdSsiSfsConfig.hh
XrdSsi/XrdSsiStat.cc
)

target_link_libraries(
${LIB_XRD_SSI}
XrdSsiLib
XrdUtils
XrdServer )

set_target_properties(
${LIB_XRD_SSI}
PROPERTIES
INTERFACE_LINK_LIBRARIES ""
LINK_INTERFACE_LIBRARIES "" )

#-------------------------------------------------------------------------------
# The XrdSsiLog plugin
#-------------------------------------------------------------------------------
add_library(
${LIB_XRD_SSILOG}
SHARED
XrdSsi/XrdSsiLogging.cc
)

target_link_libraries(
${LIB_XRD_SSILOG}
XrdSsiLib
XrdUtils
XrdServer )

set_target_properties(
${LIB_XRD_SSILOG}
PROPERTIES
INTERFACE_LINK_LIBRARIES ""
LINK_INTERFACE_LIBRARIES "" )

#-------------------------------------------------------------------------------
# Install
#-------------------------------------------------------------------------------
install(
TARGETS XrdSsiLib XrdSsiShMap
TARGETS XrdSsiLib XrdSsiShMap ${LIB_XRD_SSI} ${LIB_XRD_SSILOG}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} )

0 comments on commit e2d1b84

Please sign in to comment.