From 1d3e221a7a20bfd03517e3ae1e35e4a309a69b6a Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 10 Dec 2017 01:10:48 +0100 Subject: Add support for dependencies in global lib dir Global lib dir is located at ~/.sibs/lib TODO: If global lib dir doesn't exist, download it from github/server --- include/PkgConfig.hpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 include/PkgConfig.hpp (limited to 'include/PkgConfig.hpp') diff --git a/include/PkgConfig.hpp b/include/PkgConfig.hpp new file mode 100644 index 0000000..4bafa18 --- /dev/null +++ b/include/PkgConfig.hpp @@ -0,0 +1,19 @@ +#ifndef SIBS_PKGCONFIG_HPP +#define SIBS_PKGCONFIG_HPP + +#include "Result.hpp" +#include +#include + +namespace sibs +{ + class PkgConfig + { + public: + static Result validatePackageExists(const std::string &name); + static Result validatePackageVersionAtLeast(const std::string &name, const std::string &version); + static Result getDynamicLibsLinkerFlags(const std::vector &libs); + }; +} + +#endif //SIBS_PKGCONFIG_HPP -- cgit v1.2.3