summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba/samba_pidl.py
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2010-12-10 02:36:24 +0300
committerMatthieu Patou <mat@matws.net>2010-12-10 02:39:42 +0300
commit301d59caf2ee6f49e108b748b0e38221dec9bb96 (patch)
tree7560b0cf1b9e4e4601eb2b52e990ede80b9ce2b1 /buildtools/wafsamba/samba_pidl.py
parent87337383572324e3d1d00ed710614ebe217aa2b2 (diff)
downloadsamba-301d59caf2ee6f49e108b748b0e38221dec9bb96.tar.gz
samba-301d59caf2ee6f49e108b748b0e38221dec9bb96.tar.bz2
samba-301d59caf2ee6f49e108b748b0e38221dec9bb96.zip
build: use CPP and CC values when calling pidl
Diffstat (limited to 'buildtools/wafsamba/samba_pidl.py')
-rw-r--r--buildtools/wafsamba/samba_pidl.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/buildtools/wafsamba/samba_pidl.py b/buildtools/wafsamba/samba_pidl.py
index 902d4c6e01..6476211eea 100644
--- a/buildtools/wafsamba/samba_pidl.py
+++ b/buildtools/wafsamba/samba_pidl.py
@@ -58,7 +58,16 @@ def SAMBA_PIDL(bld, pname, source,
pidl_src_nodes = bld.pidl_files_cache
# the cd .. is needed because pidl currently is sensitive to the directory it is run in
- t = bld(rule='cd .. && ${PERL} "${PIDL}" --quiet ${OPTIONS} --outputdir ${OUTPUTDIR} -- "${SRC[0].abspath(env)}"',
+ cpp = ""
+ cc = ""
+ if bld.CONFIG_SET("CPP"):
+ cpp = "CPP=%s" % bld.CONFIG_GET("CPP")
+ if bld.CONFIG_SET("CC"):
+ if isinstance(bld.CONFIG_GET("CC"), list):
+ cc = "CC=%s" % bld.CONFIG_GET("CC")[0]
+ else:
+ cc = "CC=%s" % bld.CONFIG_GET("CC")
+ t = bld(rule='cd .. && %s %s ${PERL} "${PIDL}" --quiet ${OPTIONS} --outputdir ${OUTPUTDIR} -- "${SRC[0].abspath(env)}"' % (cpp, cc),
ext_out = '.c',
before = 'cc',
on_results = True,