dodo
0.0.1
A C++ library to create containerized Linux services
|
1 #ifndef dodo_common_buildenv_hpp
2 #define dodo_common_buildenv_hpp
134 default:
return "invalid cppStandard";
143 if ( __cplusplus == 199711L )
return stPreCpp11;
144 else if ( __cplusplus == 201103L )
return stCpp11;
145 else if ( __cplusplus == 201402L )
return stCpp14;
146 else if ( __cplusplus == 201703L )
return stCpp17;
155 std::stringstream ss;
static int getProjectVersionMajor()
Get the project version major.
static int getProjectVersionPatch()
Get the project version patch.
static cppStandard getCppStandard()
Get the C++ standard in effect during compiling.
Build information, generated by cmake during builds from buildenv.hpp.in.
static std::string getCppStandardString()
Get the C++ standard in effect during compiling as a string.
@ stUnknown
Unknown C++ standard.
static int getProjectVersionMinor()
Get the project version minor.
static std::string getProjectName()
Get the project name.
static std::string getBuildTarget()
Get the build target / architecture.
static std::string getProjectVersion()
Get the project version.
A C++ platform interface to lean Linux services tailored for containerized deployment.
static std::string getCMakeVersion()
Get the cmake version.
static std::string getCompilerVersion()
Get the compiler version.
static std::string getBuildSystem()
Get the compiler host.
static std::string getBuildDate()
Get the build date.
static std::string getCompilerId()
Get the C++ compiler id, see https://cmake.org/cmake/help/latest/variable/CMAKE_LANG_COMPILER_ID....
static std::string getBinaryDirectory()
In very rare cases (examples requiring artefacts build in source checkouts), this is usefull.
static std::string getSourceDirectory()
In rare cases (examples requiring artefacts build in source checkouts), this is usefull.
cppStandard
C++ standard enum.
static std::string getDescription()
Get a description of the build environment.
static std::string getCMakeBuildType()
Get the build type.
static std::string getBuildTime()
Get the build time.
@ stPreCpp11
Before C++11.