Files
chandra/wasmhost/bin/moon.pkg
Claude 27252a97ab
CI / test (push) Canceled after 0s
Emoji picker (Super+.): search, tabs, skin tones, recents, text-input-v3 insertion
Compositor-drawn Win+. style picker. The focused app keeps keyboard focus so
its text-input-v3 field stays enabled; the emoji goes in with commit_string,
or onto the clipboard with a visible notice when the app has no text field.
Shortcut lives in the shortcut table (rebindable in Settings > Shortcuts).

- compositor/wayland/text_input.mbt: zwp_text_input_manager_v3 (global 12)
- compositor/emoji: Emoji 18.0 + CLDR 49 data (Unicode License), search,
  picker model, CBDT/CBLC + GSUB reader for Noto Color Emoji
- Chandra's own pinned bitmap Noto Color Emoji (scripts/fetch-emoji-font.sh,
  just emoji-font); Fedora's COLRv1 copy can't be drawn. Missing font shows
  an error panel.
- raster WIT: emoji-font, emoji-has, emoji-image; served by wasmhost
- state.edn :emoji {:recent [...] :skin-tone n}
- tests incl. a fake text-input client; docs/emoji-picker.md

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DPL5hkABDGJixotaqFv2X2
2026-11-26 07:00:22 +00:00

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" ],
link: {
"native": {
"cc-link-flags": "-l:libwasmtime.a -lpthread -ldl -lm -ldrm -linput -lseat -lxkbcommon -ludev -Wl,-rpath,$ORIGIN/../.pixi/envs/default/lib",
},
},
)