File: nobuild.py

package info (click to toggle)
lv2 1.18.4-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,752 kB
  • sloc: python: 30,370; ansic: 5,603; xml: 214; sh: 169; makefile: 29
file content (24 lines) | stat: -rw-r--r-- 419 bytes parent folder | download | duplicates (42)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#! /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