aboutsummaryrefslogtreecommitdiff
path: root/src/Conf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Conf.cpp')
-rw-r--r--src/Conf.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/Conf.cpp b/src/Conf.cpp
index b1e05bb..97d562c 100644
--- a/src/Conf.cpp
+++ b/src/Conf.cpp
@@ -413,6 +413,22 @@ namespace sibs
else
throw ParserException("Expected package.tests to be a single value, was a list");
}
+ else if(name.equals("include_dirs"))
+ {
+ if(value.isList())
+ {
+ // TODO: Checking for duplicate declaration should be done in the config parser
+ if(!includeDirs.empty())
+ throw ParserException("Found duplicate declaration of package.include_dirs");
+
+ for(const StringView &includeDir : value.asList())
+ {
+ includeDirs.emplace_back(string(includeDir.data, includeDir.size));
+ }
+ }
+ else
+ throw ParserException("Expected package.include_dirs to be a list, was a single value");
+ }
}
else if(currentObject.equals("dependencies"))
{