Add a RC file to add metadata to the pyrogenesis executable

This commit is contained in:
Stan 2024-08-26 15:12:12 +02:00
parent 631f7b292e
commit 028ec40165
Signed by untrusted user: Stan
GPG Key ID: 244943DFF8370D60
4 changed files with 42 additions and 1 deletions

View File

@ -1070,6 +1070,7 @@ function setup_main_exe ()
if os.istarget("windows") then
files { source_root.."lib/sysdep/os/win/icon.rc" }
files { source_root.."lib/sysdep/os/win/pyrogenesis.rc" }
-- from "lowlevel" static lib; must be added here to be linked in
files { source_root.."lib/sysdep/os/win/error_dialog.rc" }

View File

@ -20,4 +20,6 @@
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#define PYROGENESIS_VERSION "0.0.27.0"
#define PYROGENESIS_VERSION_WORD 0,0,27,0
extern wchar_t build_version[];

View File

@ -0,0 +1,38 @@
#include "lib/build_version.h"
#include <winver.h>
#ifndef DEBUG
#define VER_DEBUG 0
#else
#define VER_DEBUG VS_FF_DEBUG
#endif
VS_VERSION_INFO VERSIONINFO
FILEVERSION PYROGENESIS_VERSION_WORD
PRODUCTVERSION PYROGENESIS_VERSION_WORD
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
FILEFLAGS VER_DEBUG
FILEOS VOS_NT_WINDOWS32
FILETYPE VFT_APP
FILESUBTYPE VFT2_UNKNOWN
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904E4"
BEGIN
VALUE "CompanyName", "Wildfire Games"
VALUE "FileDescription", "Pyrogenesis engine"
VALUE "FileVersion", PYROGENESIS_VERSION
VALUE "InternalName", "pyrogenesis.rc"
VALUE "LegalCopyright", "Copyright (C) 2024 Wildfire Games"
VALUE "OriginalFilename", "pyrogenesis.rc"
VALUE "ProductName", "Pyrogenesis"
VALUE "ProductVersion", PYROGENESIS_VERSION
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 0x4E4
END
END

View File

@ -24,7 +24,7 @@
#include "lib/sysdep/sysdep.h"
#include "lib/build_version.h"
const char* engine_version = "0.0.27";
const char* engine_version = PYROGENESIS_VERSION;
const char* main_window_name = "0 A.D.";
// convert contents of file <in_filename> from char to wchar_t and