summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba/wafsamba.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/wafsamba.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/wafsamba.py')
-rw-r--r--buildtools/wafsamba/wafsamba.py17
1 files changed, 5 insertions, 12 deletions
diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py
index 34ca3cf2ff..a33d5d4ada 100644
--- a/buildtools/wafsamba/wafsamba.py
+++ b/buildtools/wafsamba/wafsamba.py
@@ -357,17 +357,9 @@ def SAMBA_ERRTABLE(bld, name, source,
)
Build.BuildContext.SAMBA_ERRTABLE = SAMBA_ERRTABLE
-##########################################################
-# 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
-
#################################################################
# define a PIDL target
-def SAMBA_PIDL(bld, directory, source):
+def SAMBA_PIDL(bld, directory, source, options=''):
name = os.path.basename(string.replace(source, '.idl', ''))
name = "%s/ndr_%s.o" % (directory, name)
@@ -378,7 +370,8 @@ def SAMBA_PIDL(bld, directory, source):
bld(
features = 'cc',
source = source,
- target = name
+ target = name,
+ options = options
)
Build.BuildContext.SAMBA_PIDL = SAMBA_PIDL
@@ -386,9 +379,9 @@ Build.BuildContext.SAMBA_PIDL = SAMBA_PIDL
#################################################################
# define a set of Samba PIDL targets
-def SAMBA_PIDL_LIST(bld, directory, source_list):
+def SAMBA_PIDL_LIST(bld, directory, source_list, options=''):
for p in source_list.split():
- bld.SAMBA_PIDL(directory, p)
+ bld.SAMBA_PIDL(directory, p, options)
Build.BuildContext.SAMBA_PIDL_LIST = SAMBA_PIDL_LIST