forked from axmolengine/axmol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaxmolver.h.in
36 lines (28 loc) · 1.12 KB
/
axmolver.h.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#pragma once
/* Define the axmol version */
// 0x00 HI ME LO
// 00 03 08 00
#define AX_VERSION_MAJOR 2
#define AX_VERSION_MINOR 4
#define AX_VERSION_PATCH 0
/* Define axmol version helper macros */
#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
/* Define whether axmol/.git present */
#define AX_GIT_PRESENT @AX_GIT_PRESENT@
/* Define to the library build number from git commit count */
#define AX_BUILD_NUM "@AX_BUILD_NUM@"
/* Define the branch being built */
#define AX_GIT_BRANCH "@AX_GIT_BRANCH@"
/* Define the hash of the head commit */
#define AX_GIT_COMMIT_HASH "@AX_GIT_COMMIT_HASH@"
/* 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