diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2022-11-16 22:14:53 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2022-11-23 14:08:05 +0300 |
commit | 40e4d161fa319a443c2598ddbc74b8ad31220c68 (patch) | |
tree | c5f8c20b135c297c386e9e544f303c991e3b40ab /libbbot/build-config.hxx | |
parent | 5d2f40dbca1ed021eb4586c8f3f5578825e82c57 (diff) |
Add support for package-config task manifest value
Diffstat (limited to 'libbbot/build-config.hxx')
-rw-r--r-- | libbbot/build-config.hxx | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/libbbot/build-config.hxx b/libbbot/build-config.hxx deleted file mode 100644 index 473e5d8..0000000 --- a/libbbot/build-config.hxx +++ /dev/null @@ -1,70 +0,0 @@ -// file : libbbot/build-config.hxx -*- C++ -*- -// license : MIT; see accompanying LICENSE file - -#ifndef LIBBBOT_BUILD_CONFIG_HXX -#define LIBBBOT_BUILD_CONFIG_HXX - -#include <map> -#include <string> -#include <vector> -#include <iosfwd> - -#include <libbutl/path.hxx> -#include <libbutl/optional.hxx> -#include <libbutl/tab-parser.hxx> -#include <libbutl/target-triplet.hxx> - -#include <libbbot/export.hxx> -#include <libbbot/version.hxx> - -namespace bbot -{ - // Build configuration matching specific machine names. Used by bbot - // controllers. - // - struct build_config - { - std::string machine_pattern; // Machine name pattern. - std::string name; // Configuration name. - butl::target_triplet target; // Build target. - butl::optional<std::string> environment; // Build environment name. - std::vector<std::string> classes; - std::vector<std::string> args; // Note: quoting is preserved. - - // Warning-detecting regular expressions. Note that quoting is preserved. - // - std::vector<std::string> warning_regexes; - }; - - struct build_configs: std::vector<build_config> - { - // List of all configuration class names. Starts with the all and default - // classes. The rest follows in the same order as in the buildtab. - // - std::vector<std::string> classes; - - // A map of derived class names to their bases. - // - std::map<std::string, std::string> class_inheritance_map; - }; - - // Parse buildtab stream or file. Throw tab_parsing on parsing error, - // ios::failure on the underlying OS error. - // - // buildtab consists of lines in the following format: - // - // <machine-pattern> <config> <target>[/<environment>] <classes> [<config-arg>]* [<warning-regex>]* - // - // Note that each <config>/<target> pair is expected to be unique in the - // buildtab. - // - using butl::tab_parsing; - - LIBBBOT_EXPORT build_configs - parse_buildtab (std::istream&, const std::string& name); - - LIBBBOT_EXPORT build_configs - parse_buildtab (const butl::path&); -} - -#endif // LIBBBOT_BUILD_CONFIG_HXX |