]> git.saurik.com Git - wxWidgets.git/commitdiff
update for CVS versions of bakefile
authorVáclav Slavík <vslavik@fastmail.fm>
Wed, 30 Jun 2004 18:44:35 +0000 (18:44 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Wed, 30 Jun 2004 18:44:35 +0000 (18:44 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

build/bakefiles/wxwin.py

index 846a1850316cece73d8065113e7387c64fdc101b..3dd90bf628751456864d55a013db1be575bafb6c 100644 (file)
@@ -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)