bug 1562: waf upgrade, patch to launch apiscan task

This commit is contained in:
Alexander Afanasyev
2013-04-26 11:13:12 -07:00
parent 6b5386116e
commit f81e8ee7fd

View File

@@ -9,8 +9,8 @@ import sys
from waflib import Task, Options, Configure, TaskGen, Logs, Build, Utils, Errors
from waflib.Errors import WafError
feature = TaskGen.feature
after = TaskGen.after
# feature = TaskGen.feature
# after = TaskGen.after
## https://launchpad.net/pybindgen/
REQUIRED_PYBINDGEN_VERSION = (0, 16, 0, 825)
@@ -328,6 +328,18 @@ class apiscan_task(Task.TaskBase):
def display(self):
return 'api-scan-%s\n' % (self.target,)
def uid(self):
try:
return self.uid_
except AttributeError:
m = Utils.md5()
up = m.update
up(self.__class__.__name__.encode())
up(self.curdirnode.abspath().encode())
up(self.target)
self.uid_ = m.digest()
return self.uid_
def run(self):
top_builddir = self.bld.bldnode.abspath()
module_path = get_module_path(self.bld, self.module)