aboutsummaryrefslogtreecommitdiff
path: root/include/PkgConfig.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-06-26 17:33:24 +0200
committerdec05eba <dec05eba@protonmail.com>2021-06-26 17:33:24 +0200
commit61d9e8699687342c2e32c32c8d4eb71760d5d290 (patch)
tree9fd6ce694d857704ad369ac32f779c19ab4f665d /include/PkgConfig.hpp
parent3a150e29cd1fa63614f45dff01240b01f9c4a025 (diff)
Use fork/exec instead of popen. Add Path class
Diffstat (limited to 'include/PkgConfig.hpp')
-rw-r--r--include/PkgConfig.hpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/include/PkgConfig.hpp b/include/PkgConfig.hpp
index 24aeb78..23c1b12 100644
--- a/include/PkgConfig.hpp
+++ b/include/PkgConfig.hpp
@@ -22,13 +22,12 @@ namespace sibs
{
public:
static void setPkgConfigPath(const FileString &path);
- static Result<bool> validatePkgConfigPackageVersionExists(PackageListDependency *dependency);
+ static Result<bool> validatePkgConfigPackageVersionExists(const PackageListDependency &dependency);
static Result<bool> validatePackageExists(const std::string &name);
- static Result<bool> validatePackageVersionAtLeast(const std::string &name, const std::string &version);
static Result<PackageVersion> getPackageVersion(const std::string &name);
- static Result<std::string> getDynamicLibsLinkerFlags(const std::vector<PackageListDependency*> &libs);
- static Result<std::string> getDynamicLibsCflags(const std::vector<PackageListDependency*> &libs);
- static Result<PkgConfigFlags> getDynamicLibsFlags(const std::vector<PackageListDependency*> &libs);
+ static Result<std::string> getDynamicLibsLinkerFlags(const std::vector<PackageListDependency> &libs);
+ static Result<std::string> getDynamicLibsCflags(const std::vector<PackageListDependency> &libs);
+ static Result<PkgConfigFlags> getDynamicLibsFlags(const std::vector<PackageListDependency> &libs);
};
}