Load the real desktop shell (lib/shell, panel, launcher, clock) into the native compositor
CI / test (push) Successful in 34s
CI / test (push) Successful in 34s
Replaces the hardcoded build_shell_ops with compositor/shell, which drives the same pure lib/* logic the wasm components wrap and adapts it to scene ops. Adds a wall-clock FFI and native stubs for the wasm-only theme bindings. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3cb8417699
commit
769ab829c8
8 files changed
+285
-1
No files matched your search
@@ -0,0 +1,33 @@
|
||||
///| Native stand-ins for the wasm component-model FFI in ffi.mbt. The native
|
||||
/// compositor uses only the `Tokens`/`Palette` types; `get_tokens` is a guest
|
||||
/// import that has no meaning outside a wasm component, so it aborts.
|
||||
|
||||
///|
|
||||
fn wasmImportGetTokens(_p0 : Int) -> Unit {
|
||||
abort("theme.get-tokens is a wasm component import; unavailable on native")
|
||||
}
|
||||
|
||||
///|
|
||||
fn mbt_ffi_free(_position : Int) -> Unit {
|
||||
abort("wasm-only")
|
||||
}
|
||||
|
||||
///|
|
||||
fn mbt_ffi_ptr2str(_ptr : Int, _len : Int) -> String {
|
||||
abort("wasm-only")
|
||||
}
|
||||
|
||||
///|
|
||||
fn mbt_ffi_load32(_offset : Int) -> Int {
|
||||
abort("wasm-only")
|
||||
}
|
||||
|
||||
///|
|
||||
fn mbt_ffi_malloc(_size : Int) -> Int {
|
||||
abort("wasm-only")
|
||||
}
|
||||
|
||||
///|
|
||||
fn mbt_ffi_load8_u(_offset : Int) -> Int {
|
||||
abort("wasm-only")
|
||||
}
|
||||
Reference in new issue
Block a user