The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

a/util: Set version constants from CMake

authored by

Robbie Bridgewater and committed by
Ryan Pavlik
44d7b848 03780e9c

+12
+8
src/xrt/auxiliary/util/u_git_tag.c.in
··· 10 10 #include "util/u_git_tag.h" 11 11 12 12 #define GIT_DESC "@GIT_DESC@" 13 + 14 + #define MAJOR_VERSION @CMAKE_PROJECT_VERSION_MAJOR@ 15 + #define MINOR_VERSION @CMAKE_PROJECT_VERSION_MINOR@ 16 + #define PATCH_VERSION @CMAKE_PROJECT_VERSION_PATCH@ 17 + 13 18 const char u_git_tag[] = GIT_DESC; 19 + const uint16_t u_version_major = MAJOR_VERSION; 20 + const uint16_t u_version_minor = MINOR_VERSION; 21 + const uint16_t u_version_patch = PATCH_VERSION;
+4
src/xrt/auxiliary/util/u_git_tag.h
··· 9 9 10 10 #pragma once 11 11 12 + #include <stdint.h> 12 13 13 14 #ifdef __cplusplus 14 15 extern "C" { ··· 16 17 17 18 18 19 extern const char u_git_tag[]; 20 + extern const uint16_t u_version_major; 21 + extern const uint16_t u_version_minor; 22 + extern const uint16_t u_version_patch; 19 23 20 24 21 25 #ifdef __cplusplus