summaryrefslogtreecommitdiffstats
path: root/autowaf.py
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-01-10 01:48:55 +0000
committerDavid Robillard <d@drobilla.net>2011-01-10 01:48:55 +0000
commitb528a65256dce069a3320e97a17d545181862d32 (patch)
tree396695ebd95163c016e9cc9330a2e988b6f435dd /autowaf.py
parent3d09e967ee531d44a7627f82bbbfed601dbfe0be (diff)
downloadautowaf-b528a65256dce069a3320e97a17d545181862d32.tar.gz
autowaf-b528a65256dce069a3320e97a17d545181862d32.tar.bz2
autowaf-b528a65256dce069a3320e97a17d545181862d32.zip
Allow user to pass extra substitution dictionary to build_pc.
git-svn-id: http://svn.drobilla.net/autowaf@19 e2e4594f-ea7b-45dc-bc5a-5f5301e603aa
Diffstat (limited to 'autowaf.py')
-rw-r--r--autowaf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/autowaf.py b/autowaf.py
index 6122e3e..b6c9a50 100644
--- a/autowaf.py
+++ b/autowaf.py
@@ -289,7 +289,7 @@ def is_child():
return g_is_child
# Pkg-config file
-def build_pc(bld, name, version, libs):
+def build_pc(bld, name, version, libs, subst_dict={}):
'''Build a pkg-config file for a library.
name -- uppercase variable name (e.g. 'SOMENAME')
version -- version string (e.g. '1.2.3')
@@ -312,7 +312,7 @@ def build_pc(bld, name, version, libs):
if type(libs) != list:
libs = libs.split()
- subst_dict = { name + '_VERSION' : version }
+ subst_dict[name + '_VERSION'] = version
for i in libs:
subst_dict[i + '_LIBS'] = link_flags(bld.env, i)
lib_cflags = compile_flags(bld.env, i)