thirdparty:waf: New files for waf 1.9.10
[Samba.git] / third_party / waf / waflib / extras / nobuild.py
blobc628af834dd552bef2328fa356b11843e5000e62
1 #! /usr/bin/env python
2 # encoding: utf-8
3 # Thomas Nagy, 2015 (ita)
5 """
6 Override the build commands to write empty files.
7 This is useful for profiling and evaluating the Python overhead.
9 To use::
11 def build(bld):
12 ...
13 bld.load('nobuild')
15 """
17 from waflib import Task
18 def build(bld):
19 def run(self):
20 for x in self.outputs:
21 x.write('')
22 for (name, cls) in Task.classes.items():
23 cls.run = run