summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-03-04 17:11:33 +1100
committerAndrew Tridgell <tridge@samba.org>2011-03-15 12:22:20 +1100
commit023296423aab11dd2300f09f158e5234503b46c0 (patch)
tree0e217620cf89f40b97f2351fe2a0e93c5496f5a8
parent20ec0b6629a35e40f97265b0fe6fdee4df274951 (diff)
downloadsamba-023296423aab11dd2300f09f158e5234503b46c0.tar.gz
samba-023296423aab11dd2300f09f158e5234503b46c0.tar.bz2
samba-023296423aab11dd2300f09f158e5234503b46c0.zip
waf: auto-create include paths if needed
-rw-r--r--buildtools/wafsamba/samba_headers.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/buildtools/wafsamba/samba_headers.py b/buildtools/wafsamba/samba_headers.py
index 95d1e6fb55..a03254e328 100644
--- a/buildtools/wafsamba/samba_headers.py
+++ b/buildtools/wafsamba/samba_headers.py
@@ -136,6 +136,13 @@ def PUBLIC_HEADERS(bld, public_headers, header_path=None, public_headers_install
header_map[src_path] = target_path
+ build_dir = os.path.join(bld.bldnode.abspath(),
+ 'default',
+ bld.env.build_public_headers,
+ inst_path)
+ if not os.path.exists(build_dir):
+ mkdir_p(build_dir)
+
t = bld.SAMBA_GENERATOR('HEADER_%s/%s/%s' % (relpath2, inst_path, inst_name),
group='headers',
rule=create_public_header,