diff --git a/plugins/obs-vst/CMakeLists.txt b/plugins/obs-vst/CMakeLists.txt index 8a2b4eb7938733..756474e321620e 100644 --- a/plugins/obs-vst/CMakeLists.txt +++ b/plugins/obs-vst/CMakeLists.txt @@ -42,6 +42,8 @@ target_link_libraries( ) if(OS_WINDOWS) + configure_file(cmake/windows/obs-module.rc.in obs-vst.rc) + target_sources(obs-vst PRIVATE obs-vst.rc) set_property(TARGET obs-vst APPEND PROPERTY AUTORCC_OPTIONS --format-version 1) endif() diff --git a/plugins/obs-vst/cmake/windows/obs-module.rc.in b/plugins/obs-vst/cmake/windows/obs-module.rc.in new file mode 100644 index 00000000000000..0940e3dfddd691 --- /dev/null +++ b/plugins/obs-vst/cmake/windows/obs-module.rc.in @@ -0,0 +1,24 @@ +1 VERSIONINFO +FILEVERSION ${OBS_VERSION_MAJOR},${OBS_VERSION_MINOR},${OBS_VERSION_PATCH},0 +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904B0" + BEGIN + VALUE "CompanyName", "${OBS_COMPANY_NAME}" + VALUE "FileDescription", "OBS VST2 module" + VALUE "FileVersion", "${OBS_VERSION_CANONICAL}" + VALUE "ProductName", "${OBS_PRODUCT_NAME}" + VALUE "ProductVersion", "${OBS_VERSION_CANONICAL}" + VALUE "Comments", "${OBS_COMMENTS}" + VALUE "LegalCopyright", "${OBS_LEGAL_COPYRIGHT}" + VALUE "InternalName", "obs-vst" + VALUE "OriginalFilename", "obs-vst" + END + END + + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x0409, 0x04B0 + END +END diff --git a/plugins/obs-webrtc/CMakeLists.txt b/plugins/obs-webrtc/CMakeLists.txt index d57ca8af5297b5..6324ae71245429 100644 --- a/plugins/obs-webrtc/CMakeLists.txt +++ b/plugins/obs-webrtc/CMakeLists.txt @@ -19,4 +19,9 @@ target_sources( target_link_libraries(obs-webrtc PRIVATE OBS::libobs LibDataChannel::LibDataChannel CURL::libcurl) +if(OS_WINDOWS) + configure_file(cmake/windows/obs-module.rc.in obs-webrtc.rc) + target_sources(obs-webrtc PRIVATE obs-webrtc.rc) +endif() + set_target_properties_obs(obs-webrtc PROPERTIES FOLDER plugins PREFIX "") diff --git a/plugins/obs-webrtc/cmake/windows/obs-module.rc.in b/plugins/obs-webrtc/cmake/windows/obs-module.rc.in index ab2a464310e0b3..fb81e328f073bf 100644 --- a/plugins/obs-webrtc/cmake/windows/obs-module.rc.in +++ b/plugins/obs-webrtc/cmake/windows/obs-module.rc.in @@ -6,7 +6,7 @@ BEGIN BLOCK "040904B0" BEGIN VALUE "CompanyName", "${OBS_COMPANY_NAME}" - VALUE "FileDescription", "OBS output module" + VALUE "FileDescription", "OBS WebRTC module" VALUE "FileVersion", "${OBS_VERSION_CANONICAL}" VALUE "ProductName", "${OBS_PRODUCT_NAME}" VALUE "ProductVersion", "${OBS_VERSION_CANONICAL}" diff --git a/plugins/win-capture/CMakeLists.txt b/plugins/win-capture/CMakeLists.txt index 8216ba5095df0a..2214917cc90980 100644 --- a/plugins/win-capture/CMakeLists.txt +++ b/plugins/win-capture/CMakeLists.txt @@ -76,6 +76,9 @@ target_link_libraries( # Remove once jansson has been fixed on obs-deps target_link_options(win-capture PRIVATE /IGNORE:4098) +configure_file(cmake/windows/obs-module.rc.in win-capture.rc) +target_sources(win-capture PRIVATE win-capture.rc) + set_target_properties_obs(win-capture PROPERTIES FOLDER plugins/win-capture PREFIX "") add_subdirectory(graphics-hook) diff --git a/plugins/win-capture/cmake/windows/obs-module.rc.in b/plugins/win-capture/cmake/windows/obs-module.rc.in new file mode 100644 index 00000000000000..841b0034250a2d --- /dev/null +++ b/plugins/win-capture/cmake/windows/obs-module.rc.in @@ -0,0 +1,24 @@ +1 VERSIONINFO +FILEVERSION ${OBS_VERSION_MAJOR},${OBS_VERSION_MINOR},${OBS_VERSION_PATCH},0 +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904B0" + BEGIN + VALUE "CompanyName", "${OBS_COMPANY_NAME}" + VALUE "FileDescription", "OBS Windows Capture module" + VALUE "FileVersion", "${OBS_VERSION_CANONICAL}" + VALUE "ProductName", "${OBS_PRODUCT_NAME}" + VALUE "ProductVersion", "${OBS_VERSION_CANONICAL}" + VALUE "Comments", "${OBS_COMMENTS}" + VALUE "LegalCopyright", "${OBS_LEGAL_COPYRIGHT}" + VALUE "InternalName", "win-capture" + VALUE "OriginalFilename", "win-capture" + END + END + + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x0409, 0x04B0 + END +END