-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
To remove the dependency of the Base library on RHTTP move the class FairRunOnline into a new Online library. Move also all source classes needed only when using FairRunOnline also into the new library. Fix build of MBS example such that it now depends on the Online library. Fix a missing header file in FairRunOnline. Make building of this library optional. As default the Online library is build. If BUILD_ONLINE=OFF but BUILD_MBS=ON the Online library is build since it is needed.
- Loading branch information
1 parent
ee5ee68
commit e61a0e7
Showing
30 changed files
with
172 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
################################################################################ | ||
# Copyright (C) 2022 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH # | ||
# # | ||
# This software is distributed under the terms of the # | ||
# GNU Lesser General Public Licence (LGPL) version 3, # | ||
# copied verbatim in the file "LICENSE" # | ||
################################################################################ | ||
|
||
set(target Online) | ||
|
||
set(sources | ||
source/FairOnlineSource.cxx | ||
source/FairUnpack.cxx | ||
|
||
steer/FairRunOnline.cxx | ||
) | ||
|
||
if(BUILD_MBS) | ||
list(APPEND sources | ||
source/exitCli.c | ||
source/FairLmdSource.cxx | ||
source/FairMbsSource.cxx | ||
source/FairMbsStreamSource.cxx | ||
source/FairRemoteSource.cxx | ||
source/MRevBuffer.cxx | ||
source/rclose.c | ||
source/swaplw.c | ||
) | ||
endif() | ||
fair_change_extensions_if_exists(.cxx .h FILES "${sources}" OUTVAR headers) | ||
|
||
add_library(${target} SHARED ${sources} ${headers}) | ||
fairroot_library_settings(${target}) | ||
|
||
target_include_directories(${target} PUBLIC | ||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/steer> | ||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/source> | ||
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}> | ||
) | ||
|
||
target_link_libraries(${target} PUBLIC | ||
FairRoot::FairTools | ||
FairRoot::Base | ||
FairRoot::ParBase | ||
$<$<BOOL:${BUILD_MBS}>:FairRoot::MbsAPI> | ||
|
||
ROOT::RHTTP # THttpServer | ||
ROOT::Core | ||
ROOT::Geom | ||
ROOT::Net # TSocket | ||
) | ||
|
||
target_compile_definitions(${target} PRIVATE | ||
$<$<BOOL:${BUILD_MBS}>:BUILD_MBS> | ||
$<$<BOOL:${ROOT_gdml_FOUND}>:ROOT_HAS_GDML> | ||
# $<$<PLATFORM_ID:Linux>:Linux> | ||
) | ||
|
||
fairroot_target_root_dictionary(${target} | ||
HEADERS ${headers} | ||
LINKDEF LinkDef.h | ||
EXTRA_INCLUDE_DIRS ${CMAKE_INSTALL_FULL_INCLUDEDIR} | ||
) | ||
|
||
fairroot_install_exported(TARGETS ${target}) | ||
install(FILES ${headers} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/******************************************************************************** | ||
* Copyright (C) 2022 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH * | ||
* * | ||
* This software is distributed under the terms of the * | ||
* GNU Lesser General Public Licence (LGPL) version 3, * | ||
* copied verbatim in the file "LICENSE" * | ||
********************************************************************************/ | ||
// $Id: FairLinkDef.h,v 1.4 2006/09/15 12:43:35 turany Exp $ | ||
|
||
#ifdef __CINT__ | ||
|
||
#pragma link off all globals; | ||
#pragma link off all classes; | ||
#pragma link off all functions; | ||
|
||
#pragma link C++ class FairRunOnline; | ||
#pragma link C++ class FairOnlineSource; | ||
#pragma link C++ class FairUnpack; | ||
|
||
#ifdef BUILD_MBS | ||
#pragma link C++ class FairMbsSource; | ||
#pragma link C++ class FairRemoteSource; | ||
#pragma link C++ class FairMbsStreamSource; | ||
#pragma link C++ class FairLmdSource; | ||
#pragma link C++ class MRevBuffer; | ||
#pragma link C++ class REvent; | ||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/** | ||
\defgroup online Online | ||
|
||
online | ||
====== | ||
|
||
Classes needed to run FairRun in an online mode with some special features. | ||
They are groupped in the following few directories: | ||
|
||
- source - input classes | ||
- steer - steering classes | ||
|
||
The CMake target name for this library is `FairRoot::Online`. | ||
|
||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.