summaryrefslogtreecommitdiff
path: root/source4/build/scons/et.py
blob: cba40af92a834d3c9c0f0a30dd60835e4235daef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
"""SCons.Tool.et

Tool-specific initialization for et

"""

import SCons.Defaults
import SCons.Scanner.ET
import SCons.Util

et_scanner = SCons.Scanner.ET.ETScan()

et_builder = SCons.Builder.Builder(action='$ETCOM',
                                     src_suffix = '.et',
                                     suffix='.c',
                                     scanner = et_scanner)

def generate(env):
    env['ET']          = 'FIXME'
    env['PROTOCOM']       = '$ET $SOURCE'
    env['BUILDERS']['ET'] = et_builder

def exists(env):
	return env.Detect('FIXME')