xref: /aosp_15_r20/external/fastrpc/inc/version.h (revision 418b791d679beb2078b579a3b6936cf330c41799)
1*418b791dSBob Badour #ifndef VERSION_H
2*418b791dSBob Badour #define VERSION_H
3*418b791dSBob Badour /**
4*418b791dSBob Badour  * Copyright (c) 2019, The Linux Foundation. All rights reserved.
5*418b791dSBob Badour  *
6*418b791dSBob Badour  * Redistribution and use in source and binary forms, with or without
7*418b791dSBob Badour  * modification, are permitted provided that the following conditions are
8*418b791dSBob Badour  * met:
9*418b791dSBob Badour  *    * Redistributions of source code must retain the above copyright
10*418b791dSBob Badour  *      notice, this list of conditions and the following disclaimer.
11*418b791dSBob Badour  *    * Redistributions in binary form must reproduce the above
12*418b791dSBob Badour  *      copyright notice, this list of conditions and the following
13*418b791dSBob Badour  *      disclaimer in the documentation and/or other materials provided
14*418b791dSBob Badour  *      with the distribution.
15*418b791dSBob Badour  *    * Neither the name of The Linux Foundation nor the names of its
16*418b791dSBob Badour  *      contributors may be used to endorse or promote products derived
17*418b791dSBob Badour  *      from this software without specific prior written permission.
18*418b791dSBob Badour  *
19*418b791dSBob Badour  * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
20*418b791dSBob Badour  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
21*418b791dSBob Badour  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
22*418b791dSBob Badour  * ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
23*418b791dSBob Badour  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24*418b791dSBob Badour  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25*418b791dSBob Badour  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
26*418b791dSBob Badour  * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
27*418b791dSBob Badour  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
28*418b791dSBob Badour  * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
29*418b791dSBob Badour  * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30*418b791dSBob Badour  */
31*418b791dSBob Badour 
32*418b791dSBob Badour #if !defined(VERSION_CL)
33*418b791dSBob Badour #define VERSION_CL "?"
34*418b791dSBob Badour #endif
35*418b791dSBob Badour 
36*418b791dSBob Badour #if !defined(VERSION_PROD)
37*418b791dSBob Badour #define VERSION_PROD "unknown"
38*418b791dSBob Badour #endif
39*418b791dSBob Badour 
40*418b791dSBob Badour #if !defined(VERSION_BRANCH)
41*418b791dSBob Badour #define VERSION_BRANCH "?"
42*418b791dSBob Badour #endif
43*418b791dSBob Badour 
44*418b791dSBob Badour #if !defined(VERSION_NUM)
45*418b791dSBob Badour #define VERSION_NUM "?.?.?.?"
46*418b791dSBob Badour #endif
47*418b791dSBob Badour 
48*418b791dSBob Badour #define VERSION_STRING                                              \
49*418b791dSBob Badour    VERSION_PROD " "                                                 \
50*418b791dSBob Badour    VERSION_NUM " "                                                  \
51*418b791dSBob Badour    "(br=" VERSION_BRANCH "; cl=" VERSION_CL ")"
52*418b791dSBob Badour 
53*418b791dSBob Badour /*
54*418b791dSBob Badour =======================================================================
55*418b791dSBob Badour MACROS DOCUMENTATION
56*418b791dSBob Badour =======================================================================
57*418b791dSBob Badour 
58*418b791dSBob Badour VERSION_MAJOR
59*418b791dSBob Badour 
60*418b791dSBob Badour Description:
61*418b791dSBob Badour 	Defines the major release number of the version.
62*418b791dSBob Badour 
63*418b791dSBob Badour Comments:
64*418b791dSBob Badour     It has to be a valid numerical value
65*418b791dSBob Badour =======================================================================
66*418b791dSBob Badour 
67*418b791dSBob Badour VERSION_MINOR
68*418b791dSBob Badour 
69*418b791dSBob Badour Description:
70*418b791dSBob Badour 	Defines the minor release number of the version.
71*418b791dSBob Badour 
72*418b791dSBob Badour Comments:
73*418b791dSBob Badour     It has to be a valid numerical value
74*418b791dSBob Badour =======================================================================
75*418b791dSBob Badour 
76*418b791dSBob Badour VERSION_MAINT
77*418b791dSBob Badour 
78*418b791dSBob Badour Description:
79*418b791dSBob Badour 	Defines the maintenance release of the version.
80*418b791dSBob Badour 
81*418b791dSBob Badour Comments:
82*418b791dSBob Badour     It has to be a valid numerical value
83*418b791dSBob Badour =======================================================================
84*418b791dSBob Badour 
85*418b791dSBob Badour VERSION_BUILD
86*418b791dSBob Badour 
87*418b791dSBob Badour Description:
88*418b791dSBob Badour 	Defines the build ID of the version.
89*418b791dSBob Badour 
90*418b791dSBob Badour Comments:
91*418b791dSBob Badour     It has to be a valid numerical value
92*418b791dSBob Badour =======================================================================
93*418b791dSBob Badour 
94*418b791dSBob Badour VERSION_STRING
95*418b791dSBob Badour 
96*418b791dSBob Badour Description:
97*418b791dSBob Badour 	Defines the version string that specifies the version number.
98*418b791dSBob Badour 
99*418b791dSBob Badour Definition:
100*418b791dSBob Badour 
101*418b791dSBob Badour    #define VERSION_STRING "a.b.c.d (name=value;name=value;...)"
102*418b791dSBob Badour 	where a=major release number
103*418b791dSBob Badour 	      b=minor release number
104*418b791dSBob Badour 	      c=maintenance release number
105*418b791dSBob Badour 	      d=build number
106*418b791dSBob Badour 
107*418b791dSBob Badour 	name=value pair provides additional information about the build.
108*418b791dSBob Badour 	Example:
109*418b791dSBob Badour 	patch/feature=comma separated list of features/patches that have been installed.
110*418b791dSBob Badour 	br=p4 branch that was used for the build
111*418b791dSBob Badour 	cl=p4 change list number
112*418b791dSBob Badour 	machine=hostname of the machine that was used for the build.
113*418b791dSBob Badour 
114*418b791dSBob Badour Comments:
115*418b791dSBob Badour 
116*418b791dSBob Badour =======================================================================
117*418b791dSBob Badour */
118*418b791dSBob Badour 
119*418b791dSBob Badour #endif // VERSION_H
120