Edit

kc3-lang/angle/src/common/angle_version.h

Branch :

  • Show log

    Commit

  • Author : Jamie Madill
    Date : 2020-09-22 23:10:04
    Hash : 62778cb9
    Message : Rename version/commit headers. Prefix the files with angle_ to disambiguate them from other tools. Bug: b/168736059 Change-Id: I7be25ca18fb69d7f2ab71bdf355932865d134954 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2425197 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: Geoff Lang <geofflang@chromium.org>

  • src/common/angle_version.h
  • //
    // Copyright 2014 The ANGLE Project Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style license that can be
    // found in the LICENSE file.
    //
    // angle_version.h: ANGLE version constants. Generated from git commands.
    
    #ifndef COMMON_VERSION_H_
    #define COMMON_VERSION_H_
    
    #include "angle_commit.h"
    
    #define ANGLE_MAJOR_VERSION 2
    #define ANGLE_MINOR_VERSION 1
    
    #ifndef ANGLE_REVISION
    #    define ANGLE_REVISION ANGLE_COMMIT_POSITION
    #endif
    
    #define ANGLE_STRINGIFY(x) #x
    #define ANGLE_MACRO_STRINGIFY(x) ANGLE_STRINGIFY(x)
    
    #define ANGLE_VERSION_STRING                                                  \
        ANGLE_MACRO_STRINGIFY(ANGLE_MAJOR_VERSION)                                \
        "." ANGLE_MACRO_STRINGIFY(ANGLE_MINOR_VERSION) "." ANGLE_MACRO_STRINGIFY( \
            ANGLE_REVISION) " git hash: " ANGLE_COMMIT_HASH
    
    #endif  // COMMON_VERSION_H_