Add versioning and .rc for windows

This commit is contained in:
Paul Reeves 2023-01-20 19:34:45 +01:00
parent f682e6c4cd
commit fbad97cb79
3 changed files with 70 additions and 0 deletions

34
src/MyFirstUDRKit.rc Normal file
View File

@ -0,0 +1,34 @@
#include "Winver.h"
#include "udr_build_no.h"
VS_VERSION_INFO VERSIONINFO
FILEFLAGSMASK VS_FF_DEBUG | VS_FF_PRERELEASE
FILEFLAGS VS_FF_PRERELEASE | VS_FF_SPECIALBUILD
FILEVERSION FILE_VER_NUMBER
PRODUCTVERSION FILE_VER_NUMBER
FILEOS VOS_NT_WINDOWS32
FILETYPE VFT_DLL
FILESUBTYPE VS_USER_DEFINED
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "00000409"
BEGIN
VALUE "CompanyName", "IBPhoenix\0"
VALUE "FileDescription", "My First UDR Kit\0"
VALUE "FileVersion", FILE_VER_STRING
VALUE "InternalName", "MyFirstUDRKit\0"
VALUE "OriginalFilename", "MyFirstUDRKit.dll\0"
VALUE "LegalCopyright", "Copyright (c) 2023 IBPhoenix\0"
VALUE "ProductName", "My First UDR Kit\0"
VALUE "ProductVersion", PRODUCT_VER_STRING
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x0, 1200 /* Neutral, Unicode */
END
END

10
src/udr_build_no.h Normal file
View File

@ -0,0 +1,10 @@
/*
FILE GENERATED BY write_build_no.sh
******* DO NOT EDIT *******
TO CHANGE ANY INFORMATION IN HERE PLEASE
EDIT write_build_no.sh
FORMAL BUILD NUMBER:2
*/
#define PRODUCT_VER_STRING "0.1.0.2"
#define FILE_VER_STRING "Linux-0.1.0.2"
#define FILE_VER_NUMBER 0, 1, 0, 2

26
write_build_no.sh Executable file
View File

@ -0,0 +1,26 @@
#!/bin/sh
MajorVer=0
MinorVer=1
RevNo=0
BuildNum=2
PRODUCT_VER_STRING=$MajorVer.$MinorVer.$RevNo.$BuildNum
FILE_VER_STRING=Linux-$MajorVer.$MinorVer.$RevNo.$BuildNum
FILE_VER_NUMBER="$MajorVer, $MinorVer, $RevNo, $BuildNum"
outfile=src/udr_build_no.h
cat > $outfile <<eof
/*
FILE GENERATED BY $(basename $0)
******* DO NOT EDIT *******
TO CHANGE ANY INFORMATION IN HERE PLEASE
EDIT $(basename $0)
FORMAL BUILD NUMBER:$BuildNum
*/
#define PRODUCT_VER_STRING "${PRODUCT_VER_STRING}"
#define FILE_VER_STRING "$FILE_VER_STRING"
#define FILE_VER_NUMBER $FILE_VER_NUMBER
eof