|
|
|
/**
|
|
|
|
*
|
|
|
|
* \section COPYRIGHT
|
|
|
|
*
|
|
|
|
* Copyright 2013-2020 Software Radio Systems Limited
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SRSLTE_BUILD_INFO_H_IN
|
|
|
|
#define SRSLTE_BUILD_INFO_H_IN
|
|
|
|
|
|
|
|
#include "srslte/config.h"
|
|
|
|
|
|
|
|
# ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
# endif
|
|
|
|
|
|
|
|
#ifdef BUILD_TYPE_RELEASE
|
|
|
|
static char build_mode[] = "Release";
|
|
|
|
#else
|
|
|
|
#ifdef BUILD_TYPE_DEBUG
|
|
|
|
static char build_mode[] = "Debug";
|
|
|
|
#else
|
|
|
|
#ifdef BUILD_TYPE_RELWITHDEBINFO
|
|
|
|
static char build_mode[] = "RelWithDebInfo";
|
|
|
|
#else
|
|
|
|
static char build_mode[] = "unknown";
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#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_
|