diff options
author | Chris Xiong <chirs241097@gmail.com> | 2020-02-15 09:45:38 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2020-02-15 09:45:38 +0800 |
commit | 03d0aa4f39f72d27fed75020d2a3e80413ae029a (patch) | |
tree | 4da998bf1df1a2c1463858d13e372d6fb0bbbff4 /midifmt-plugin | |
parent | baa48d526c96a55c7c8caeb8fc5e379ef8afed10 (diff) | |
download | QMidiPlayer-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 'midifmt-plugin')
-rw-r--r-- | midifmt-plugin/CMakeLists.txt | 4 | ||||
-rw-r--r-- | midifmt-plugin/midifmt-plugin.rc | 16 | ||||
-rw-r--r-- | midifmt-plugin/midifmtplugin.cpp | 2 |
3 files changed, 21 insertions, 1 deletions
diff --git a/midifmt-plugin/CMakeLists.txt b/midifmt-plugin/CMakeLists.txt index 02cd4cc..d90ffe8 100644 --- a/midifmt-plugin/CMakeLists.txt +++ b/midifmt-plugin/CMakeLists.txt @@ -3,6 +3,10 @@ set(midifmt-plugin_SOURCES midifmtplugin.cpp ) +if(WIN32) + list(APPEND midifmt-plugin_SOURCES midifmt-plugin.rc) +endif(WIN32) + include_directories(${PROJECT_SOURCE_DIR}/include/) add_library(midifmt-plugin MODULE diff --git a/midifmt-plugin/midifmt-plugin.rc b/midifmt-plugin/midifmt-plugin.rc new file mode 100644 index 0000000..3489340 --- /dev/null +++ b/midifmt-plugin/midifmt-plugin.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 extra MIDI format support plugin" + VALUE "FileVersion", APP_VERSION + VALUE "ProductName", "QMidiPlayer extra MIDI format support plugin" + VALUE "ProductVersion", APP_VERSION + END + END +END diff --git a/midifmt-plugin/midifmtplugin.cpp b/midifmt-plugin/midifmtplugin.cpp index fccb7cc..62a9af1 100644 --- a/midifmt-plugin/midifmtplugin.cpp +++ b/midifmt-plugin/midifmtplugin.cpp @@ -113,4 +113,4 @@ void qmpMidiFmtPlugin::deinit() const char* qmpMidiFmtPlugin::pluginGetName() {return "QMidiPlayer extra midi formats plugin";} const char* qmpMidiFmtPlugin::pluginGetVersion() -{return "0.8.7";} +{return PLUGIN_VERSION;} |