[feat] load wgc from wgc_plugin.dll at runtime and drop direct'windowsapp' linking, refs #74

This commit is contained in:
dijunkun
2026-03-20 01:36:36 +08:00
parent 2f26334775
commit 1d3cac54ab
9 changed files with 172 additions and 17 deletions

View File

@@ -0,0 +1,13 @@
#include "screen_capturer_wgc.h"
#include "wgc_plugin_api.h"
extern "C" {
crossdesk::ScreenCapturer* CrossDeskCreateWgcCapturer() {
return new crossdesk::ScreenCapturerWgc();
}
void CrossDeskDestroyWgcCapturer(crossdesk::ScreenCapturer* capturer) {
delete capturer;
}
}