Provides build-time information and feature detection. More...
#include <buildFeature.hpp>
Classes | |
| struct | config |
| Build configuration information. More... | |
| struct | date |
| Build date information. More... | |
| struct | platform |
| Platform information. More... | |
| struct | time |
| Build time information. More... | |
| struct | version |
| Version information. More... | |
Public Types | |
| enum | platformType { PLATFORM_TYPE_START = -1 , WINDOW , LINUX , MACOS , OTHERS , PLATFORM_TYPE_END } |
| enum | buildType { BUILD_TYPE_START = -1 , DEBUG , RELEASE , BUILD_TYPE_END } |
Provides build-time information and feature detection.
Returns information defined in buildInformation.hpp, which is automatically generated by CMake. Contains build date/time, version, build OS, and binary type information.
The original values are defined as #define macros in buildInformation.hpp, so they can be used directly if needed. They are also frequently used in #ifdef conditionals.
indep module. It is not recommended to use conditional compilation with OS #ifdef or buildFeature::platform::getName() in modules above indep.