Skip to content

Conversation

@jserv
Copy link
Contributor

@jserv jserv commented Oct 24, 2025

With the introduction of refined Kconfiglib, we can validate the package dependency via customized scripts, making configurations more flexible and accurate.


Summary by cubic

Modularized build-time package detection with a new mk/deps.mk helper, replacing scattered pkg-config/sdl2-config calls. This unifies cflags/libs retrieval, supports multi-package inputs, and prepares for Kconfiglib-based dependency checks.

  • Refactors
    • Added dep(flag-type, package[s]) in mk/deps.mk: try -config, then pkg-config; supports multiple packages; returns empty if not found; quiet by default, use V=1 for verbose.
    • Updated Makefile to use dep for pixman-1, libjpeg, libpng, sdl2, cairo, and neatvnc/aml/pixman-1, reducing repeated shell calls and centralizing dependency handling.

With the introduction of refined Kconfiglib, we can validate the package
dependency via customized scripts, making configurations more flexible
and accurate.
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

@jserv jserv merged commit 35d3289 into main Oct 24, 2025
9 checks passed
@jserv jserv deleted the quiet-configure branch October 24, 2025 05:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants