diff options
Diffstat (limited to 'qmidiplayer-desktop')
-rw-r--r-- | qmidiplayer-desktop/CMakeLists.txt | 4 | ||||
-rw-r--r-- | qmidiplayer-desktop/qmidiplayer.rc | 18 | ||||
-rw-r--r-- | qmidiplayer-desktop/qmidiplayer.rc.in | 29 |
3 files changed, 32 insertions, 19 deletions
diff --git a/qmidiplayer-desktop/CMakeLists.txt b/qmidiplayer-desktop/CMakeLists.txt index 037a3f1..9d285c3 100644 --- a/qmidiplayer-desktop/CMakeLists.txt +++ b/qmidiplayer-desktop/CMakeLists.txt @@ -44,7 +44,9 @@ set(qmpdesktop_SOURCES ) if(WIN32) - list(APPEND qmpdesktop_SOURCES qmidiplayer.rc) + get_filename_component(CURRENT_SUBPROJECT ${CMAKE_CURRENT_SOURCE_DIR} NAME) + configure_file("qmidiplayer.rc.in" "qmidiplayer.rc" @ONLY) + list(APPEND qmpdesktop_SOURCES ${CMAKE_CURRENT_BINARY_DIR}/qmidiplayer.rc) endif(WIN32) set(CMAKE_AUTOMOC ON) diff --git a/qmidiplayer-desktop/qmidiplayer.rc b/qmidiplayer-desktop/qmidiplayer.rc deleted file mode 100644 index ee00a3d..0000000 --- a/qmidiplayer-desktop/qmidiplayer.rc +++ /dev/null @@ -1,18 +0,0 @@ -IDI_ICON1 ICON "../img/qmidiplayer.ico" -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_APP -BEGIN - BLOCK "StringFileInfo" - BEGIN - BLOCK "040904E4"" - BEGIN - VALUE "FileDescription", "QMidiPlayer" - VALUE "FileVersion", APP_VERSION - VALUE "ProductName", "QMidiPlayer" - VALUE "ProductVersion", APP_VERSION - END - END -END -1 RT_MANIFEST "qmidiplayer.exe.xml" diff --git a/qmidiplayer-desktop/qmidiplayer.rc.in b/qmidiplayer-desktop/qmidiplayer.rc.in new file mode 100644 index 0000000..c5c268c --- /dev/null +++ b/qmidiplayer-desktop/qmidiplayer.rc.in @@ -0,0 +1,29 @@ +#ifndef RT_MANIFEST +#define RT_MANIFEST 24 +#endif +IDI_ICON1 ICON "../img/qmidiplayer.ico" +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 1 //VFT_APP +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904E4" + BEGIN + VALUE "CompanyName", "Chris Xiong\0" + VALUE "FileDescription", "QMidiPlayer\0" + VALUE "FileVersion", "@PROJECT_VERSION@\0" + VALUE "InternalName", "@CURRENT_SUBPROJECT@\0" + VALUE "LegalCopyright", "GPLv3 (Chris Xiong)" + VALUE "OriginalFilename", "qmidiplayer.exe\0" + VALUE "ProductName", "QMidiPlayer\0" + VALUE "ProductVersion", "@PROJECT_VERSION@\0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1200 + END +END +1 RT_MANIFEST "qmidiplayer.exe.xml" |