diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-11-06 20:01:22 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:24:56 -0500 |
commit | 5c3fd8e4717ec7167a67f9e9ee1e2d86f7d515a8 (patch) | |
tree | b16ae1fcc626cf915f92ba73f8ccd220e6af03b8 /source4/pidl/idl.yp | |
parent | 7218b3b878fe74b8bd739443a38cb2409d332e20 (diff) | |
download | samba-5c3fd8e4717ec7167a67f9e9ee1e2d86f7d515a8.tar.gz samba-5c3fd8e4717ec7167a67f9e9ee1e2d86f7d515a8.tar.xz samba-5c3fd8e4717ec7167a67f9e9ee1e2d86f7d515a8.zip |
r19580: Add --includedir option.
(This used to be commit b076bfa39fefafcf30ac5be5056abfd629338fa5)
Diffstat (limited to 'source4/pidl/idl.yp')
-rw-r--r-- | source4/pidl/idl.yp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/pidl/idl.yp b/source4/pidl/idl.yp index 43f1db82c8..8c2d039ad7 100644 --- a/source4/pidl/idl.yp +++ b/source4/pidl/idl.yp @@ -470,9 +470,9 @@ sub parse_string return CleanData($idl); } -sub parse_file($) +sub parse_file($$) { - my ($filename) = @_; + my ($filename,$incdirs) = @_; my $saved_delim = $/; undef $/; @@ -480,7 +480,8 @@ sub parse_file($) if (! defined $cpp) { $cpp = "cpp"; } - my $data = `$cpp -D__PIDL__ -xc $filename`; + my $includes = map { " -I$_" } @$incdirs; + my $data = `$cpp -D__PIDL__$includes -xc $filename`; $/ = $saved_delim; return parse_string($data, $filename); |