X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/77ffb5937e89927b621128789401db8921fe580f..107d0fd493dc4d750ba18518a2eea5b93d988965:/build/bakefiles/wxwin.py diff --git a/build/bakefiles/wxwin.py b/build/bakefiles/wxwin.py index 846a185031..d5bead7c7d 100644 --- a/build/bakefiles/wxwin.py +++ b/build/bakefiles/wxwin.py @@ -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) @@ -33,10 +40,10 @@ def mk_wxid(id): # All libs that are part of the main library (i.e. non-contrib): MAIN_LIBS = ['mono', 'base', 'core', 'adv', 'html', 'xml', 'net', - 'odbc', 'dbgrid'] + 'media', 'odbc', 'dbgrid', 'xrc'] # List of library names/ids for categories with different names: LIBS_NOGUI = ['xml', 'net', 'odbc'] -LIBS_GUI = ['core', 'adv', 'html', 'gl', 'dbgrid'] +LIBS_GUI = ['core', 'adv', 'html', 'gl', 'dbgrid', 'xrc', 'media'] # Additional libraries that must be linked in: EXTRALIBS = { 'gl' : '$(EXTRALIBS_OPENGL)',