The host's rasteriser has a GPU half (raster_gpu.c): the same primitives, drawn the same way, on machines with a real GPU and OpenGL ES 3, straight into the display's buffers in a login session. EGL and GLES are loaded at run time; without them everything is drawn on the CPU as before (CHANDRA_GPU=0 does that too). zwp_linux_dmabuf_v1 lets apps draw on the GPU as well. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
34 lines
1.3 KiB
Plaintext
34 lines
1.3 KiB
Plaintext
import {
|
|
"moonbitlang/core/builtin",
|
|
"moonbitlang/core/env" @env,
|
|
"moonbitlang/core/encoding/utf8" @utf8,
|
|
"moonbitlang/core/cmp" @cmp,
|
|
"chandra/desktop/compositor/sys" @sys,
|
|
"chandra/desktop/compositor/font" @font,
|
|
"chandra/desktop/compositor/renderer" @renderer,
|
|
"chandra/desktop/compositor/emoji" @emoji,
|
|
"chandra/desktop/compositor/wasm" @wasm,
|
|
"chandra/desktop/compositor/kms" @kms,
|
|
"chandra/desktop/interface/chandra/desktop/types" @types,
|
|
"chandra/desktop/interface/chandra/desktop/theme" @theme,
|
|
"chandra/desktop/wasmhost/wt" @wt,
|
|
}
|
|
|
|
supported_targets = "-all+native"
|
|
|
|
pkgtype(kind: "executable")
|
|
|
|
// libwasmtime comes prebuilt (scripts/setup-toolchain.sh); scripts/build-wasmhost.sh puts it on
|
|
// the compiler's and linker's search paths, and links it statically. The DRM/KMS backend's system
|
|
// libraries are linked as usual; libseat may come from the pixi env (pixi.toml), so build/wasmhost
|
|
// looks for it there too (the rpath is relative to build/), not through LD_LIBRARY_PATH, which
|
|
// apps started by the compositor would inherit.
|
|
options(
|
|
"native-stub": [ "host_stub.c", "raster_stub.c", "raster_gpu.c" ],
|
|
link: {
|
|
"native": {
|
|
"cc-link-flags": "-l:libwasmtime.a -lpthread -ldl -lm -ldrm -linput -lseat -lxkbcommon -ludev -Wl,-rpath,$ORIGIN/../.pixi/envs/default/lib",
|
|
},
|
|
},
|
|
)
|