From 99570d3fa5abf548d4e8e5e479d82ee66898b602 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 10 Dec 2017 04:05:20 +0100 Subject: Add support for recursive global lib dependencies --- include/GlobalLib.hpp | 3 ++- include/Linker.hpp | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 include/Linker.hpp (limited to 'include') 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 validatePackageExists(const std::string &globalLibRootDir, const std::string &name); - static Result getDynamicLibsLinkerFlags(const std::string &globalLibRootDir, const std::string &name, const std::string &version); + static Result 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 + +namespace sibs +{ + using LinkerFlagCallbackFunc = std::function; +} + +#endif //SIBS_LINKER_HPP -- cgit v1.2.3