Skip to content

Commit

Permalink
iox-eclipse-iceoryx#482 add cmake output for deployment options
Browse files Browse the repository at this point in the history
Signed-off-by: Dietrich Krönke <[email protected]>
  • Loading branch information
dkroenke committed Mar 22, 2021
1 parent f564a94 commit a41fc26
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions iceoryx_posh/cmake/iceoryx_posh_deployment.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,42 +15,52 @@
# SPDX-License-Identifier: Apache-2.0

# configure deployment
message("[i] <<<<<<<<<<<<< Start iceoryx_posh configuration: >>>>>>>>>>>>>")
if(ONE_TO_MANY_ONLY)
message("[i] Using 1:n communication only!")
set(IOX_COMMUNICATION_POLICY OneToManyPolicy)
endif()

if(NOT IOX_COMMUNICATION_POLICY)
message("[i] Using m:n communication only!")
set(IOX_COMMUNICATION_POLICY ManyToManyPolicy)
endif()

if(NOT IOX_MAX_PUBLISHERS)
set(IOX_MAX_PUBLISHERS 512)
endif()
message("[i] IOX_MAX_PUBLISHERS:" ${IOX_MAX_PUBLISHERS})

if(NOT IOX_MAX_SUBSCRIBERS)
set(IOX_MAX_SUBSCRIBERS 1024)
endif()
message("[i] IOX_MAX_SUBSCRIBERS:" ${IOX_MAX_SUBSCRIBERS})

if(NOT IOX_MAX_INTERFACE_NUMBER)
set(IOX_MAX_INTERFACE_NUMBER 4)
endif()
message("[i] IOX_MAX_INTERFACE_NUMBER:" ${IOX_MAX_INTERFACE_NUMBER})

if(NOT IOX_MAX_SUBSCRIBERS_PER_PUBLISHER)
set(IOX_MAX_SUBSCRIBERS_PER_PUBLISHER 256)
endif()
message("[i] IOX_MAX_SUBSCRIBERS_PER_PUBLISHER:" ${IOX_MAX_SUBSCRIBERS_PER_PUBLISHER})

if(NOT IOX_MAX_CHUNKS_ALLOCATED_PER_PUBLISHER_SIMULTANEOUSLY)
set(IOX_MAX_CHUNKS_ALLOCATED_PER_PUBLISHER_SIMULTANEOUSLY 8)
endif()
message("[i] IOX_MAX_CHUNKS_ALLOCATED_PER_PUBLISHER_SIMULTANEOUSLY:" ${IOX_MAX_CHUNKS_ALLOCATED_PER_PUBLISHER_SIMULTANEOUSLY})

if(NOT IOX_MAX_PUBLISHER_HISTORY)
set(IOX_MAX_PUBLISHER_HISTORY 16)
endif()
message("[i] IOX_MAX_PUBLISHER_HISTORY:" ${IOX_MAX_PUBLISHER_HISTORY})

if(NOT IOX_MAX_CHUNKS_HELD_PER_SUBSCRIBER_SIMULTANEOUSLY)
set(IOX_MAX_CHUNKS_HELD_PER_SUBSCRIBER_SIMULTANEOUSLY 256)
endif()
message("[i] IOX_MAX_CHUNKS_HELD_PER_SUBSCRIBER_SIMULTANEOUSLY:" ${IOX_MAX_CHUNKS_HELD_PER_SUBSCRIBER_SIMULTANEOUSLY})
message("[i] <<<<<<<<<<<<<< End iceoryx_posh configuration: >>>>>>>>>>>>>>")

configure_file("${CMAKE_CURRENT_SOURCE_DIR}/cmake/iceoryx_posh_deployment.hpp.in"
"${CMAKE_BINARY_DIR}/generated/iceoryx/include/iceoryx_posh/iceoryx_posh_deployment.hpp" @ONLY)

0 comments on commit a41fc26

Please sign in to comment.