diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/GlobalLib.hpp | 3 | ||||
-rw-r--r-- | include/Linker.hpp | 11 |
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 |