From 76ed3a342a9774a8b2a56fca868d2c9c36227e5e Mon Sep 17 00:00:00 2001 From: Vadim Grigoruk Date: Mon, 21 May 2018 15:03:06 +0300 Subject: [PATCH] added version and icon res --- CMakeLists.txt | 7 ++++--- build/windows/tic/tic80.rc | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 3 deletions(-) create mode 100644 build/windows/tic/tic80.rc diff --git a/CMakeLists.txt b/CMakeLists.txt index be8bf58..478c572 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -335,10 +335,11 @@ endif() if(WIN32) + # add version and icon + set(TIC80_RES_SRC ${CMAKE_CURRENT_SOURCE_DIR}/build/windows/tic/tic80.rc) set(TIC80_RES ${CMAKE_CURRENT_BINARY_DIR}/tic80res.obj) - - add_custom_command(OUTPUT ${TIC80_RES} - COMMAND windres ${CMAKE_CURRENT_SOURCE_DIR}/build/mingw/res.rc ${TIC80_RES}) + add_custom_command(OUTPUT ${TIC80_RES} + COMMAND windres -i ${TIC80_RES_SRC} -o ${TIC80_RES}) add_executable(tic80 WIN32 ${TIC80_SRC} ${TIC80_RES}) diff --git a/build/windows/tic/tic80.rc b/build/windows/tic/tic80.rc new file mode 100644 index 0000000..8d659c5 --- /dev/null +++ b/build/windows/tic/tic80.rc @@ -0,0 +1,34 @@ +101 ICON "icon.ico" + +1 VERSIONINFO + FILEVERSION 0,60,3,0 + PRODUCTVERSION 0,60,3,0 + FILEFLAGSMASK 0x3fL +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x40004L + FILETYPE 0x0L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904E4" + BEGIN + VALUE "CompanyName", "Nesbox" + VALUE "FileDescription", "TIC-80" + VALUE "FileVersion", "0.60.3.0" + VALUE "InternalName", "tic80.exe" + VALUE "LegalCopyright", "http://tic.computer (C) 2017" + VALUE "OriginalFilename", "tic80.exe" + VALUE "ProductName", "TIC-80" + VALUE "ProductVersion", "0.60.3.0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1252 + END +END