git.samba.org
/
bbaumbach
/
samba-autobuild
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
third_party/waf: upgrade to waf 2.0.8
[bbaumbach/samba-autobuild/.git]
/
third_party
/
waf
/
waflib
/
Tools
/
nobuild.py
1
#! /usr/bin/env python
2
# encoding: utf-8
3
# Thomas Nagy, 2015 (ita)
4
5
"""
6
Override the build commands to write empty files.
7
This is useful for profiling and evaluating the Python overhead.
8
9
To use::
10
11
def build(bld):
12
...
13
bld.load('nobuild')
14
15
"""
16
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
24