srsLTE/lib/include/srsran/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
*
2021-03-19 03:45:56 -07:00
* Copyright 2013-2021 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
*
*/
2021-03-19 03:45:56 -07:00
#ifndef SRSRAN_BUILD_INFO_H_IN
#define SRSRAN_BUILD_INFO_H_IN
2017-11-23 04:25:40 -08:00
2021-03-19 03:45:56 -07:00
#include "srsran/config.h"
2019-05-27 07:45:12 -07:00
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
2021-03-19 03:45:56 -07:00
// the configured build options for srsRAN
2017-11-23 04:25:40 -08:00
static char build_info[] = "commit @GIT_COMMIT_HASH@ on branch @GIT_BRANCH@";
2021-03-19 03:45:56 -07:00
SRSRAN_API char* srsran_get_build_info() {
2017-11-23 04:25:40 -08:00
return build_info;
};
2021-03-19 03:45:56 -07:00
SRSRAN_API char* srsran_get_build_mode() {
2017-11-23 04:25:40 -08:00
return build_mode;
}
# ifdef __cplusplus
}
# endif
#endif // BUILD_INFO_