added version and icon res

This commit is contained in:
Vadim Grigoruk 2018-05-21 15:03:06 +03:00
parent b2cd6b8cf6
commit 76ed3a342a
2 changed files with 38 additions and 3 deletions

View File

@ -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})
COMMAND windres -i ${TIC80_RES_SRC} -o ${TIC80_RES})
add_executable(tic80 WIN32 ${TIC80_SRC} ${TIC80_RES})

View File

@ -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