blob: 60d306c320c9b5a0ec75bb15a4e0129d6f90f1f2 [file] [log] [blame]
Nicolas Capense5051aa2018-10-02 14:35:57 -04001// Copyright 2018 The SwiftShader Authors. All Rights Reserved.
Nicolas Capens68a82382018-10-02 13:16:55 -04002//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
Tim Van Patten9da287f2019-11-07 10:27:18 -070015#ifndef Version_h
16#define Version_h
17
Nicolas Capense5051aa2018-10-02 14:35:57 -040018#define MAJOR_VERSION 5
19#define MINOR_VERSION 0
Nicolas Capensee841c52018-11-13 14:18:26 -050020#define PATCH_VERSION 0
Nicolas Capensdc2966a2018-10-31 11:25:15 -040021#define BUILD_REVISION 1
Nicolas Capens68a82382018-10-02 13:16:55 -040022
23#define STRINGIFY(x) #x
24#define MACRO_STRINGIFY(x) STRINGIFY(x)
25
26#define REVISION_STRING MACRO_STRINGIFY(BUILD_REVISION)
Antonio Maiorano71c49f82020-04-27 11:33:30 -040027#define VERSION_STRING \
28 MACRO_STRINGIFY(MAJOR_VERSION) \
29 "." MACRO_STRINGIFY(MINOR_VERSION) "." MACRO_STRINGIFY(PATCH_VERSION)
Tim Van Patten9da287f2019-11-07 10:27:18 -070030
Antonio Maiorano71c49f82020-04-27 11:33:30 -040031#endif // Version_h