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:
parent
fa47d7a7ad
commit
b778f9d6f5
@ -11,8 +11,15 @@ 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):
|
||||
def __noopSubst(func, name):
|
||||
return '$(%s)' % name
|
||||
|
||||
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)
|
||||
utils.addSubstituteCallback('LIBDIRNAME', __noopSubst)
|
||||
utils.addSubstituteCallback('SETUPHDIR', __noopSubst)
|
||||
|
Loading…
Reference in New Issue
Block a user