Use _SYS_STR for version info

This commit is contained in:
Luke Street 2021-03-29 18:28:15 -04:00
parent a72c14f5fb
commit 6812670cc8
1 changed files with 15 additions and 7 deletions

View File

@ -1,17 +1,25 @@
#ifndef VERSION_H
#define VERSION_H
#define URDE_WC_DESCRIBE "@URDE_WC_DESCRIBE@"
#define URDE_VERSION_STRING "@URDE_VERISON_STRING@"
#ifndef _SYS_STR
#ifdef _WIN32
#define _SYS_STR(val) L##val
#else
#define _SYS_STR(val) val
#endif
#endif
#define URDE_WC_BRANCH "@URDE_WC_BRANCH@"
#define URDE_WC_REVISION "@URDE_WC_REVISION@"
#define URDE_WC_DATE "@URDE_WC_DATE@"
#define URDE_WC_DESCRIBE _SYS_STR("@URDE_WC_DESCRIBE@")
#define URDE_VERSION_STRING _SYS_STR("@URDE_VERISON_STRING@")
#define URDE_WC_BRANCH _SYS_STR("@URDE_WC_BRANCH@")
#define URDE_WC_REVISION _SYS_STR("@URDE_WC_REVISION@")
#define URDE_WC_DATE _SYS_STR("@URDE_WC_DATE@")
#if defined(__x86_64__) || defined(_M_AMD64)
#define URDE_DLPACKAGE "urde-@URDE_WC_DESCRIBE@-@PLATFORM_NAME@-x86_64-@URDE_VECTOR_ISA@"
#define URDE_DLPACKAGE _SYS_STR("urde-@URDE_WC_DESCRIBE@-@PLATFORM_NAME@-x86_64-@URDE_VECTOR_ISA@")
#elif defined(__aarch64__) || defined(_M_ARM64)
#define URDE_DLPACKAGE "urde-@URDE_WC_DESCRIBE@-@PLATFORM_NAME@-arm64"
#define URDE_DLPACKAGE _SYS_STR("urde-@URDE_WC_DESCRIBE@-@PLATFORM_NAME@-arm64")
#endif
#endif