xref: /aosp_15_r20/external/angle/src/common/angle_version.h (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1 //
2 // Copyright 2014 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 //
6 // angle_version.h: ANGLE version constants. Generated from git commands.
7 
8 #ifndef COMMON_ANGLE_VERSION_H_
9 #define COMMON_ANGLE_VERSION_H_
10 
11 #include "ANGLEShaderProgramVersion.h"
12 #include "angle_commit.h"
13 
14 #define ANGLE_MAJOR_VERSION 2
15 #define ANGLE_MINOR_VERSION 1
16 
17 #ifndef ANGLE_REVISION
18 #    define ANGLE_REVISION ANGLE_COMMIT_POSITION
19 #endif
20 
21 #define ANGLE_STRINGIFY(x) #x
22 #define ANGLE_MACRO_STRINGIFY(x) ANGLE_STRINGIFY(x)
23 
24 #if (ANGLE_REVISION != 0)
25 #    define ANGLE_REVISION_SUFFIX "." ANGLE_MACRO_STRINGIFY(ANGLE_REVISION)
26 #else
27 #    define ANGLE_REVISION_SUFFIX ""
28 #endif
29 
30 #define ANGLE_VERSION_STRING                                             \
31     ANGLE_MACRO_STRINGIFY(ANGLE_MAJOR_VERSION)                           \
32     "." ANGLE_MACRO_STRINGIFY(ANGLE_MINOR_VERSION) ANGLE_REVISION_SUFFIX \
33         " git hash: " ANGLE_COMMIT_HASH
34 
35 #endif  // COMMON_ANGLE_VERSION_H_
36