| Issue 511: | Add a way to read variables from pkg-config to check_cfg | |
| 3 people starred this issue and may be notified of changes. | Back to list |
In addition to cflags and lflags, pkg-config is often used to provide other settings of a package. E.g. path to utilities, path where plugins are to be installed and such. These are obtained by calling pkg-config --variable=varname package (where varname is the variable to obtain) It would be very nice if check_cfg in wafadmin.Tools.config_c supported argument 'variables' where for each member it would: - call pkg-config --variable=<varname> package - set <varname>_<uselib> to the environment Optionally defining the value for config header would be nice, though I guess it's easy enough to do that manually after the check. >> waf version (or svn revision): 1.5.8 |
|
,
Aug 27, 2009
what do you suggest?
Status: PatchesWelcome
Labels: -Type-Other Type-Enhancement |
|
,
Nov 17, 2009
I created a patch to support this kind of functionality. It is working pretty well for me. This makes it possible to do something like this: conf.check_cfg(package='dbus-1', variables='system_bus_default_address session_bus_services_dir') This currently sets: 'DBUS-1_session_bus_services_dir' ['/usr/share/dbus-1/services'] 'DBUS-1_system_bus_default_address' ['unix:path=/var/run/dbus/system_bus_socket'] |
|
|
|