Skip to content

Conversation

@jserv
Copy link
Contributor

@jserv jserv commented Oct 20, 2025

This replaces all individual dependency macros with a single, concise interface:
$(call dep,flag-type,package-name[s])

Where:

  • flag-type: cflags or libs
  • package-name[s]: Single package or space-separated list

Summary by cubic

Unified dependency flag retrieval with a single dep make macro, replacing direct pkg-config and tool-specific calls. This simplifies the Makefile and supports multi-package flags with safer detection.

  • Refactors
    • Added mk/deps.mk with $(call dep,flag-type,package-name[s]) macro.
    • Replaced all pkg-config/sdl2-config usages in Makefile (pixman-1, libjpeg, libpng, sdl2, neatvnc aml pixman-1, cairo).
    • Auto-detects package-specific config tools first, falls back to pkg-config, and supports multiple packages.

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.

1 issue found across 2 files

Prompt for AI agents (all 1 issues)

Understand the root cause of the following 1 issues and fix them.


<file name="mk/deps.mk">

<violation number="1" location="mk/deps.mk:15">
The new `dep` macro suppresses error messages from dependency-checking tools by redirecting stderr to `/dev/null`. This system-wide change makes it significantly harder to diagnose missing dependencies, as it replaces clear error messages with silent failures that lead to more cryptic compiler or linker errors.</violation>
</file>

React with 👍 or 👎 to teach cubic. Mention @cubic-dev-ai to give feedback, ask questions, or re-run the review.

This replaces all individual dependency macros with a single, concise
interface:
  $(call dep,flag-type,package-name[s])

Where:
- flag-type: cflags or libs
- package-name[s]: Single package or space-separated list

It also adds V=1 flag support to show pkg-config/config-tool errors.
Usage:
  make           # Silent mode (original behavior)
  make V=1       # Verbose mode (shows all dependency errors)
@jserv jserv merged commit a5d0b01 into main Oct 20, 2025
8 checks passed
@jserv jserv deleted the quiet-configure branch October 20, 2025 02:41
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