summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba/samba_patterns.py
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-02-26 22:48:55 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:26:39 +1000
commitd6f2855d968c606f54ab752aaaf08740d826c978 (patch)
treeac976ed7eb6157097f0b04011acda3a9b2b21fb5 /buildtools/wafsamba/samba_patterns.py
parent49b4d29ad357ea6347f7269a6cc3506fea70940b (diff)
downloadsamba-d6f2855d968c606f54ab752aaaf08740d826c978.tar.gz
samba-d6f2855d968c606f54ab752aaaf08740d826c978.tar.bz2
samba-d6f2855d968c606f54ab752aaaf08740d826c978.zip
build: fixed --includedir options for PIDL
Diffstat (limited to 'buildtools/wafsamba/samba_patterns.py')
-rw-r--r--buildtools/wafsamba/samba_patterns.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/buildtools/wafsamba/samba_patterns.py b/buildtools/wafsamba/samba_patterns.py
index 15400f10b6..79aad81e6a 100644
--- a/buildtools/wafsamba/samba_patterns.py
+++ b/buildtools/wafsamba/samba_patterns.py
@@ -7,6 +7,14 @@ from Logs import debug
from TaskGen import extension
from samba_utils import *
+##########################################################
+# create a node with a new name, based on an existing node
+def NEW_NODE(node, name):
+ ret = node.parent.find_or_declare([name])
+ ASSERT(node, ret is not None, "Unable to find new target with name '%s' from '%s'" % (
+ name, node.name))
+ return ret
+
################################################################################
# a et task which calls out to compile_et to do the work
@@ -23,9 +31,10 @@ def process_et(self, node):
self.allnodes.append(c_node)
+
################################################################################
# a idl task which calls out to pidl to do the work
-Task.simple_task_type('idl', '../../pidl/pidl --header --ndr-parser --client --python --server --outputdir=${TGT[0].outputdir} -- ${SRC}', color='BLUE', ext_out='.c')
+Task.simple_task_type('idl', '../../pidl/pidl ${TGT[0].options} --header --ndr-parser --client --python --server --outputdir=${TGT[0].outputdir} -- ${SRC}', color='BLUE', ext_out='.c')
@extension('.idl')
def process_idl(self, node):
@@ -41,6 +50,7 @@ def process_idl(self, node):
dname = os.path.dirname(node.bld_dir(self.env)) + "/gen_ndr"
c_node.outputdir = dname
+ c_node.options = self.options
self.create_task('idl', node, [c_node, h1_node, h2_node, s_node, cli_node, cli_h_node, py_node])