Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPL5hiNfjrw2edja7LiRLB
This commit is contained in:
5 files changed
+223
-25
No files matched your search
@@ -7,6 +7,7 @@ import {
|
||||
"chandra/desktop/compositor/font" @font,
|
||||
"chandra/desktop/compositor/renderer" @renderer,
|
||||
"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,
|
||||
@@ -17,12 +18,15 @@ 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. Linked statically: the binary needs nothing at runtime.
|
||||
// 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" ],
|
||||
link: {
|
||||
"native": {
|
||||
"cc-link-flags": "-l:libwasmtime.a -lpthread -ldl -lm",
|
||||
"cc-link-flags": "-l:libwasmtime.a -lpthread -ldl -lm -ldrm -linput -lseat -lxkbcommon -ludev -Wl,-rpath,$ORIGIN/../.pixi/envs/default/lib",
|
||||
},
|
||||
},
|
||||
)
|
||||
Reference in new issue
Block a user