2023-06-12 09:14:23 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
/* Define the axmol version */
|
|
|
|
// 0x00 HI ME LO
|
|
|
|
// 00 03 08 00
|
2023-09-02 19:56:50 +08:00
|
|
|
#define AX_VERSION_MAJOR 2
|
2023-09-22 19:40:40 +08:00
|
|
|
#define AX_VERSION_MINOR 1
|
2024-06-10 10:29:08 +08:00
|
|
|
#define AX_VERSION_PATCH 4
|
2023-06-12 09:14:23 +08:00
|
|
|
|
|
|
|
/* Define axmol version helper macros */
|
2023-12-10 00:08:05 +08:00
|
|
|
#define AX_VERSION_MAKE(a, b, c) ((a << 16) | (b << 8) | (c & 0xff))
|
|
|
|
#define AX_VERSION_NUM AX_VERSION_MAKE(AX_VERSION_MAJOR, AX_VERSION_MINOR, AX_VERSION_PATCH)
|
|
|
|
#define AX_VERSION AX_VERSION_NUM
|
2023-06-12 09:14:23 +08:00
|
|
|
|
2023-12-10 00:08:05 +08:00
|
|
|
/* Define whether axmol/.git present */
|
2023-12-08 00:13:39 +08:00
|
|
|
#define AX_GIT_PRESENT @AX_GIT_PRESENT@
|
|
|
|
|
2023-06-12 09:14:23 +08:00
|
|
|
/* Define to the library build number from git commit count */
|
2023-12-08 00:13:39 +08:00
|
|
|
#define AX_BUILD_NUM "@AX_BUILD_NUM@"
|
2023-06-12 09:14:23 +08:00
|
|
|
|
|
|
|
/* Define the branch being built */
|
2023-12-08 00:13:39 +08:00
|
|
|
#define AX_GIT_BRANCH "@AX_GIT_BRANCH@"
|
2023-06-12 09:14:23 +08:00
|
|
|
|
|
|
|
/* Define the hash of the head commit */
|
2023-12-08 00:13:39 +08:00
|
|
|
#define AX_GIT_COMMIT_HASH "@AX_GIT_COMMIT_HASH@"
|
2023-12-10 00:08:05 +08:00
|
|
|
|
|
|
|
/* Define the axmol version string */
|
|
|
|
#define _AXSTR(R) #R
|
|
|
|
#define _AXMACROSTR(R) _AXSTR(R)
|
|
|
|
#define AX_VERSION_STR _AXMACROSTR(AX_VERSION_MAJOR) "." _AXMACROSTR(AX_VERSION_MINOR) "." _AXMACROSTR(AX_VERSION_PATCH)
|
|
|
|
|
|
|
|
#if AX_GIT_PRESENT
|
|
|
|
# define AX_VERSION_STR_FULL AX_VERSION_STR "-" AX_GIT_COMMIT_HASH
|
|
|
|
#else
|
|
|
|
# define AX_VERSION_STR_FULL AX_VERSION_STR
|
|
|
|
#endif
|