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:
parent
129f9496ce
commit
3e3e97aec7
3 changed files with 11 additions and 5 deletions
2
kicad
2
kicad
|
|
@ -1 +1 @@
|
|||
Subproject commit 6f82742e689ae46b75cbc796baf361452fff34f8
|
||||
Subproject commit 84443246e34cd17e9ce8a3a0e7598efd0d7cc1c4
|
||||
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
#include <kiplatform/policy.h>
|
||||
#include <wx/string.h>
|
||||
#include <optional>
|
||||
|
||||
namespace KIPLATFORM
|
||||
{
|
||||
|
|
@ -17,10 +18,10 @@ PBOOL GetPolicyBool( const wxString& aKey )
|
|||
return PBOOL::NOT_CONFIGURED;
|
||||
}
|
||||
|
||||
std::uint32_t GetPolicyEnumUInt( const wxString& aKey )
|
||||
std::optional<std::uint32_t> GetPolicyEnumUInt( const wxString& aKey )
|
||||
{
|
||||
// No enterprise policies in browser environment
|
||||
return 0;
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
} // namespace POLICY
|
||||
|
|
|
|||
|
|
@ -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 )
|
||||
|
|
|
|||
Loading…
Reference in a new issue