From 28d6b571139998915bce147abb58617884431192 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 14 Dec 2017 15:22:06 +0100 Subject: Add support for dynamic libraries (shared objects) --- include/GlobalLib.hpp | 2 +- include/Result.hpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'include') 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 validatePackageExists(const std::string &globalLibRootDir, const std::string &name); - static Result getStaticLibsLinkerFlags(const std::string &globalLibRootDir, const std::string &name, const std::string &version, LinkerFlagCallbackFunc linkerFlagCallbackFunc); + static Result getLibsLinkerFlags(const std::string &globalLibRootDir, const std::string &name, const std::string &version, LinkerFlagCallbackFunc staticLinkerFlagCallbackFunc, LinkerFlagCallbackFunc dynamicLinkerFlagCallbackFunc); static Result 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: -- cgit v1.2.3