1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/third_party/waf/waflib/Tools/nobuild.py
Alexander Bokovoy 3b7dfc51ac third_party/waf: upgrade to waf 2.0.8
Signed-off-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-09-05 06:37:25 +02:00

25 lines
419 B
Python

#! /usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2015 (ita)
"""
Override the build commands to write empty files.
This is useful for profiling and evaluating the Python overhead.
To use::
def build(bld):
...
bld.load('nobuild')
"""
from waflib import Task
def build(bld):
def run(self):
for x in self.outputs:
x.write('')
for (name, cls) in Task.classes.items():
cls.run = run