Commit 3929c1c4 by Jamie Madill

Store the commit date in version.h, and in the DLL properties.

This will allow Chrome, or other apps who reference ANGLE internally, to pull chronological version information about ANGLE. Change-Id: I7dbd5b60b533f176b34f7248d70a1d9757ae99d6 Reviewed-on: https://chromium-review.googlesource.com/179100Reviewed-by: 's avatarShannon Woods <shannonwoods@chromium.org> Reviewed-by: 's avatarNicolas Capens <nicolascapens@chromium.org> Commit-Queue: Nicolas Capens <nicolascapens@chromium.org> Tested-by: 's avatarNicolas Capens <nicolascapens@chromium.org>
parent 39173f13
@echo off @echo off
echo|set /p=#define COMMIT_HASH > %~dp0\common\commit.h
(git rev-parse --short=12 HEAD >> %~dp0\common\commit.h) || (echo badf00dbad00 >> %~dp0\common\commit.h) > NUL REM commit hash
\ No newline at end of file (FOR /F "delims=" %%i IN ('call git rev-parse --short^=12 HEAD') DO set _Str=%%i) || (set _Str=badf00dbad00)
set _Str=#define COMMIT_HASH %_Str%
echo %_Str% > %~dp0\common\commit.h
REM commit date
(FOR /F "delims=" %%i IN ('git show -s --format^="%%ci" HEAD') DO set _Str=%%i) || (set _Str=Unknown Date)
set _Str=#define COMMIT_DATE "%_Str%"
echo %_Str% >> %~dp0\common\commit.h
#include "commit.h" #include "commit.h"
#define MAJOR_VERSION 3 #define MAJOR_VERSION 2
#define MINOR_VERSION 0 #define MINOR_VERSION 1
#define STRINGIFY(x) #x #define STRINGIFY(x) #x
#define MACRO_STRINGIFY(x) STRINGIFY(x) #define MACRO_STRINGIFY(x) STRINGIFY(x)
......
...@@ -78,6 +78,7 @@ BEGIN ...@@ -78,6 +78,7 @@ BEGIN
VALUE "PrivateBuild", VERSION_STRING VALUE "PrivateBuild", VERSION_STRING
VALUE "ProductName", "ANGLE libEGL Dynamic Link Library" VALUE "ProductName", "ANGLE libEGL Dynamic Link Library"
VALUE "ProductVersion", VERSION_STRING VALUE "ProductVersion", VERSION_STRING
VALUE "Comments", "Build Date: " COMMIT_DATE
END END
END END
BLOCK "VarFileInfo" BLOCK "VarFileInfo"
......
...@@ -78,6 +78,7 @@ BEGIN ...@@ -78,6 +78,7 @@ BEGIN
VALUE "PrivateBuild", VERSION_STRING VALUE "PrivateBuild", VERSION_STRING
VALUE "ProductName", "ANGLE libGLESv2 Dynamic Link Library" VALUE "ProductName", "ANGLE libGLESv2 Dynamic Link Library"
VALUE "ProductVersion", VERSION_STRING VALUE "ProductVersion", VERSION_STRING
VALUE "Comments", "Build Date: " COMMIT_DATE
END END
END END
BLOCK "VarFileInfo" BLOCK "VarFileInfo"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment