Skip to content

Commit 42e015e

Browse files
committed
[cmake] Fix metadata in Windows resource file
1 parent f868508 commit 42e015e

File tree

4 files changed

+14
-11
lines changed

4 files changed

+14
-11
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ include(conan_setup)
3939

4040
# The marked constants in application.hpp will be replaced with the following values
4141
set(INEXOR_ENGINE_NAME "Inexor Engine")
42+
set(INEXOR_DEV_TEAM_NAME "Inexor Collective")
4243
set(INEXOR_APP_NAME "Inexor Vulkan-renderer example")
44+
set(INEXOR_LICENSE "MIT License")
4345

4446
set(INEXOR_ENGINE_VERSION_MAJOR 0)
4547
set(INEXOR_ENGINE_VERSION_MINOR 1)

example/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
add_executable(inexor-vulkan-renderer-example
22
main.cpp
3+
${CMAKE_BINARY_DIR}/include/inexor/vulkan-renderer/win_resource_file.rc
34
)
45

56
set_target_properties(

platform/windows/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
configure_file(win_resource_file.rc.in ${CMAKE_BINARY_DIR}/win_resource_file.rc)
1+
configure_file(win_resource_file.rc.in ${CMAKE_BINARY_DIR}/include/inexor/vulkan-renderer/win_resource_file.rc)

platform/windows/win_resource_file.rc.in

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
#undef APSTUDIO_READONLY_SYMBOLS
44

55
VS_VERSION_INFO VERSIONINFO
6-
FILEVERSION ${APP_VERSION_MAJOR},${APP_VERSION_MINOR},${APP_VERSION_PATCH},0
7-
PRODUCTVERSION ${APP_VERSION_MAJOR},${APP_VERSION_MINOR},${APP_VERSION_PATCH},0
6+
FILEVERSION ${INEXOR_APP_VERSION_MAJOR},${INEXOR_APP_VERSION_MINOR},${INEXOR_APP_VERSION_PATCH},0
7+
PRODUCTVERSION ${INEXOR_ENGINE_VERSION_MAJOR},${INEXOR_ENGINE_VERSION_MINOR},${INEXOR_ENGINE_VERSION_PATCH},0
88
FILEFLAGSMASK 0x3fL
99
#ifdef _DEBUG
1010
FILEFLAGS 0x1L
@@ -20,14 +20,14 @@ BEGIN
2020
BLOCK "040704b0"
2121
BEGIN
2222
// These placeholders will be filled out with the values specified by CMake
23-
VALUE "CompanyName", "${APP_MANUFACTURER_NAME}"
24-
VALUE "FileDescription", "${APP_DESCRIPTION}"
25-
VALUE "FileVersion", "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}.${APP_VERSION_PATCH}"
26-
VALUE "InternalName", "${APP_NAME}"
27-
VALUE "LegalCopyright", "${APP_LICENSE}"
28-
VALUE "OriginalFilename", "${APP_ORIGINAL_NAME}"
29-
VALUE "ProductName", "${APP_NAME}"
30-
VALUE "ProductVersion", "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}.${APP_VERSION_PATCH}"
23+
VALUE "CompanyName", "${INEXOR_DEV_TEAM_NAME}"
24+
VALUE "FileDescription", "${INEXOR_APP_NAME}"
25+
VALUE "FileVersion", "${INEXOR_APP_VERSION_MAJOR}.${INEXOR_APP_VERSION_MINOR}.${INEXOR_APP_VERSION_PATCH}"
26+
VALUE "InternalName", "${INEXOR_ENGINE_NAME}"
27+
VALUE "LegalCopyright", "${INEXOR_LICENSE}"
28+
VALUE "OriginalFilename", "${INEXOR_APP_NAME}"
29+
VALUE "ProductName", "${INEXOR_APP_NAME}"
30+
VALUE "ProductVersion", "${INEXOR_ENGINE_VERSION_MAJOR}.${INEXOR_ENGINE_VERSION_MINOR}.${INEXOR_ENGINE_VERSION_PATCH}"
3131
END
3232
END
3333
BLOCK "VarFileInfo"

0 commit comments

Comments
 (0)