aboutsummaryrefslogtreecommitdiff
path: root/include/PkgConfig.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2017-12-10 01:10:48 +0100
committerdec05eba <dec05eba@protonmail.com>2017-12-10 01:12:08 +0100
commit1d3e221a7a20bfd03517e3ae1e35e4a309a69b6a (patch)
treefdb38039d12cf38e9ac6102118727b78437cf3db /include/PkgConfig.hpp
parent2ed7d0b09caa872e44e2eb09b09b2387e93f9b34 (diff)
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
Diffstat (limited to 'include/PkgConfig.hpp')
-rw-r--r--include/PkgConfig.hpp19
1 files changed, 19 insertions, 0 deletions
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 <string>
+#include <vector>
+
+namespace sibs
+{
+ class PkgConfig
+ {
+ public:
+ static Result<bool> validatePackageExists(const std::string &name);
+ static Result<bool> validatePackageVersionAtLeast(const std::string &name, const std::string &version);
+ static Result<std::string> getDynamicLibsLinkerFlags(const std::vector<std::string> &libs);
+ };
+}
+
+#endif //SIBS_PKGCONFIG_HPP