1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

Windows: Set exe version with CMake configure file

This commit is contained in:
David Rosca 2018-03-23 10:35:01 +01:00
parent 231e14046f
commit 572fb29537
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8
3 changed files with 16 additions and 11 deletions

View File

@ -7,10 +7,8 @@ include_directories(
) )
set(SRCS main.cpp) set(SRCS main.cpp)
if (WIN32) if (WIN32)
set(SRCS ${SRCS} appicon.rc) set(SRCS ${SRCS} version.rc)
endif() configure_file(falkonversion.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/falkonversion.h)
if (${CMAKE_SYSTEM} MATCHES "OS2")
set(SRCS ${SRCS} appicon_os2.rc)
endif() endif()
ecm_create_qm_loader(SRCS falkon_qt) ecm_create_qm_loader(SRCS falkon_qt)
add_executable(falkon ${SRCS}) add_executable(falkon ${SRCS})

View File

@ -0,0 +1,6 @@
/* falkonversion.h. Generated by cmake from falkonversion.h.cmake */
#define FALKON_VERSION_STRING "${PROJECT_VERSION}"
#define FALKON_VERSION_MAJOR ${PROJECT_VERSION_MAJOR}
#define FALKON_VERSION_MINOR ${PROJECT_VERSION_MINOR}
#define FALKON_VERSION_PATCH ${PROJECT_VERSION_PATCH}

View File

@ -1,11 +1,12 @@
#include "winver.h" #include "winver.h"
#include "falkonversion.h"
IDI_ICON1 ICON DISCARDABLE "..\lib\data\icons\exeicons\falkon.ico" IDI_ICON1 ICON DISCARDABLE "..\lib\data\icons\exeicons\falkon.ico"
IDI_ICON2 ICON DISCARDABLE "..\lib\data\icons\exeicons\page.ico" IDI_ICON2 ICON DISCARDABLE "..\lib\data\icons\exeicons\page.ico"
VS_VERSION_INFO VERSIONINFO VS_VERSION_INFO VERSIONINFO
FILEVERSION 2,1,2,0 FILEVERSION FALKON_VERSION_MAJOR,FALKON_VERSION_MINOR,FALKON_VERSION_PATCH,0
PRODUCTVERSION 2,1,2,0 PRODUCTVERSION FALKON_VERSION_MAJOR,FALKON_VERSION_MINOR,FALKON_VERSION_PATCH,0
FILEFLAGS 0x0L FILEFLAGS 0x0L
FILEFLAGSMASK 0x3fL FILEFLAGSMASK 0x3fL
FILEOS 0x00040004L FILEOS 0x00040004L
@ -16,14 +17,14 @@ BEGIN
BEGIN BEGIN
BLOCK "000004b0" BLOCK "000004b0"
BEGIN BEGIN
VALUE "CompanyName", "Falkon Team" VALUE "CompanyName", "KDE"
VALUE "FileDescription", "Falkon Web Browser" VALUE "FileDescription", "Falkon"
VALUE "FileVersion", "2.1.2" VALUE "FileVersion", FALKON_VERSION_STRING
VALUE "LegalCopyright", "Copyright (C) 2010-2017 David Rosca" VALUE "LegalCopyright", "Copyright (C) 2010-2018 David Rosca"
VALUE "InternalName", "falkon" VALUE "InternalName", "falkon"
VALUE "OriginalFilename", "falkon.exe" VALUE "OriginalFilename", "falkon.exe"
VALUE "ProductName", "Falkon" VALUE "ProductName", "Falkon"
VALUE "ProductVersion", "2.1.2" VALUE "ProductVersion", FALKON_VERSION_STRING
END END
END END
BLOCK "VarFileInfo" BLOCK "VarFileInfo"