Suggestion: Load specified .pc file / .pc parser

Kevin Ingwersen ingwie2000 at
Mon Dec 16 15:50:59 PST 2013

Hello there!

I am currently working on a package manager myself and I would like to implement pkg-config, as it is commonly used to store information about packages - so why not take advantage of that.

The problem is, that I will not know where the user installed the application itself, hence, I can not just recompile pkg-config on the fly - so I need to be able to „dynamicaly“ load a pkg-config file to query it for information.

Also, I was wondering if there is a way to otherwise parse .pc files. As the assignment syntax is mixed (colon token and equal token) I can’t just apply it straight away into a PHP script or another C source - I have never been really good with writing parsers ^^; So I was wondering if there was a .pc-parser already available?

Kind regards,

More information about the pkg-config mailing list