#ifndef SIBS_PKGCONFIG_HPP #define SIBS_PKGCONFIG_HPP #include "env.hpp" #if OS_FAMILY == OS_FAMILY_POSIX #include "Result.hpp" #include "Dependency.hpp" #include #include namespace sibs { struct PkgConfigFlags { std::string linkerFlags; std::string cflags; }; class PkgConfig { public: static Result validatePkgConfigPackageVersionExists(const Dependency &dependency); 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); static Result getDynamicLibsCflags(const std::vector &libs); static Result getDynamicLibsFlags(const std::vector &libs); }; } #endif // OS_FAMILY_POSIX #endif // SIBS_PKGCONFIG_HPP