2015-09-15 09:21:16 -04:00
|
|
|
/*
|
2013-08-07 21:00:09 -04:00
|
|
|
* Copyright 2013 (c) Anna Schumaker.
|
2013-07-05 12:14:51 -04:00
|
|
|
*/
|
2014-06-21 09:37:47 -04:00
|
|
|
#ifndef OCARINA_CORE_VERSION_H
|
|
|
|
#define OCARINA_CORE_VERSION_H
|
2013-07-05 12:14:51 -04:00
|
|
|
|
2016-02-05 07:57:22 -05:00
|
|
|
#ifdef CONFIG_TESTING
|
2016-03-03 08:17:12 -05:00
|
|
|
#define OCARINA_NAME "ocarina-test/"CONFIG_TESTING_DIR
|
2016-02-05 07:57:22 -05:00
|
|
|
#elif CONFIG_DEBUG
|
|
|
|
#define OCARINA_NAME "ocarina-debug"
|
|
|
|
#else
|
|
|
|
#define OCARINA_NAME "ocarina"
|
|
|
|
#endif
|
|
|
|
|
2015-09-15 09:21:16 -04:00
|
|
|
/*
|
|
|
|
* Scons sets the current version by passing the
|
|
|
|
* -DCONFIG_VERSION macro when Ocarina is compiled.
|
2014-09-12 16:08:58 -04:00
|
|
|
*/
|
2013-07-05 12:14:51 -04:00
|
|
|
static inline const char *get_version()
|
|
|
|
{
|
2013-07-05 21:40:10 -04:00
|
|
|
return CONFIG_VERSION;
|
2013-07-05 12:14:51 -04:00
|
|
|
}
|
|
|
|
|
2014-06-21 09:37:47 -04:00
|
|
|
#endif /* OCARINA_CORE_VERSION_H */
|