diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2015-10-05 20:26:36 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2015-10-05 20:26:36 +0300 |
commit | 606dfed39f25e73de665a10c6a8dc052da0f01f6 (patch) | |
tree | b9aab0bdc2cbdc6bdd15389dc0c671152c9e3e27 /build.py | |
parent | c02009a6989710714cc0e2becc9cad11d4b0381d (diff) | |
parent | 68fdef88cbf3a9c0a08b565c40879102f753f19a (diff) | |
download | meson-606dfed39f25e73de665a10c6a8dc052da0f01f6.zip meson-606dfed39f25e73de665a10c6a8dc052da0f01f6.tar.gz meson-606dfed39f25e73de665a10c6a8dc052da0f01f6.tar.bz2 |
Merge pull request #274 from mesonbuild/privinc
Make it possible to expose private directory for header inclusion
Diffstat (limited to 'build.py')
-rw-r--r-- | build.py | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -124,11 +124,15 @@ class Build: return self.global_args.get(compiler.get_language(), []) class IncludeDirs(): - def __init__(self, curdir, dirs): + def __init__(self, curdir, dirs, extra_build_dirs=None): self.curdir = curdir self.incdirs = dirs # Interpreter has validated that all given directories # actually exist. + if extra_build_dirs is None: + self.extra_build_dirs = [] + else: + self.extra_build_dirs = extra_build_dirs def get_curdir(self): return self.curdir @@ -136,6 +140,9 @@ class IncludeDirs(): def get_incdirs(self): return self.incdirs + def get_extra_build_dirs(self): + return self.extra_build_dirs + class ExtractedObjects(): def __init__(self, target, srclist): self.target = target @@ -545,7 +552,7 @@ class Generator(): if not isinstance(rule, str): raise InvalidArguments('"output" may only contain strings.') if not '@BASENAME@' in rule and not '@PLAINNAME@' in rule: - raise InvalidArguments('"outputs" must contain @BASENAME@ or @PLAINNAME@.') + raise InvalidArguments('Every element of "output" must contain @BASENAME@ or @PLAINNAME@.') if '/' in rule or '\\' in rule: raise InvalidArguments('"outputs" must not contain a directory separator.') if len(outputs) > 1: |