Skip to content

Commit 9a19bc5

Browse files
committed
Add Cairo dependency detection for TOOL_FONTEDIT
The font-edit tool requires Cairo library for rendering operations but the build configuration did not properly detect this dependency, causing build failures on systems without Cairo installed.
1 parent c0bd1e8 commit 9a19bc5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

configs/Kconfig

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ config HAVE_LIBPNG
1717
config HAVE_LIBJPEG
1818
def_bool $(shell,pkg-config --exists libjpeg && echo y || echo n)
1919

20+
config HAVE_CAIRO
21+
def_bool $(shell,pkg-config --exists cairo && echo y || echo n)
22+
2023
choice
2124
prompt "Backend Selection"
2225
default BACKEND_SDL
@@ -281,9 +284,9 @@ config TOOLS
281284
config TOOL_FONTEDIT
282285
bool "Build scalable font editor"
283286
default y
284-
depends on TOOLS && HAVE_SDL2
287+
depends on TOOLS && HAVE_SDL2 && HAVE_CAIRO
285288
help
286-
Interactive font editor for Twin font format.
289+
Interactive font editor for Mado font format.
287290
Allows creation and modification of scalable fonts.
288291

289292
config PERF_TEST

0 commit comments

Comments
 (0)