raylib-text-pixels-test still compiled with bare module paths, so the webp package import failed, and it linked the package's unbuilt libraylib.a without the image and audio libraries. It now builds with --project like the other host tests. Both text tests take Kryon's built raylib, webp and avif archives from make.
26 lines
1.2 KiB
Bash
26 lines
1.2 KiB
Bash
#!/bin/sh
|
||
set -eu
|
||
repo=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
||
. "$repo/tests/toolchain.sh"
|
||
work=${KRYON_TEXT_TEST_OUTPUT:-"$repo/build/scratch/raylib-text-pixels"}
|
||
mkdir -p "$work"
|
||
exec 9>"$work/lock"
|
||
flock 9
|
||
archive=${RAYLIB_A:-"$repo/build/raylib-ziran/libraylib.a"}
|
||
webp=${WEBP_A:-"$repo/build/webp-ziran/libkryonwebp.a"}
|
||
avif=${AVIF_A:-"$repo/build/avif-ziran/avif/libavif.a"}
|
||
aom=${AOM_A:-"$repo/build/avif-ziran/aom/libaom.a"}
|
||
raylib_libs=${RAYLIB_LIBS:-$(pkg-config --libs sdl2 libdrm gbm egl glesv2) -ldl -lpthread -lm}
|
||
cd "$repo"
|
||
"$ziran" build --project --target=c --root "$repo/tests" -o "$work/c" \
|
||
"$repo/tests/raylib_text_pixels_test.zi"
|
||
"${CC:-cc}" -std=c11 -O2 -ffunction-sections -fdata-sections \
|
||
-Wl,--gc-sections -I"$ziran_root/include" -I"$work/c" "$work/c"/*.c \
|
||
"$archive" "$webp" "$avif" "$aom" "${ZIRAN_LIB:-$ziran_root/build/libziran.a}" \
|
||
$raylib_libs ${RAYLIB_AUDIO_LIBS:--lopus -lm} -o "$work/test"
|
||
env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY -u DBUS_SESSION_BUS_ADDRESS \
|
||
-u GDK_DISPLAY YUE_DESKTOP_RECOVERY=0 \
|
||
timeout --kill-after=2s 45s xvfb-run -a -n 300 \
|
||
-s '-screen 0 1280x900x24' "$work/test"
|
||
echo 'Native glyph pixel coverage matches at 50%–400%, fractional camera scales and atlas eviction'
|