From 2dbac9c6d08697e28af28178b2ce041140164842 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 7 Feb 2022 14:02:11 +0300 Subject: Introduce package_skeleton for evaluating dependency clauses --- bpkg/package.hxx | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) (limited to 'bpkg/package.hxx') 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& 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 + make_available (const common_options&, + database&, + const shared_ptr&); + // 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 -- cgit v1.1