The iceoryx_platform
represents the lowest layer in iceoryx. Its task is to establish
a uniform behavior of low level system calls across all supported platforms. When one would like
to add support for another platform one can use the CMake argument -DIOX_PLATFORM_PATH
to provide
a path to a custom platform implementation.
This may become necessary to support an unsupported compiler for a specific
platform, adjust system calls to become posix compliant or to add a new operating system.
Let's assume you have your platform stored in the absolute path /home/user/newIceoryxPlatform
you can configure cmake with the command:
cd iceoryx
cmake -Bbuild -Hiceoryx_meta -DIOX_PLATFORM_PATH=/home/user/newIceoryxPlatform
and build iceoryx as usual.
newIceoryxPlatform
- root folderinclude/iceoryx_platform/
- directory where all headers must be stored- must contain all of the headers which you can find in
iceoryx_platform/linux/include/iceoryx_platform
- the headers must declare the same functions
- every header must provide a - not necessary valid - implementation for the all the declared functions. If certain functionalities are not implemented one can identify the broken feature by executing the hoofs and posh module and integrationtests
- must contain all of the headers which you can find in
source/
- directory where the implementation must be storedIceoryxPlatformSettings.cmake
- file which contains the platform compile configurationICEORYX_CXX_STANDARD
- must be at least14
ICEORYX_PLATFORM_STRING
- the name of the platformICEORYX_C_WARNINGS
- [optional] a list of flags to enable c compiler warningsICEORYX_CXX_WARNINGS
- [optional] a list of flags to enable c++ compiler warnings- the file can also contain platform restrictions, for instance it can fail when a compiler is selected which the platform does not support