aboutsummaryrefslogtreecommitdiff
path: root/visualization
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2020-02-15 18:43:28 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2020-02-15 18:43:28 +0800
commit0db7268f5b81f39a4126782c2fef4282c2e75dd8 (patch)
treed1bb8ee1862283ad1a0fe0eae0e98ffbe4ef7bef /visualization
parent03d0aa4f39f72d27fed75020d2a3e80413ae029a (diff)
downloadQMidiPlayer-0db7268f5b81f39a4126782c2fef4282c2e75dd8.tar.xz
Make resource files for Windows actually work.0.8.7-1
Diffstat (limited to 'visualization')
-rw-r--r--visualization/CMakeLists.txt4
-rw-r--r--visualization/visualization.rc16
-rw-r--r--visualization/visualization.rc.in24
3 files changed, 27 insertions, 17 deletions
diff --git a/visualization/CMakeLists.txt b/visualization/CMakeLists.txt
index bc7d568..678f4a7 100644
--- a/visualization/CMakeLists.txt
+++ b/visualization/CMakeLists.txt
@@ -8,7 +8,9 @@ set(visualization_SOURCES
)
if(WIN32)
- list(APPEND visualization_SOURCES visualization.rc)
+ get_filename_component(CURRENT_SUBPROJECT ${CMAKE_CURRENT_SOURCE_DIR} NAME)
+ configure_file("visualization.rc.in" "visualization.rc" @ONLY)
+ list(APPEND visualization_SOURCES ${CMAKE_CURRENT_BINARY_DIR}/visualization.rc)
endif(WIN32)
set(BUILD_DUMB ON)
diff --git a/visualization/visualization.rc b/visualization/visualization.rc
deleted file mode 100644
index d5b47db..0000000
--- a/visualization/visualization.rc
+++ /dev/null
@@ -1,16 +0,0 @@
-1 VERSIONINFO
-FILEVERSION RC_VER_MAJOR,RC_VER_MINOR,RC_VER_PATCH,0
-PRODUCTVERSION RC_VER_MAJOR,RC_VER_MINOR,RC_VER_PATCH,0
-FILETYPE VFT_DLL
-BEGIN
- BLOCK "StringFileInfo"
- BEGIN
- BLOCK "040904E4""
- BEGIN
- VALUE "FileDescription", "QMidiPlayer visualization plugin"
- VALUE "FileVersion", APP_VERSION
- VALUE "ProductName", "QMidiPlayer visualization plugin"
- VALUE "ProductVersion", APP_VERSION
- END
- END
-END
diff --git a/visualization/visualization.rc.in b/visualization/visualization.rc.in
new file mode 100644
index 0000000..a074fc8
--- /dev/null
+++ b/visualization/visualization.rc.in
@@ -0,0 +1,24 @@
+1 VERSIONINFO
+FILEVERSION @PROJECT_VERSION_MAJOR@,@PROJECT_VERSION_MINOR@,@PROJECT_VERSION_PATCH@,0
+PRODUCTVERSION @PROJECT_VERSION_MAJOR@,@PROJECT_VERSION_MINOR@,@PROJECT_VERSION_PATCH@,0
+FILETYPE 2 //VFT_DLL
+BEGIN
+ BLOCK "StringFileInfo"
+ BEGIN
+ BLOCK "040904E4"
+ BEGIN
+ VALUE "CompanyName", "Chris Xiong\0"
+ VALUE "FileDescription", "QMidiPlayer visualization plugin\0"
+ VALUE "FileVersion", "@PROJECT_VERSION@\0"
+ VALUE "InternalName", "@CURRENT_SUBPROJECT@\0"
+ VALUE "LegalCopyright", "GPLv3 (Chris Xiong)"
+ VALUE "OriginalFilename", "libvisualization.dll\0"
+ VALUE "ProductName", "QMidiPlayer visualization plugin\0"
+ VALUE "ProductVersion", "@PROJECT_VERSION@\0"
+ END
+ END
+ BLOCK "VarFileInfo"
+ BEGIN
+ VALUE "Translation", 0x409, 1200
+ END
+END