1
2#if 0
3 Version strings for product keys... no comments can be allowed in this
4 file due to some usage of this in the build process.
5 // Licensed to the .NET Foundation under one or more agreements.
6 // The .NET Foundation licenses this file to you under the MIT license.
7 // See the LICENSE file in the project root for more information.
8#endif
9
10#include <version.h>
11#ifdef USE_CLR20_VERSION
12#include <asm_version20.h>
13#else
14#include <asm_version.h>
15#endif
16
17#ifdef CLR_MAJOR_VERSION
18#undef CLR_MAJOR_VERSION
19#endif
20
21#ifdef CLR_MINOR_VERSION
22#undef CLR_MINOR_VERSION
23#endif
24
25#ifdef CLR_BUILD_VERSION
26#undef CLR_BUILD_VERSION
27#endif
28
29#ifdef CLR_BUILD_VERSION_QFE
30#undef CLR_BUILD_VERSION_QFE
31#endif
32
33#ifdef VER_FILEVERSIONMINOR
34#undef VER_FILEVERSIONMINOR
35#endif
36
37#ifdef VER_FILEVERSIONBUILD
38#undef VER_FILEVERSIONBUILD
39#endif
40
41#ifdef VER_FILEVERSIONREVISION
42#undef VER_FILEVERSIONREVISION
43#endif
44
45#define CLR_MAJOR_VERSION rmj
46#define CLR_MINOR_VERSION rmm
47#define CLR_BUILD_VERSION rup
48#define CLR_BUILD_VERSION_QFE rpt
49
50#define VER_FILEVERSIONMINOR fvn
51#define VER_FILEVERSIONBUILD fvb
52#define VER_FILEVERSIONREVISION fvr
53
54#define VER_ASSEMBLYMAJORVERSION asm_rmj
55#define VER_ASSEMBLYMINORVERSION asm_rmm
56#define VER_ASSEMBLYBUILD asm_rup
57#define VER_ASSEMBLYBUILD_QFE asm_rpt
58
59#define QUOTE_MACRO_HELPER(x) #x
60#define QUOTE_MACRO(x) QUOTE_MACRO_HELPER(x)
61
62#ifndef QUOTE_MACRO_L
63#define QUOTE_MACRO_L_HELPER(x) L###x
64#define QUOTE_MACRO_L(x) QUOTE_MACRO_L_HELPER(x)
65#endif
66
67#define CONCAT_MACRO_HELPER(x, y) x ## y
68#define CONCAT_MACRO(x, y) CONCAT_MACRO_HELPER(x, y)
69
70#define VER_PRODUCTVERSION CLR_MAJOR_VERSION,CLR_MINOR_VERSION,CLR_BUILD_VERSION,CLR_BUILD_VERSION_QFE
71#define VER_DOTFILEVERSION CLR_MAJOR_VERSION,VER_FILEVERSIONMINOR,VER_FILEVERSIONBUILD,VER_FILEVERSIONREVISION
72#define VER_MANAGED_DOTFILEVERSION CLR_MAJOR_VERSION.VER_FILEVERSIONMINOR.VER_FILEVERSIONBUILD.VER_FILEVERSIONREVISION
73
74#define VER_DOTPRODUCTVERSION CLR_MAJOR_VERSION.CLR_MINOR_VERSION.CLR_BUILD_VERSION.CLR_BUILD_VERSION_QFE
75#define VER_DOTPRODUCTMAJORMINOR CLR_MAJOR_VERSION.CLR_MINOR_VERSION
76#define VER_DOTPRODUCTVERSIONNOQFE CLR_MAJOR_VERSION.CLR_MINOR_VERSION.CLR_BUILD_VERSION
77#define VER_DOTPRODUCTVERSIONZEROQFE CLR_MAJOR_VERSION.CLR_MINOR_VERSION.CLR_BUILD_VERSION.0
78#define VER_DOTASSEMBLYVERSION VER_ASSEMBLYMAJORVERSION.VER_ASSEMBLYMINORVERSION.VER_ASSEMBLYBUILD.VER_ASSEMBLYBUILD_QFE
79#define VER_DOTASSEMBLYVERSION3PART VER_ASSEMBLYMAJORVERSION.VER_ASSEMBLYMINORVERSION.VER_ASSEMBLYBUILD
80
81#define VER_UNDERSCORE_PRODUCTVERSION_STR3 CONCAT_MACRO(_, CLR_BUILD_VERSION)
82#define VER_UNDERSCORE_PRODUCTVERSION_STR2 CONCAT_MACRO(CLR_MINOR_VERSION, VER_UNDERSCORE_PRODUCTVERSION_STR3)
83#define VER_UNDERSCORE_PRODUCTVERSION_STR1 CONCAT_MACRO(_, VER_UNDERSCORE_PRODUCTVERSION_STR2)
84#define VER_UNDERSCORE_PRODUCTVERSION CONCAT_MACRO(CLR_MAJOR_VERSION, VER_UNDERSCORE_PRODUCTVERSION_STR1)
85
86#define VER_UNDERSCORE_PRODUCTVERSION_STR QUOTE_MACRO(VER_UNDERSCORE_PRODUCTVERSION)
87#define VER_UNDERSCORE_PRODUCTVERSION_STR_L QUOTE_MACRO_L(VER_UNDERSCORE_PRODUCTVERSION)
88
89#define FX_FILEVERSION_STR QUOTE_MACRO(VER_MANAGED_DOTFILEVERSION)
90#define VER_PRODUCTVERSION_STR QUOTE_MACRO(VER_DOTPRODUCTVERSION)
91#define VER_PRODUCTVERSION_STR_L QUOTE_MACRO_L(VER_DOTPRODUCTVERSION)
92
93#define VER_PRODUCTMAJORMINOR_STR QUOTE_MACRO(VER_DOTPRODUCTMAJORMINOR)
94#define VER_PRODUCTMAJORMINOR_STR_L QUOTE_MACRO_L(VER_DOTPRODUCTMAJORMINOR)
95
96#define VER_PRODUCTVERSION_NO_QFE_STR QUOTE_MACRO(VER_DOTPRODUCTVERSIONNOQFE)
97#define VER_PRODUCTVERSION_NO_QFE_STR_L QUOTE_MACRO_L(VER_DOTPRODUCTVERSIONNOQFE)
98
99#define VER_PRODUCTVERSION_ZERO_QFE_STR QUOTE_MACRO(VER_DOTPRODUCTVERSIONZEROQFE)
100#define VER_PRODUCTVERSION_ZERO_QFE_STR_L QUOTE_MACRO_L(VER_DOTPRODUCTVERSIONZEROQFE)
101
102#define VER_PRODUCTVERSION_NO_QFE_STR QUOTE_MACRO(VER_DOTPRODUCTVERSIONNOQFE)
103#define VER_PRODUCTVERSION_NO_QFE_STR_L QUOTE_MACRO_L(VER_DOTPRODUCTVERSIONNOQFE)
104
105#define VER_ASSEMBLYVERSION_STR QUOTE_MACRO(VER_DOTASSEMBLYVERSION)
106#define VER_ASSEMBLYVERSION_STR_L QUOTE_MACRO_L(VER_DOTASSEMBLYVERSION)
107
108#define VER_ASSEMBLYVERSION3PART_STR QUOTE_MACRO(VER_DOTASSEMBLYVERSION3PART)
109#define VER_ASSEMBLYVERSION3PART_STR_L QUOTE_MACRO_L(VER_DOTASSEMBLYVERSION3PART)
110
111#define VER_ECMA_PUBLICKEY b77a5c561934e089
112#define ECMA_PUBLICKEY_STR QUOTE_MACRO(VER_ECMA_PUBLICKEY)
113#define ECMA_PUBLICKEY_STR_L QUOTE_MACRO_L(VER_ECMA_PUBLICKEY)
114