aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2017-12-14 15:22:06 +0100
committerdec05eba <dec05eba@protonmail.com>2017-12-14 15:22:12 +0100
commit28d6b571139998915bce147abb58617884431192 (patch)
tree1b79ab0b85973beac33d833db5bc9be472a4dedd /include
parentc244361b8ae743bcb326b9a1a168f2fdcab491e8 (diff)
Add support for dynamic libraries (shared objects)
Diffstat (limited to 'include')
-rw-r--r--include/GlobalLib.hpp2
-rw-r--r--include/Result.hpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/include/GlobalLib.hpp b/include/GlobalLib.hpp
index ca542f9..78511c3 100644
--- a/include/GlobalLib.hpp
+++ b/include/GlobalLib.hpp
@@ -17,7 +17,7 @@ namespace sibs
};
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<std::string> getLibsLinkerFlags(const std::string &globalLibRootDir, const std::string &name, const std::string &version, LinkerFlagCallbackFunc staticLinkerFlagCallbackFunc, LinkerFlagCallbackFunc dynamicLinkerFlagCallbackFunc);
static Result<bool> downloadDependency(const Dependency &dependency);
};
}
diff --git a/include/Result.hpp b/include/Result.hpp
index eb0aa01..e8f4d12 100644
--- a/include/Result.hpp
+++ b/include/Result.hpp
@@ -53,6 +53,8 @@ namespace sibs
{
return errorCode;
}
+
+ operator bool () { return isOk(); }
private:
Result(const T &_value = T()) : value(_value) {}
private: