diff options
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; }; |