File: python-generator.py

package info (click to toggle)
xmms2 0.8%2Bdfsg-21
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 14,024 kB
  • sloc: ansic: 63,803; python: 15,537; cpp: 5,718; xml: 1,479; perl: 338; ruby: 243; makefile: 83; sh: 59; asm: 7
file content (17 lines) | stat: -rw-r--r-- 351 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from waflib import TaskGen
from waflib.TaskGen import extension
import sys

TaskGen.declare_chain(
		name='genpy',
		rule='${PYTHON} ${SRC} > ${TGT}',
		reentrant=True,
		color='BLUE',
		ext_in='.genpy',
		ext_out='.c',
		before='c')

def configure(conf):
    conf.env['PYTHON'] = sys.executable
    conf.env['GENPY_EXT'] = ['.genpy']
    return True