diff --git a/src/wx/CMakeLists.txt b/src/wx/CMakeLists.txt index 1d20dedb..8bef2e92 100644 --- a/src/wx/CMakeLists.txt +++ b/src/wx/CMakeLists.txt @@ -792,6 +792,12 @@ if(WIN32 AND (X86_64 OR ARM64 OR X86_32) AND ENABLE_ONLINEUPDATES) set(WINSPARKLE_DLL ${WINSPARKLE_BIN_RELEASE_DIR}/Release/WinSparkle.dll) endif() + target_sources(visualboyadvance-m PRIVATE + autoupdater/wxmsw/autoupdater.cpp + autoupdater/wxmsw/winsparkle-rc.h + autoupdater/wxmsw/winsparkle-wrapper.cpp + autoupdater/wxmsw/winsparkle-wrapper.h) + configure_file(autoupdater/wxmsw/winsparkle-path.h.in ${CMAKE_BINARY_DIR}/winsparkle-path.h) endif() diff --git a/src/wx/wxvbam.rc b/src/wx/wxvbam.rc index 427cb8e9..e87b013d 100644 --- a/src/wx/wxvbam.rc +++ b/src/wx/wxvbam.rc @@ -18,9 +18,16 @@ AAAAA_MAINICON ICON "icons/visualboyadvance-m.ico" #ifndef NO_ONLINEUPDATES #include "autoupdater/wxmsw/winsparkle-rc.h" + +#ifdef __i386__ +WINSPARKLE_DLL_RC RCDATA "../../win32-deps/WinSparkle-0.9.1/mingw/i686/WinSparkle.dll" +#elif defined(__x86_64__) +WINSPARKLE_DLL_RC RCDATA "../../win32-deps/WinSparkle-0.9.1/mingw/x86_64/WinSparkle.dll" +#else #include "winsparkle-path.h" WINSPARKLE_DLL_RC RCDATA WINSPARKLE_DLL_PATH +#endif /* MinGW */ #endif /* NO_ONLINEUPDATES */