diff options
author | dec05eba <dec05eba@protonmail.com> | 2017-12-28 22:55:50 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2017-12-28 22:56:34 +0100 |
commit | 179c5baaa2b24be61f65daad0e4d415914af4c71 (patch) | |
tree | aff81e8c9b158bfe44789305012aa06ec951b482 /include | |
parent | 9ffe3db21297192b0f26929e74327487905ad444 (diff) |
Add support for tests in a package where type is executable
Diffstat (limited to 'include')
-rw-r--r-- | include/Conf.hpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/Conf.hpp b/include/Conf.hpp index 1f680e8..5e3ed87 100644 --- a/include/Conf.hpp +++ b/include/Conf.hpp @@ -7,6 +7,7 @@ #include "Dependency.hpp" #include "Package.hpp" #include <vector> +#include <unordered_map> #include <cassert> #include <stdexcept> @@ -135,6 +136,15 @@ namespace sibs { return optimizationLevel; } + + void setPackageType(PackageType packageType) + { + this->packageType = packageType; + } + + virtual bool isDefined(const std::string &name) const; + virtual bool define(const std::string &name, const std::string &value); + virtual const std::unordered_map<std::string, std::string>& getDefines() const; protected: virtual void processObject(StringView name) override; virtual void processField(StringView name, const ConfigValue &value) override; @@ -147,6 +157,7 @@ namespace sibs PackageType packageType; std::vector<Dependency> dependencies; std::vector<std::string> includeDirs; + std::unordered_map<std::string, std::string> defines; OptimizationLevel optimizationLevel; bool finishedProcessing; }; |