Version 1.24
[libovr-mingw-w64-jolly.git] / Include / OVR_Version.h
1 /*************************************************************************************\r
2  \file      OVR_Version.h\r
3  \brief     This header provides LibOVR version identification.\r
4  \copyright Copyright 2014-2016 Oculus VR, LLC All Rights reserved.\r
5  *************************************************************************************/\r
6 \r
7 #ifndef OVR_Version_h\r
8 #define OVR_Version_h\r
9 \r
10 \r
11 /// Conventional string-ification macro.\r
12 #if !defined(OVR_STRINGIZE)\r
13 #define OVR_STRINGIZEIMPL(x) #x\r
14 #define OVR_STRINGIZE(x) OVR_STRINGIZEIMPL(x)\r
15 #endif\r
16 \r
17 // Master version numbers\r
18 #define OVR_PRODUCT_VERSION 1 // Product version doesn't participate in semantic versioning.\r
19 #define OVR_MAJOR_VERSION 1 // If you change these values then you need to also make sure to change\r
20 // LibOVR/Projects/Windows/LibOVR.props in parallel.\r
21 #define OVR_MINOR_VERSION 24 //\r
22 #define OVR_PATCH_VERSION 0\r
23 #define OVR_BUILD_NUMBER 0\r
24 \r
25 // This is the ((product * 100) + major) version of the service that the DLL is compatible with.\r
26 // When we backport changes to old versions of the DLL we update the old DLLs\r
27 // to move this version number up to the latest version.\r
28 // The DLL is responsible for checking that the service is the version it supports\r
29 // and returning an appropriate error message if it has not been made compatible.\r
30 #define OVR_DLL_COMPATIBLE_VERSION 101\r
31 \r
32 // This is the minor version representing the minimum version an application can query with this\r
33 // SDK. Calls ovr_Initialize will fail if the application requests a version that is less than this.\r
34 #define OVR_MIN_REQUESTABLE_MINOR_VERSION 17\r
35 \r
36 #define OVR_FEATURE_VERSION 0\r
37 \r
38 /// "Major.Minor.Patch"\r
39 #if !defined(OVR_VERSION_STRING)\r
40 #define OVR_VERSION_STRING OVR_STRINGIZE(OVR_MAJOR_VERSION.OVR_MINOR_VERSION.OVR_PATCH_VERSION)\r
41 #endif\r
42 \r
43 /// "Major.Minor.Patch.Build"\r
44 #if !defined(OVR_DETAILED_VERSION_STRING)\r
45 #define OVR_DETAILED_VERSION_STRING \\r
46   OVR_STRINGIZE(OVR_MAJOR_VERSION.OVR_MINOR_VERSION.OVR_PATCH_VERSION.OVR_BUILD_NUMBER)\r
47 #endif\r
48 \r
49 /// \brief file description for version info\r
50 /// This appears in the user-visible file properties. It is intended to convey publicly\r
51 /// available additional information such as feature builds.\r
52 #if !defined(OVR_FILE_DESCRIPTION_STRING)\r
53 #if defined(_DEBUG)\r
54 #define OVR_FILE_DESCRIPTION_STRING "dev build debug"\r
55 #else\r
56 #define OVR_FILE_DESCRIPTION_STRING "dev build"\r
57 #endif\r
58 #endif\r
59 \r
60 #endif // OVR_Version_h\r