srsLTE/lib/include/srslte/build_info.h.in

52 lines
1010 B
C
Raw Normal View History

/**
2017-11-23 04:25:40 -08:00
*
* \section COPYRIGHT
2017-11-23 04:25:40 -08:00
*
* Copyright 2013-2020 Software Radio Systems Limited
2017-11-23 04:25:40 -08:00
*
* By using this file, you agree to the terms and conditions set
* forth in the LICENSE file which can be found at the top level of
* the distribution.
2017-11-23 04:25:40 -08:00
*
*/
2018-03-31 10:04:04 -07:00
#ifndef SRSLTE_BUILD_INFO_H_IN
#define SRSLTE_BUILD_INFO_H_IN
2017-11-23 04:25:40 -08:00
2019-05-27 07:45:12 -07:00
#include "srslte/config.h"
2017-11-23 04:25:40 -08:00
# ifdef __cplusplus
extern "C" {
# endif
#ifdef BUILD_TYPE_RELEASE
static char build_mode[] = "Release";
2017-11-23 04:25:40 -08:00
#else
#ifdef BUILD_TYPE_DEBUG
2017-11-23 04:25:40 -08:00
static char build_mode[] = "Debug";
#else
#ifdef BUILD_TYPE_RELWITHDEBINFO
static char build_mode[] = "RelWithDebInfo";
#else
static char build_mode[] = "unknown";
#endif
#endif
2017-11-23 04:25:40 -08:00
#endif
// the configured build options for srsLTE
static char build_info[] = "commit @GIT_COMMIT_HASH@ on branch @GIT_BRANCH@";
SRSLTE_API char* srslte_get_build_info() {
return build_info;
};
SRSLTE_API char* srslte_get_build_mode() {
return build_mode;
}
# ifdef __cplusplus
}
# endif
#endif // BUILD_INFO_