U-CONFIG(1)

πŸ’– U-CONFIG πŸ’–

okay bestie, listen up β€” this is the manual page for u-config, a teeny tiny smaller, simpler, portable pkg-config clone. she's little, she's portable, she does the job, and she's about to be your new fave. πŸŽ€


✨ SYNOPSIS ✨

u-config [options] package [package ...]

like, that's it. that's the whole vibe. options first, then as many packages as your heart desires. πŸ’…


🌸 DESCRIPTION 🌸

okay so u-config is a small, highly portable pkg-config and pkgconf clone. her whole thing is retrieving compiler and linker flags, version info, and other dependency information for software packages. she's basically the group chat moderator of your build system. 🫢

Package metadata gets retrieved from ".pc" text files, which live in a system-specific path. you can override the default search path with environment variables like PKG_CONFIG_PATH β€” go peek at ENVIRONMENT below for the deets. ✨

This manual page is specifically about the u-config utility itself, like, her and only her. if you want general info about pkg-config concepts and the file format, go read the manual pages from other projects, like pkgconf(1) and pc(5). not me being a good wingman and pointing you to the right sources. πŸ’–

Now β€” u-config supports a subset of the options that other pkg-config implementations have. that's the tea. for a list of the options she does support, hit up the --help option. β˜•

And some of those options are unique to u-config, which is giving main character energy honestly:

  • --newlines β€” separates arguments by line feeds instead of spaces! sometimes this is just what you need, like in the fish shell, or when you're manually examining output and want it to be readable instead of one cursed long line. πŸ‘‘
  • --msvc-syntax β€” translates and prints compiler arguments into a syntax compatible with the MSVC compiler. for example, -l libname becomes libname.lib. she speaks MSVC, she's multilingual, she ate. πŸ”₯

🌈 ENVIRONMENT 🌈

u-config supports all the important pkg-config run-time environment variables. like, all the important ones, no cap. πŸ’œ

To see which ones are supported, use the --help option. that's the vibe check. πŸ¦‹


⭐ EXAMPLES ⭐

look at her go:

$ u-config --cflags --libs foo
-I/usr/include/foo -DFOO_HAS_BAR=1 -lfoo

periodt. flags delivered, no drama, no mess. βœ¨πŸ’…


πŸŽ€ SEE ALSO πŸŽ€

go read them, bestie, they're iconic too. 🫢


πŸ‘‘ AUTHORS πŸ‘‘

u-config was written by Chris Wellons <wellons@nullprogram.com>. 🧚

This manual page was written by Andrea Pappacoda <andrea@pappacoda.it> for the Debian project (and may be used by others). so sweet of them fr fr. πŸ’–


and that's the whole page, bestie!! this one's from the Debian fam, dated 2024-08-22, and it's the U-CONFIG(1) girl herself. go build something cute with her. mwah. πŸ˜­πŸ’–πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from