From db8b532fa5e5b370d37a6bf163575713319a3e1c Mon Sep 17 00:00:00 2001 From: Matt Gajownik Date: Mon, 25 May 2026 18:28:12 +1000 Subject: [PATCH 1/3] obs-webrtc: Build with file descriptor --- plugins/obs-webrtc/CMakeLists.txt | 5 +++++ plugins/obs-webrtc/cmake/windows/obs-module.rc.in | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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}" From 62409eaa2bf4a46a300629d3f75eef24246c7bfe Mon Sep 17 00:00:00 2001 From: Matt Gajownik Date: Mon, 25 May 2026 18:33:09 +1000 Subject: [PATCH 2/3] obs-vst: Build with file descriptor --- plugins/obs-vst/CMakeLists.txt | 2 ++ .../obs-vst/cmake/windows/obs-module.rc.in | 24 +++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 plugins/obs-vst/cmake/windows/obs-module.rc.in 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 From c6f931120602d1c38ce38369bb441dcc4c37b2ed Mon Sep 17 00:00:00 2001 From: Matt Gajownik Date: Mon, 25 May 2026 18:35:18 +1000 Subject: [PATCH 3/3] win-capture: Build with file descriptor --- plugins/win-capture/CMakeLists.txt | 3 +++ .../cmake/windows/obs-module.rc.in | 24 +++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 plugins/win-capture/cmake/windows/obs-module.rc.in 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