My favorites | Sign in
Logo
waf
Project hosting will be READ-ONLY Wednesday, 7AM PST due to brief network maintenance
                
New issue | Search
for
| Advanced search | Search tips
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
Status:  PatchesWelcome
Owner:  ----
Type-Enhancement


Sign in to add a comment
 
Reported by b...@ucw.cz, Aug 24, 2009
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

Comment 1 by tnagy1024, Aug 27, 2009
what do you suggest?
Status: PatchesWelcome
Labels: -Type-Other Type-Enhancement
Comment 2 by sur...@ikkoku.de, 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']
0001-Support-reading-variables-via-check_cfg.patch
1.5 KB Download
Sign in to add a comment

Hosted by Google Code