mirror of https://github.com/pvnis/srsRAN_4G.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1010 B
C
52 lines
1010 B
C
4 years ago
|
/**
|
||
7 years ago
|
*
|
||
4 years ago
|
* \section COPYRIGHT
|
||
7 years ago
|
*
|
||
4 years ago
|
* Copyright 2013-2021 Software Radio Systems Limited
|
||
7 years ago
|
*
|
||
4 years ago
|
* 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.
|
||
7 years ago
|
*
|
||
|
*/
|
||
|
|
||
4 years ago
|
#ifndef SRSRAN_BUILD_INFO_H_IN
|
||
|
#define SRSRAN_BUILD_INFO_H_IN
|
||
7 years ago
|
|
||
4 years ago
|
#include "srsran/config.h"
|
||
6 years ago
|
|
||
7 years ago
|
# ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
# endif
|
||
|
|
||
7 years ago
|
#ifdef BUILD_TYPE_RELEASE
|
||
|
static char build_mode[] = "Release";
|
||
7 years ago
|
#else
|
||
7 years ago
|
#ifdef BUILD_TYPE_DEBUG
|
||
7 years ago
|
static char build_mode[] = "Debug";
|
||
7 years ago
|
#else
|
||
|
#ifdef BUILD_TYPE_RELWITHDEBINFO
|
||
|
static char build_mode[] = "RelWithDebInfo";
|
||
|
#else
|
||
|
static char build_mode[] = "unknown";
|
||
|
#endif
|
||
|
#endif
|
||
7 years ago
|
#endif
|
||
|
|
||
4 years ago
|
// the configured build options for srsRAN
|
||
7 years ago
|
static char build_info[] = "commit @GIT_COMMIT_HASH@ on branch @GIT_BRANCH@";
|
||
|
|
||
4 years ago
|
SRSRAN_API char* srsran_get_build_info() {
|
||
7 years ago
|
return build_info;
|
||
|
};
|
||
|
|
||
4 years ago
|
SRSRAN_API char* srsran_get_build_mode() {
|
||
7 years ago
|
return build_mode;
|
||
|
}
|
||
|
|
||
|
# ifdef __cplusplus
|
||
|
}
|
||
|
# endif
|
||
|
|
||
|
#endif // BUILD_INFO_
|