Added information and Dino icon to Windows executable

This commit is contained in:
LAGonauta 2020-05-19 18:07:46 -03:00
parent 16d0cc6fd9
commit 1673ec3481
3 changed files with 31 additions and 1 deletions

View file

@ -213,7 +213,12 @@ OPTIONS
) )
add_definitions(${VALA_CFLAGS} -DGETTEXT_PACKAGE=\"${GETTEXT_PACKAGE}\" -DLOCALE_INSTALL_DIR=\"${LOCALE_INSTALL_DIR}\" -DDINO_VERSION=\"${PROJECT_VERSION}\") add_definitions(${VALA_CFLAGS} -DGETTEXT_PACKAGE=\"${GETTEXT_PACKAGE}\" -DLOCALE_INSTALL_DIR=\"${LOCALE_INSTALL_DIR}\" -DDINO_VERSION=\"${PROJECT_VERSION}\")
add_executable(dino ${MAIN_VALA_C} ${MAIN_GRESOURCES_TARGET} src/emojichooser.c) if(WIN32)
set(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> --use-temp-file -O coff <DEFINES> -i <SOURCE> -o <OBJECT>")
add_executable(dino ${MAIN_VALA_C} ${MAIN_GRESOURCES_TARGET} src/emojichooser.c dino-info.rc)
else(WIN32)
add_executable(dino ${MAIN_VALA_C} ${MAIN_GRESOURCES_TARGET} src/emojichooser.c)
endif(WIN32)
add_dependencies(dino ${GETTEXT_PACKAGE}-translations) add_dependencies(dino ${GETTEXT_PACKAGE}-translations)
target_include_directories(dino PRIVATE src) target_include_directories(dino PRIVATE src)
target_link_libraries(dino libdino ${MAIN_PACKAGES}) target_link_libraries(dino libdino ${MAIN_PACKAGES})

25
main/dino-info.rc Normal file
View file

@ -0,0 +1,25 @@
1 VERSIONINFO
FILEVERSION 0,1,0,0
PRODUCTVERSION 0,1,0,0
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "080904E4"
BEGIN
VALUE "CompanyName", "Dino"
VALUE "FileDescription", "Dino - Modern XMPP (""Jabber"") Chat Client"
VALUE "FileVersion", "0.1.0-win"
VALUE "InternalName", "dino"
VALUE "LegalCopyright", "Dino"
VALUE "OriginalFilename", "dino.exe"
VALUE "ProductName", "Dino"
VALUE "ProductVersion", DINO_VERSION
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x809, 1252
END
END
DINO_ICO ICON "./dino.ico"

BIN
main/dino.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB