diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2022-02-07 14:02:11 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2022-02-07 14:02:44 +0300 |
commit | 2dbac9c6d08697e28af28178b2ce041140164842 (patch) | |
tree | 293996fcce76c18f03ef8f4577e92a0e04f0ffd7 /bpkg/package.hxx | |
parent | 0e954df70c6133d84660ee446fdb33ecb61a8c3f (diff) |
Introduce package_skeleton for evaluating dependency clauses
Diffstat (limited to 'bpkg/package.hxx')
-rw-r--r-- | bpkg/package.hxx | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/bpkg/package.hxx b/bpkg/package.hxx index db6b2b3..93fcc9c 100644 --- a/bpkg/package.hxx +++ b/bpkg/package.hxx @@ -592,20 +592,6 @@ namespace bpkg const dependency_alternatives_ex&, const package_name&); - // Return true if the dependency alternative enable condition is not - // specified or evaluates to true. Note that the package argument is used - // for diagnostics only. - // - // @@ DEP We will also need to pass some additional information here for the - // actual evaluation (reflect clauses of already selected dependency - // alternatives, etc). - // - bool - evaluate_enabled (const dependency_alternative&, - const string& bootstrap_build, - const optional<string>& root_build, - const package_name&); - // tests // #pragma db value(test_dependency) definition @@ -1249,6 +1235,16 @@ namespace bpkg return os << p.string (); } + // Create a transient (or fake, if you prefer) available_package object + // corresponding to the specified selected object, which is expected to not + // be in the broken state. Note that the package locations list is left + // empty. + // + shared_ptr<available_package> + make_available (const common_options&, + database&, + const shared_ptr<selected_package>&); + // Try to find a dependency in the dependency configurations (see // database::dependency_configs() for details). Return pointers to the found // package and the configuration it belongs to. Return a pair of NULLs if no |