def handleRequires(e): if 'version' in e.props: if not utils.checkBakefileVersion(e.props['version']): sys.stderr.write(""" ----------------------------------------------------------------------- This file cannot be processed with Bakefile version older than %s. You are using Bakefile version %s. Please install the newest version from http://www.bakefile.org. ----------------------------------------------------------------------- """ % (e.props['version'], mk.vars['BAKEFILE_VERSION'])) raise ReaderError(e, "Bakefile not new enough")
# Helper functions for wxWidgets bakefiles # # $Id: wxwin.py,v 1.28 2005/05/31 09:17:02 JS Exp $ # import utils # We use 'CFG' option in places where bakefile doesn't like it, so we must # 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) utils.addSubstituteCallback('LIBDIRNAME', __noopSubst) utils.addSubstituteCallback('SETUPHDIR', __noopSubst) utils.addSubstituteCallback('OBJS', __noopSubst) def mk_wxid(id): """Creates wxWidgets library identifier from bakefile target ID that follows this convention: DLLs end with 'dll', static libraries end with 'lib'. If withPrefix=1, then _wxid is returned instead
# # Helper functions for wxWidgets bakefiles # # $Id: wxwin.py 50120 2007-11-20 22:52:40Z VS $ # import utils # We use 'CFG' option in places where bakefile doesn't like it, so we must # 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) utils.addSubstituteCallback('LIBDIRNAME', __noopSubst) utils.addSubstituteCallback('SETUPHDIR', __noopSubst) utils.addSubstituteCallback('OBJS', __noopSubst)
# Helper functions for wxWidgets bakefiles # # $Id$ # import utils # We use 'CFG' option in places where bakefile doesn't like it, so we must # 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) utils.addSubstituteCallback("LIBDIRNAME", __noopSubst) utils.addSubstituteCallback("SETUPHDIR", __noopSubst) utils.addSubstituteCallback("OBJS", __noopSubst)