diff options
Diffstat (limited to 'src/libctor.h')
-rw-r--r-- | src/libctor.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/libctor.h b/src/libctor.h index 14fdf1d..9775085 100644 --- a/src/libctor.h +++ b/src/libctor.h @@ -69,7 +69,8 @@ struct Settings std::string builddir{"build"}; std::size_t parallel_processes{1}; int verbose{0}; // -1: completely silent, 0: normal, 1: verbose, ... -}; + std::vector<std::string> include_paths{"/usr/include", "/usr/local/include"}; + std::vector<std::string> library_paths{"/lib", "/usr/lib", "/usr/local/lib"};}; struct BuildConfiguration; using GeneratorCb = std::function<int(const std::string& input, @@ -101,11 +102,20 @@ struct ExternalManual Flags flags; }; +// This type will search for the supplied libs and headers, supplied flags +// will be be used verbatim. +struct ExternalAutomatic +{ + std::vector<std::string> headers; + std::vector<std::string> libs; + Flags flags; +}; struct ExternalConfiguration { std::string name; // Name for configuration - std::variant<ExternalManual> external; + std::variant<ExternalManual, + ExternalAutomatic> external; }; using ExternalConfigurations = std::vector<ExternalConfiguration>; |