Skip to content

Commit

Permalink
Merge tag 'new-software-test-v01' into prod-hlt
Browse files Browse the repository at this point in the history
Conflicts:
	HLT/ITS/trackingSAP/AliHLTITSSAPTrackerComponent.cxx
	HLT/ITS/trackingSAP/AliITSSAPTracker.cxx
	HLT/TPCLib/tracking-ca/AliHLTTPCCATracker.cxx
  • Loading branch information
mkrzewic committed Nov 21, 2015
2 parents a3535be + 442f6c0 commit 11ef37d
Show file tree
Hide file tree
Showing 1,524 changed files with 97,645 additions and 60,378 deletions.
34 changes: 32 additions & 2 deletions ACORDE/ACORDErec/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,18 @@ set(LIBDEPS STEERBase STEER RAWDatabase RAWDatarec ACORDEbase ACORDEsim Graf)
generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}LinkDef.h")


# Add a library to the project using the specified source files
add_library(${MODULE} SHARED ${SRCS} G__${MODULE}.cxx)
# Create an object to be reused in case of static libraries
# Otherwise the sources will be compiled twice
add_library(${MODULE}-object OBJECT ${SRCS} G__${MODULE}.cxx)
# Add a library to the project using the object
add_library(${MODULE} SHARED $<TARGET_OBJECTS:${MODULE}-object>)

# Setting the correct headers for the object as gathered from the dependencies
target_include_directories(${MODULE}-object PUBLIC $<TARGET_PROPERTY:${MODULE},INCLUDE_DIRECTORIES>)
set_target_properties(${MODULE}-object PROPERTIES COMPILE_DEFINITIONS $<TARGET_PROPERTY:${MODULE},COMPILE_DEFINITIONS>)

# Public include folders that will be propagated to the dependecies
target_include_directories(${MODULE} PUBLIC ${incdirs})

# Additional compilation flags
set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "")
Expand All @@ -71,3 +81,23 @@ install(TARGETS ${MODULE}
LIBRARY DESTINATION lib)

install(FILES ${HDRS} DESTINATION include)

# Static version
if(ALIROOT_STATIC)
add_library(${MODULE}-static STATIC $<TARGET_OBJECTS:${MODULE}-object>)
set_target_properties(${MODULE}-static PROPERTIES OUTPUT_NAME ${MODULE})

# list of shared dependencies / the name of the variable containing the list of static ones
generate_static_dependencies("${ALIROOT_DEPENDENCIES}" "STATIC_ALIROOT_DEPENDENCIES")
target_link_libraries(${MODULE}-static ${STATIC_ALIROOT_DEPENDENCIES} Root RootExtra)

# Public include folders that will be propagated to the dependecies
target_include_directories(${MODULE}-static PUBLIC ${incdirs})

set_target_properties(${MODULE}-static PROPERTIES LINK_FLAGS "-Wl,--whole-archive")

# Installation
install(TARGETS ${MODULE}-static
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib)
endif(ALIROOT_STATIC)
34 changes: 32 additions & 2 deletions ACORDE/ACORDEsim/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,18 @@ set(LIBDEPS STEERBase STEER ESD CDB RAWDatabase RAWDatarec ACORDEbase)
generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}LinkDef.h")


# Add a library to the project using the specified source files
add_library(${MODULE} SHARED ${SRCS} G__${MODULE}.cxx)
# Create an object to be reused in case of static libraries
# Otherwise the sources will be compiled twice
add_library(${MODULE}-object OBJECT ${SRCS} G__${MODULE}.cxx)
# Add a library to the project using the object
add_library(${MODULE} SHARED $<TARGET_OBJECTS:${MODULE}-object>)

# Setting the correct headers for the object as gathered from the dependencies
target_include_directories(${MODULE}-object PUBLIC $<TARGET_PROPERTY:${MODULE},INCLUDE_DIRECTORIES>)
set_target_properties(${MODULE}-object PROPERTIES COMPILE_DEFINITIONS $<TARGET_PROPERTY:${MODULE},COMPILE_DEFINITIONS>)

# Public include folders that will be propagated to the dependecies
target_include_directories(${MODULE} PUBLIC ${incdirs})

# Additional compilation flags
set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "")
Expand All @@ -76,3 +86,23 @@ install(TARGETS ${MODULE}
LIBRARY DESTINATION lib)

install(FILES ${HDRS} DESTINATION include)

# Static version
if(ALIROOT_STATIC)
add_library(${MODULE}-static STATIC $<TARGET_OBJECTS:${MODULE}-object>)
set_target_properties(${MODULE}-static PROPERTIES OUTPUT_NAME ${MODULE})

# list of shared dependencies / the name of the variable containing the list of static ones
generate_static_dependencies("${ALIROOT_DEPENDENCIES}" "STATIC_ALIROOT_DEPENDENCIES")
target_link_libraries(${MODULE}-static ${STATIC_ALIROOT_DEPENDENCIES} Root RootExtra)

# Public include folders that will be propagated to the dependecies
target_include_directories(${MODULE}-static PUBLIC ${incdirs})

set_target_properties(${MODULE}-static PROPERTIES LINK_FLAGS "-Wl,--whole-archive")

# Installation
install(TARGETS ${MODULE}-static
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib)
endif(ALIROOT_STATIC)
1 change: 1 addition & 0 deletions AD/ADbase/ADbaseLinkDef.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#pragma link C++ class AliADPreprocessor+;
#pragma link C++ class AliADDataDCS+;
#pragma link C++ class AliADRawStream+;
#pragma link C++ class AliADLogicalSignal+;
//#pragma link C++ class AliADMisAligner+;

#endif
Loading

0 comments on commit 11ef37d

Please sign in to comment.