aboutsummaryrefslogtreecommitdiff
path: root/include/GlobalLib.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2017-12-12 17:33:03 +0100
committerdec05eba <dec05eba@protonmail.com>2017-12-12 17:34:16 +0100
commitf3b7b7d34b3bf2b1be18914577c96b66dead379a (patch)
treef24a08256bc959929d51045eb49283fcab7e8b54 /include/GlobalLib.hpp
parentcfe578ec12198d09a9a89a2e0b40bccaa06aa8ae (diff)
Download and extract missing dependencies from github
Using libcurl and libarchive
Diffstat (limited to 'include/GlobalLib.hpp')
-rw-r--r--include/GlobalLib.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/GlobalLib.hpp b/include/GlobalLib.hpp
index d5e21d1..ca542f9 100644
--- a/include/GlobalLib.hpp
+++ b/include/GlobalLib.hpp
@@ -3,14 +3,22 @@
#include "Result.hpp"
#include "Linker.hpp"
+#include "Dependency.hpp"
namespace sibs
{
class GlobalLib
{
public:
+ enum DependencyError
+ {
+ DEPENDENCY_NOT_FOUND = 10,
+ DEPENDENCY_VERSION_NO_MATCH = 20
+ };
+
static Result<bool> validatePackageExists(const std::string &globalLibRootDir, const std::string &name);
static Result<std::string> getStaticLibsLinkerFlags(const std::string &globalLibRootDir, const std::string &name, const std::string &version, LinkerFlagCallbackFunc linkerFlagCallbackFunc);
+ static Result<bool> downloadDependency(const Dependency &dependency);
};
}