diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-07-06 20:28:22 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-07-10 21:38:45 +0300 |
commit | 4b9be1cb87c4759ca08aa89acd9e9fd7ba5b18be (patch) | |
tree | 6a591f70c02cee552d6b97abc5d8b3958acb168d /mod/build-config.hxx | |
parent | 6a2e318a38ec57c61a6c1b9a11cdf96dffe5a63e (diff) |
Add support for build include/exclude manifest values
Diffstat (limited to 'mod/build-config.hxx')
-rw-r--r-- | mod/build-config.hxx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mod/build-config.hxx b/mod/build-config.hxx index b49819d..3c89ceb 100644 --- a/mod/build-config.hxx +++ b/mod/build-config.hxx @@ -13,9 +13,12 @@ #include <libbrep/utility.hxx> #include <libbrep/build.hxx> +#include <libbrep/build-package.hxx> #include <mod/options.hxx> +// Various build-related state and utilities. +// namespace brep { // Return pointer to the shared build configurations instance, creating one @@ -48,6 +51,18 @@ namespace brep // string force_rebuild_url (const string& host, const dir_path& root, const build&); + + // Match a build configuration against the name and target patterns. + // + bool + match (const string& config_pattern, + const optional<string>& target_pattern, + const bbot::build_config&); + + // Return true if a package excludes the specified build configuration. + // + bool + exclude (const build_package&, const bbot::build_config&); } #endif // MOD_BUILD_CONFIG_HXX |