diff options
author | dec05eba <dec05eba@protonmail.com> | 2017-12-09 17:27:08 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2017-12-09 17:28:43 +0100 |
commit | 2ed7d0b09caa872e44e2eb09b09b2387e93f9b34 (patch) | |
tree | 2abb2aeab1cdb679a79f82ef686b0ecbba1ae281 /backend/ninja/Ninja.hpp | |
parent | e7384a7672e4449bc194ca3ec66cdd4fcc63801e (diff) |
Add project compilation after ninja file is created
Diffstat (limited to 'backend/ninja/Ninja.hpp')
-rw-r--r-- | backend/ninja/Ninja.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/ninja/Ninja.hpp b/backend/ninja/Ninja.hpp index 1ba20c7..fdaa890 100644 --- a/backend/ninja/Ninja.hpp +++ b/backend/ninja/Ninja.hpp @@ -14,6 +14,7 @@ namespace backend public: void addSourceFile(const char *filepath); sibs::Result<bool> createBuildFile(const std::string &packageName, const std::vector<sibs::Dependency> &dependencies, const char *savePath); + sibs::Result<bool> build(const char *buildFilePath); private: bool containsSourceFile(const char *filepath) const; sibs::Result<std::string> getLinkerFlags(const std::vector<sibs::Dependency> &dependencies) const; |