aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2017-12-10 04:05:20 +0100
committerdec05eba <dec05eba@protonmail.com>2017-12-10 04:06:02 +0100
commit99570d3fa5abf548d4e8e5e479d82ee66898b602 (patch)
treed52ac6662d51baccde2983639de0ffda3acc9578 /include
parent1d3e221a7a20bfd03517e3ae1e35e4a309a69b6a (diff)
Add support for recursive global lib dependencies
Diffstat (limited to 'include')
-rw-r--r--include/GlobalLib.hpp3
-rw-r--r--include/Linker.hpp11
2 files changed, 13 insertions, 1 deletions
diff --git a/include/GlobalLib.hpp b/include/GlobalLib.hpp
index e5a9374..d5e21d1 100644
--- a/include/GlobalLib.hpp
+++ b/include/GlobalLib.hpp
@@ -2,6 +2,7 @@
#define SIBS_GLOBALLIB_HPP
#include "Result.hpp"
+#include "Linker.hpp"
namespace sibs
{
@@ -9,7 +10,7 @@ namespace sibs
{
public:
static Result<bool> validatePackageExists(const std::string &globalLibRootDir, const std::string &name);
- static Result<std::string> getDynamicLibsLinkerFlags(const std::string &globalLibRootDir, const std::string &name, const std::string &version);
+ static Result<std::string> getStaticLibsLinkerFlags(const std::string &globalLibRootDir, const std::string &name, const std::string &version, LinkerFlagCallbackFunc linkerFlagCallbackFunc);
};
}
diff --git a/include/Linker.hpp b/include/Linker.hpp
new file mode 100644
index 0000000..7ea7b48
--- /dev/null
+++ b/include/Linker.hpp
@@ -0,0 +1,11 @@
+#ifndef SIBS_LINKER_HPP
+#define SIBS_LINKER_HPP
+
+#include <functional>
+
+namespace sibs
+{
+ using LinkerFlagCallbackFunc = std::function<void(const std::string&)>;
+}
+
+#endif //SIBS_LINKER_HPP