Skip to content

Commit

Permalink
iox-#1176 Add ACL feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
elBoberido committed Oct 13, 2024
1 parent f5cc8f0 commit 7459452
Show file tree
Hide file tree
Showing 13 changed files with 79 additions and 0 deletions.
1 change: 1 addition & 0 deletions iceoryx_platform/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ configure_file(
"IOX_PLATFORM_LOCK_FILE_PATH_PREFIX": "/tmp/",
"IOX_PLATFORM_TEMP_DIR": "/tmp/",
"IOX_PLATFORM_UDS_SOCKET_PATH_PREFIX": "/tmp/",
"IOX_CFG_FEATURE_ACL": "0",
},
}),
)
Expand Down
11 changes: 11 additions & 0 deletions iceoryx_platform/freertos/cmake/IceoryxPlatformDeployment.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,15 @@ configure_option(
DEFAULT_VALUE "/tmp/"
)

configure_option(
NAME IOX_PLATFORM_FEATURE_ACL
DEFAULT_VALUE OFF
)

if(IOX_PLATFORM_FEATURE_ACL)
message(FATAL_ERROR "ACLs are not supported on this platform! Don't use 'IOX_PLATFORM_FEATURE_ACL=ON'")
else()
set(IOX_CFG_FEATURE_ACL "0")
endif()

message(STATUS "[i] <<<<<<<<<<<<<< End iceoryx_platform configuration: >>>>>>>>>>>>>>")
2 changes: 2 additions & 0 deletions iceoryx_platform/freertos/cmake/platform_settings.hpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
#define PATH_MAX (2 * NAME_MAX)
#endif

#define IOX_FEATURE_ACL @IOX_CFG_FEATURE_ACL@

namespace iox
{
namespace platform
Expand Down
11 changes: 11 additions & 0 deletions iceoryx_platform/linux/cmake/IceoryxPlatformDeployment.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,15 @@ configure_option(
DEFAULT_VALUE "/tmp/"
)

configure_option(
NAME IOX_PLATFORM_FEATURE_ACL
DEFAULT_VALUE ON
)

if(IOX_PLATFORM_FEATURE_ACL)
set(IOX_CFG_FEATURE_ACL "1")
else()
set(IOX_CFG_FEATURE_ACL "0")
endif()

message(STATUS "[i] <<<<<<<<<<<<<< End iceoryx_platform configuration: >>>>>>>>>>>>>>")
2 changes: 2 additions & 0 deletions iceoryx_platform/linux/cmake/platform_settings.hpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
#include <cstdint>
#include <linux/limits.h>

#define IOX_FEATURE_ACL @IOX_CFG_FEATURE_ACL@

namespace iox
{
namespace platform
Expand Down
11 changes: 11 additions & 0 deletions iceoryx_platform/mac/cmake/IceoryxPlatformDeployment.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,15 @@ configure_option(
DEFAULT_VALUE "/tmp/"
)

configure_option(
NAME IOX_PLATFORM_FEATURE_ACL
DEFAULT_VALUE OFF
)

if(IOX_PLATFORM_FEATURE_ACL)
message(FATAL_ERROR "ACLs are not supported on this platform! Don't use 'IOX_PLATFORM_FEATURE_ACL=ON'")
else()
set(IOX_CFG_FEATURE_ACL "0")
endif()

message(STATUS "[i] <<<<<<<<<<<<<< End iceoryx_platform configuration: >>>>>>>>>>>>>>")
2 changes: 2 additions & 0 deletions iceoryx_platform/mac/cmake/platform_settings.hpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

#include <cstdint>

#define IOX_FEATURE_ACL @IOX_CFG_FEATURE_ACL@

namespace iox
{
namespace platform
Expand Down
11 changes: 11 additions & 0 deletions iceoryx_platform/qnx/cmake/IceoryxPlatformDeployment.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,15 @@ configure_option(
DEFAULT_VALUE "/tmp/"
)

configure_option(
NAME IOX_PLATFORM_FEATURE_ACL
DEFAULT_VALUE ON
)

if(IOX_PLATFORM_FEATURE_ACL)
set(IOX_CFG_FEATURE_ACL "1")
else()
set(IOX_CFG_FEATURE_ACL "0")
endif()

message(STATUS "[i] <<<<<<<<<<<<<< End iceoryx_platform configuration: >>>>>>>>>>>>>>")
2 changes: 2 additions & 0 deletions iceoryx_platform/qnx/cmake/platform_settings.hpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

#include <cstdint>

#define IOX_FEATURE_ACL @IOX_CFG_FEATURE_ACL@

namespace iox
{
namespace platform
Expand Down
11 changes: 11 additions & 0 deletions iceoryx_platform/unix/cmake/IceoryxPlatformDeployment.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,15 @@ configure_option(
DEFAULT_VALUE "/tmp/"
)

configure_option(
NAME IOX_PLATFORM_FEATURE_ACL
DEFAULT_VALUE OFF
)

if(IOX_PLATFORM_FEATURE_ACL)
message(FATAL_ERROR "ACLs are not supported on this platform! Don't use 'IOX_PLATFORM_FEATURE_ACL=ON'")
else()
set(IOX_CFG_FEATURE_ACL "0")
endif()

message(STATUS "[i] <<<<<<<<<<<<<< End iceoryx_platform configuration: >>>>>>>>>>>>>>")
2 changes: 2 additions & 0 deletions iceoryx_platform/unix/cmake/platform_settings.hpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
#include <cstdint>
#include <limits.h>

#define IOX_FEATURE_ACL @IOX_CFG_FEATURE_ACL@

namespace iox
{
namespace platform
Expand Down
11 changes: 11 additions & 0 deletions iceoryx_platform/win/cmake/IceoryxPlatformDeployment.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,15 @@ configure_option(
DEFAULT_VALUE ""
)

configure_option(
NAME IOX_PLATFORM_FEATURE_ACL
DEFAULT_VALUE OFF
)

if(IOX_PLATFORM_FEATURE_ACL)
message(FATAL_ERROR "ACLs are not supported on this platform! Don't use 'IOX_PLATFORM_FEATURE_ACL=ON'")
else()
set(IOX_CFG_FEATURE_ACL "0")
endif()

message(STATUS "[i] <<<<<<<<<<<<<< End iceoryx_platform configuration: >>>>>>>>>>>>>>")
2 changes: 2 additions & 0 deletions iceoryx_platform/win/cmake/platform_settings.hpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

#include <cstdint>

#define IOX_FEATURE_ACL @IOX_CFG_FEATURE_ACL@

namespace iox
{
namespace platform
Expand Down

0 comments on commit 7459452

Please sign in to comment.