From 023296423aab11dd2300f09f158e5234503b46c0 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 4 Mar 2011 17:11:33 +1100 Subject: waf: auto-create include paths if needed --- buildtools/wafsamba/samba_headers.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'buildtools/wafsamba/samba_headers.py') 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, -- cgit