diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt index 89034484..7a4fec66 100644 --- a/main/CMakeLists.txt +++ b/main/CMakeLists.txt @@ -213,7 +213,12 @@ OPTIONS ) 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 " --use-temp-file -O coff -i -o ") + 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) target_include_directories(dino PRIVATE src) target_link_libraries(dino libdino ${MAIN_PACKAGES}) diff --git a/main/dino-info.rc b/main/dino-info.rc new file mode 100644 index 00000000..c0f8e01e --- /dev/null +++ b/main/dino-info.rc @@ -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" \ No newline at end of file diff --git a/main/dino.ico b/main/dino.ico new file mode 100644 index 00000000..898e4387 Binary files /dev/null and b/main/dino.ico differ