aboutsummaryrefslogtreecommitdiff
path: root/simple-visualization
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2020-02-15 09:45:38 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2020-02-15 09:45:38 +0800
commit03d0aa4f39f72d27fed75020d2a3e80413ae029a (patch)
tree4da998bf1df1a2c1463858d13e372d6fb0bbbff4 /simple-visualization
parentbaa48d526c96a55c7c8caeb8fc5e379ef8afed10 (diff)
downloadQMidiPlayer-03d0aa4f39f72d27fed75020d2a3e80413ae029a.tar.xz
No more version numbers scattered through the files.
Added a debug screen for the visualization, which can be toggled by pressing B. Added version information for binaries for Windows.
Diffstat (limited to 'simple-visualization')
-rw-r--r--simple-visualization/CMakeLists.txt4
-rw-r--r--simple-visualization/simple-visualization.rc16
-rw-r--r--simple-visualization/simplevisualization.cpp2
3 files changed, 21 insertions, 1 deletions
diff --git a/simple-visualization/CMakeLists.txt b/simple-visualization/CMakeLists.txt
index 758d671..689dd99 100644
--- a/simple-visualization/CMakeLists.txt
+++ b/simple-visualization/CMakeLists.txt
@@ -7,6 +7,10 @@ set(simple-visualization_SOURCES
simplevisualization.cpp
)
+if(WIN32)
+ list(APPEND simple-visualization_SOURCES simple-visualization.rc)
+endif(WIN32)
+
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
diff --git a/simple-visualization/simple-visualization.rc b/simple-visualization/simple-visualization.rc
new file mode 100644
index 0000000..92f11e6
--- /dev/null
+++ b/simple-visualization/simple-visualization.rc
@@ -0,0 +1,16 @@
+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 simple visualization plugin"
+ VALUE "FileVersion", APP_VERSION
+ VALUE "ProductName", "QMidiPlayer simple visualization plugin"
+ VALUE "ProductVersion", APP_VERSION
+ END
+ END
+END
diff --git a/simple-visualization/simplevisualization.cpp b/simple-visualization/simplevisualization.cpp
index c8191b6..b93af30 100644
--- a/simple-visualization/simplevisualization.cpp
+++ b/simple-visualization/simplevisualization.cpp
@@ -30,4 +30,4 @@ void qmpSimpleVisualization::deinit()
const char* qmpSimpleVisualization::pluginGetName()
{return "QMidiPlayer Simple Visualization Plugin";}
const char* qmpSimpleVisualization::pluginGetVersion()
-{return "0.8.7";}
+{return PLUGIN_VERSION;}