lokinet/llarp/constants/version.hpp

42 lines
848 B
C++
Raw Normal View History

2018-11-19 23:38:39 +00:00
#ifndef LLARP_VERSION_HPP
#define LLARP_VERSION_HPP
2018-01-25 16:24:33 +00:00
#if defined(_WIN32) && defined(RC_INVOKED)
2019-09-20 19:21:04 +00:00
#define LLARP_VERSION 0, 5, 2, 0
#else
2018-01-25 16:24:33 +00:00
#ifndef LLARP_VERSION_MAJ
#define LLARP_VERSION_MAJ "0"
#endif
#ifndef LLARP_VERSION_MIN
2019-08-29 11:45:58 +00:00
#define LLARP_VERSION_MIN "5"
2018-01-25 16:24:33 +00:00
#endif
#ifndef LLARP_VERSION_PATCH
2019-09-20 19:21:04 +00:00
#define LLARP_VERSION_PATCH "2"
2018-01-25 16:24:33 +00:00
#endif
#ifndef LLARP_VERSION_NUM
#ifdef GIT_REV
2018-02-01 13:21:00 +00:00
#define LLARP_VERSION_NUM \
"-" LLARP_VERSION_MAJ "." LLARP_VERSION_MIN "." LLARP_VERSION_PATCH \
2018-01-29 14:27:24 +00:00
"-" GIT_REV
2018-01-25 16:24:33 +00:00
#else
2018-02-01 13:21:00 +00:00
#define LLARP_VERSION_NUM \
2018-01-29 14:27:24 +00:00
"-" LLARP_VERSION_MAJ "." LLARP_VERSION_MIN "." LLARP_VERSION_PATCH
2018-01-25 16:24:33 +00:00
#endif
#endif
#define LLARP_VERSION "lokinet" LLARP_VERSION_NUM
2018-01-25 16:24:33 +00:00
#ifndef LLARP_RELEASE_MOTTO
#define LLARP_RELEASE_MOTTO "(dev build)"
#endif
2018-11-19 23:38:39 +00:00
2019-01-02 22:21:29 +00:00
struct Version
{
static const char LLARP_NET_ID[];
};
#endif
2018-01-25 16:24:33 +00:00
#endif