AtlatestRepositorysigil-ui
1
;;; FONT WINDOW ZIG HEADERS RESOURCE_ROOT CPUS NICE MEMORY FREE SCRATCH SECONDS ACTION [EXTRA]2
(import (sigil shell prelude))3
(load (path (script-dir) "setup.sgl"))4
(define cli (or (getenv "SIGIL") "sigil"))5
(define action (arg 12))6
(define (font-gate! name)7
(guarded! name cli8
(append (list (path font "scripts/check-sdk-free.sgl") zig headers name (str maximum-seconds))9
(if (member name '("caller-error" "ownership-model")) (list (realpath (arg 13))) '())) "/tmp"))10
(cond11
((member action '("objects" "loader-model" "caller-error" "ownership-model")) (font-gate! action))12
((equal? action "font-arm64")13
(guarded! action cli '("build" "-c" "darwin-arm64") (path font "test/coretext-host")))14
((equal? action "font-amd64")15
(guarded! action cli '("build" "-c" "darwin-amd64") (path font "test/coretext-host")))16
((equal? action "drawing")17
(setenv! "SIGIL_MACOS_FONT_SOURCE" font)18
(setenv! "SIGIL_MACOS_WINDOW_SOURCE" window)19
(guarded! action cli '("build" "-c" "darwin-arm64") (path root "test/macos-drawing")))20
((equal? action "linux-build")21
(guarded! action cli '("build" "-c" "dev") (path font "test/freetype-host")))22
((equal? action "linux-unicode")23
(guarded! action (path font "test/freetype-host/build/dev/bin/font-linux-tests")24
(list (path font "test/test-coretext-unicode.sgl")) font))25
((equal? action "linux-conformance")26
(guarded! action (path font "test/freetype-host/build/dev/bin/font-linux-tests")27
(list (path font "test/test-conformance.sgl")) font))28
((equal? action "packet")29
(guarded! action cli (list (path root "scripts/macos/test-packet.sgl")30
(realpath (arg 13)) (arg 14)) "/tmp"))31
((equal? action "arguments")32
(guarded! action cli (list (path root "scripts/macos/test-fixture-arguments.sgl")33
window font (realpath (arg 13)) (arg 14)) "/tmp"))34
(else (error "Unknown qualification action" action)))