Skip to content

Commit

Permalink
[SciTokens] Make SciTokens adhere to repo standards.
Browse files Browse the repository at this point in the history
  • Loading branch information
abh3 committed Jan 11, 2021
1 parent 4d7d6de commit 786c36e
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 18 deletions.
4 changes: 2 additions & 2 deletions src/CMakeLists.txt
Expand Up @@ -23,6 +23,7 @@ include( XrdCrypto )
include( XrdSec )
include( XrdXml )
include( XrdHeaders )
#include( XrdSecztn )

if( BUILD_CRYPTO )
include( XrdSecgsi )
Expand Down Expand Up @@ -52,7 +53,6 @@ if( NOT XRDCL_ONLY )
include( XrdFfs )
include( XrdPlugins )
include( XrdSsi )
# include( XrdCns ) TODO: this is using the old client, needs refactoring or needs to be removed!

include( XrdPfc )

Expand All @@ -74,7 +74,7 @@ if( NOT XRDCL_ONLY )
endif()

if( BUILD_SCITOKENS )
add_subdirectory( XrdSciTokens )
include( XrdSciTokens )
endif()

endif()
Expand Down
44 changes: 44 additions & 0 deletions src/XrdSciTokens.cmake
@@ -0,0 +1,44 @@
include( XRootDCommon )

find_package( SciTokensCpp REQUIRED )

#-------------------------------------------------------------------------------
# Modules
#-------------------------------------------------------------------------------
set( LIB_XRD_SCITOKENS XrdAccSciTokens-${PLUGIN_VERSION} )

include_directories(
${SCITOKENS_CPP_INCLUDE_DIR}
XrdSciTokens/vendor/picojson
XrdSciTokens/vendor/inih )

#-------------------------------------------------------------------------------
# The XrdPfc library
#-------------------------------------------------------------------------------
add_library(
${LIB_XRD_SCITOKENS}
MODULE
XrdSciTokens/XrdSciTokensAccess.cc
XrdSciTokens/XrdSciTokensHelper.hh )
target_link_libraries(
${LIB_XRD_SCITOKENS}
${SCITOKENS_CPP_LIBRARIES}
XrdUtils
XrdServer
dl
pthread )

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

#-------------------------------------------------------------------------------
# Install
#-------------------------------------------------------------------------------
install(
TARGETS
${LIB_XRD_SCITOKENS}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} )
15 changes: 0 additions & 15 deletions src/XrdSciTokens/CMakeLists.txt

This file was deleted.

Expand Up @@ -19,7 +19,7 @@
#include "picojson.h"

#include "scitokens/scitokens.h"
#include "XrdSciTokensHelper.hh"
#include "XrdSciTokens/XrdSciTokensHelper.hh"

// The status-quo to retrieve the default object is to copy/paste the
// linker definition and invoke directly.
Expand Down
File renamed without changes.

0 comments on commit 786c36e

Please sign in to comment.