AtlatestRepositorysigil-ui

sigil-ui / tree / demopackage.sgl

1;;; A sigil-ui program on Wayland: a few widgets, and every input event
2;;; echoed on screen and on stdout. Run from demo/:
3;;;
4;;; sigil build && ./build/dev/bin/sigil-ui-demo [--fullscreen] [--output NAME]
5;;;
6;;; Built dynamically linked (the Wayland surface loads libwayland-client
7;;; and libxkbcommon with dlopen, which a static musl binary cannot do).
8
9(package
10 name: "sigil-ui-demo"
11 version: "0.1.0"
12 sigil: "0.24"
13 description: "sigil-ui Wayland demo"
14 license: "BSD-3-Clause"
15 entry: '(demo main)
17 configs: (list
18 (config
19 name: 'dev
20 output-dir: "build/dev"
21 debug?: #t
22 optimize: 1)
23 (config name: 'darwin-arm64 toolchain: 'zig target: "aarch64-macos.15.0-none"
24 features: '(cross darwin) output-dir: "build/darwin-arm64"))
26 dependencies: (list
27 (from-pkg name: "sigil/sigil-stdlib" version: "^0.24.0")
28 (from-pkg name: "sigil/sigil-ui" version: "^0.2"))
30 tasks: (list
31 (task
32 name: 'build
33 description: "Build the demo"
34 steps: (list
35 (compile-sigil-modules
36 sources: "src/**/*.sgl"
37 output-dir: (config-output-subdir "lib"))))))