From 385449fd38112fa3732497acc9f085d9ea2b6d90 Mon Sep 17 00:00:00 2001 From: Waozi Date: Sat, 14 Nov 2026 09:57:34 -0300 Subject: [PATCH] Build the Kryon test driver only for UI tests Kryon leaves its test driver out of ordinary builds. The UI tests drive the app, so a build with KRYON_TEST_DRIVER set passes that define to the Kryon sources. --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 8001515ee..0bedc33d6 100644 --- a/Makefile +++ b/Makefile @@ -375,6 +375,13 @@ endif ifeq ($(NATIVE_PLATFORM),darwin) ZI_NATIVE_DEFINES += __APPLE__ endif +# Kryon's test driver is test code, so the app is built without it. The UI +# tests drive the app, so they need a build made with KRYON_TEST_DRIVER set, +# for example `KRYON_TEST_DRIVER=1 make tai-chi-ui-test` from a clean build. +# A build without it stops with that instruction when a test runs it. +ifneq ($(KRYON_TEST_DRIVER),) +ZI_NATIVE_DEFINES += KRYON_TEST_DRIVER +endif # No in-process GTK anywhere else either: the system theme uses kryon's # built-in palettes, and native file dialogs prefer xdg-desktop-portal through