1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00
samba-mirror/buildtools/wafsamba/samba_patterns.py

24 lines
848 B
Python
Raw Normal View History

# a waf tool to add extension based build patterns for Samba
import os, sys, Options
import string, Task, Utils, optparse
from Configure import conf
from Logs import debug
from TaskGen import extension
from samba_utils import *
################################################################################
# a et task which calls out to compile_et to do the work
Task.simple_task_type('et',
'../heimdal_build/et_compile_wrapper.sh . ${TGT[0].bld_dir(env)} default/source4/heimdal_build/compile_et ${SRC[0].abspath(env)} ${TGT[0].bldpath(env)}',
color='BLUE', ext_out='.c',
shell = False)
@extension('.et')
def process_et(self, node):
c_node = node.change_ext('.c')
h_node = node.change_ext('.h')
self.create_task('et', node, [c_node, h_node])
self.allnodes.append(c_node)