From a4e3a1191949449d1fda319771c725fdaa6f8b75 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 5 May 2018 15:11:17 +0200 Subject: Build compilation database (clangdb) when compiling --- include/Conf.hpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'include/Conf.hpp') diff --git a/include/Conf.hpp b/include/Conf.hpp index 6a6d07c..9a9cacf 100644 --- a/include/Conf.hpp +++ b/include/Conf.hpp @@ -212,7 +212,8 @@ namespace sibs useCmake(false), buildTests(_buildTests), cVersion(CVersion::C11), - cppVersion(CPPVersion::CPP14) + cppVersion(CPPVersion::CPP14), + mainProject(false) { cmakeDirGlobal = projectPath; cmakeDirStatic = cmakeDirGlobal; @@ -377,6 +378,16 @@ namespace sibs this->packageType = packageType; } + bool isMainProject() const + { + return mainProject; + } + + void setMainProject(bool mainProject) + { + this->mainProject = mainProject; + } + virtual bool isDefined(const std::string &name) const; virtual bool define(const std::string &name, const std::string &value); virtual const std::unordered_map& getDefines() const; @@ -428,6 +439,7 @@ namespace sibs bool useCmake; bool buildTests; bool finishedProcessing; + bool mainProject; }; class SibsTestConfig : public SibsConfig -- cgit v1.2.3