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:
parent
231e14046f
commit
572fb29537
|
@ -7,10 +7,8 @@ include_directories(
|
|||
)
|
||||
set(SRCS main.cpp)
|
||||
if (WIN32)
|
||||
set(SRCS ${SRCS} appicon.rc)
|
||||
endif()
|
||||
if (${CMAKE_SYSTEM} MATCHES "OS2")
|
||||
set(SRCS ${SRCS} appicon_os2.rc)
|
||||
set(SRCS ${SRCS} version.rc)
|
||||
configure_file(falkonversion.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/falkonversion.h)
|
||||
endif()
|
||||
ecm_create_qm_loader(SRCS falkon_qt)
|
||||
add_executable(falkon ${SRCS})
|
||||
|
|
6
src/main/falkonversion.h.cmake
Normal file
6
src/main/falkonversion.h.cmake
Normal 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}
|
|
@ -1,11 +1,12 @@
|
|||
#include "winver.h"
|
||||
#include "falkonversion.h"
|
||||
|
||||
IDI_ICON1 ICON DISCARDABLE "..\lib\data\icons\exeicons\falkon.ico"
|
||||
IDI_ICON2 ICON DISCARDABLE "..\lib\data\icons\exeicons\page.ico"
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION 2,1,2,0
|
||||
PRODUCTVERSION 2,1,2,0
|
||||
FILEVERSION FALKON_VERSION_MAJOR,FALKON_VERSION_MINOR,FALKON_VERSION_PATCH,0
|
||||
PRODUCTVERSION FALKON_VERSION_MAJOR,FALKON_VERSION_MINOR,FALKON_VERSION_PATCH,0
|
||||
FILEFLAGS 0x0L
|
||||
FILEFLAGSMASK 0x3fL
|
||||
FILEOS 0x00040004L
|
||||
|
@ -16,14 +17,14 @@ BEGIN
|
|||
BEGIN
|
||||
BLOCK "000004b0"
|
||||
BEGIN
|
||||
VALUE "CompanyName", "Falkon Team"
|
||||
VALUE "FileDescription", "Falkon Web Browser"
|
||||
VALUE "FileVersion", "2.1.2"
|
||||
VALUE "LegalCopyright", "Copyright (C) 2010-2017 David Rosca"
|
||||
VALUE "CompanyName", "KDE"
|
||||
VALUE "FileDescription", "Falkon"
|
||||
VALUE "FileVersion", FALKON_VERSION_STRING
|
||||
VALUE "LegalCopyright", "Copyright (C) 2010-2018 David Rosca"
|
||||
VALUE "InternalName", "falkon"
|
||||
VALUE "OriginalFilename", "falkon.exe"
|
||||
VALUE "ProductName", "Falkon"
|
||||
VALUE "ProductVersion", "2.1.2"
|
||||
VALUE "ProductVersion", FALKON_VERSION_STRING
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
Loading…
Reference in New Issue
Block a user