wasm-port-rebase: KiCad 10.0.4 rebase + WASM build adaptations

Root-side changes for the wasm-port-rebase work:
- kicad submodule bumped to wasm-port-rebase (43-commit rebase onto KiCad 10.0.4
  + the KiCad-10 WASM source adaptations)
- wasm/kiplatform/policy.cpp: GetPolicyEnumUInt -> std::optional (KiCad 10 API)
- wasm/stubs/api_plugin_stub.cpp: API_PLUGIN_MANAGER signature sync (KiCad 10 API)

Compiles 100% for pcbnew (3D viewer on, -O1); WASM link + e2e parity still pending.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Istvan Matejcsok 2026-06-23 15:09:46 +02:00
commit 3e3e97aec7
3 changed files with 11 additions and 5 deletions

View file

@ -83,8 +83,11 @@ API_PLUGIN_MANAGER::API_PLUGIN_MANAGER( wxEvtHandler* aParent ) :
{
}
void API_PLUGIN_MANAGER::ReloadPlugins()
void API_PLUGIN_MANAGER::ReloadPlugins( std::optional<wxString> aDirectoryToScan,
std::shared_ptr<REPORTER> aReporter )
{
(void) aDirectoryToScan;
(void) aReporter;
// No-op: plugins not available in WASM
}
@ -93,9 +96,11 @@ void API_PLUGIN_MANAGER::RecreatePluginEnvironment( const wxString& aIdentifier
(void)aIdentifier;
}
void API_PLUGIN_MANAGER::InvokeAction( const wxString& aIdentifier )
void API_PLUGIN_MANAGER::InvokeAction( const wxString& aIdentifier,
std::shared_ptr<REPORTER> aReporter )
{
(void)aIdentifier;
(void) aReporter;
}
std::optional<const PLUGIN_ACTION*> API_PLUGIN_MANAGER::GetAction( const wxString& aIdentifier )