From b528a65256dce069a3320e97a17d545181862d32 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 10 Jan 2011 01:48:55 +0000 Subject: Allow user to pass extra substitution dictionary to build_pc. git-svn-id: http://svn.drobilla.net/autowaf@19 e2e4594f-ea7b-45dc-bc5a-5f5301e603aa --- autowaf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'autowaf.py') 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) -- cgit v1.2.1