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 #define ANGLE_VERSION_STRING \ 25 ANGLE_MACRO_STRINGIFY(ANGLE_MAJOR_VERSION) \ 26 "." ANGLE_MACRO_STRINGIFY(ANGLE_MINOR_VERSION) "." ANGLE_MACRO_STRINGIFY( \ 27 ANGLE_REVISION) " git hash: " ANGLE_COMMIT_HASH 28 29 #endif // COMMON_ANGLE_VERSION_H_ 30