-
-
Notifications
You must be signed in to change notification settings - Fork 320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New pkgconfig integration #4396
Comments
If it's a Tool then it would make more sense to interact with it via methods instead.
of course there should be lower level methods too, those that return dict with CPPPATH etc instead of adding them on their own. |
To put it more clearly, I'm not sure how in your proposed api you can adapt to missing packages, yet it's an important use case. |
I wouldn't consider my thing above to be in any way proposing a specific API. Just outlining an idea, and I'm sure there are many other ways to achieve what I'm suggesting. I guess if I had to summarize that idea in words, it would be to create a SCons tool that knows how to invoke the configuration tool repeatedly in the different modes to extract the relevant flags and apply them to the associated SCons Variables, without any special knowledge of or interest in the flags themselves. I think this is an important thing to do because I think it is basically impossible to make the existing |
There already exists this api: https://pypi.org/project/pkgconfig/ . Can scons adopt it as a dependency? |
Describe the Feature
The
ParseFlags
family of functions relies on picking specific flags out of the command line. This is non-portable and hard to maintain. A better approach would be to build a tool that knows how to make better use of thepkg-config
command line API to pick out the functional groups of flags and connect them to the analogous SCons flags.Required information
Additional context
The idea was to write a new tool that understood how to use
pkg-confg
args like--libs-only-L
to know what arguments should be attached to SConsLIBPATH
variable, or--cflags-only-I
to tie it to SConsCPPPATH
. Something like:It is probably possible to provide a tools scoped dictionary to kwargs in the usual override suspects:
The text was updated successfully, but these errors were encountered: