update for CVS versions of bakefile

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2004-06-30 18:44:35 +00:00
parent fa47d7a7ad
commit b778f9d6f5

View File

@ -11,6 +11,13 @@ import utils
# register a substitution function for it that provides additional knowledge
# about the option (in this case that it does not contain dir separators and
# so utils.nativePaths() doesn't have to do anything with it):
try:
# this fails in 0.1.4 and 0.1.5 has different subst.callbacks signature:
utils.checkBakefileVersion('0.1.5')
def __noopSubst(name, func, caller):
return '$(%s)' % name
except AttributeError:
def __noopSubst(func, name):
return '$(%s)' % name
utils.addSubstituteCallback('CFG', __noopSubst)