diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-05-01 13:50:13 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-05-01 15:02:14 +0300 |
commit | 2319d01e262b705716e19474865f555f3ca81a7d (patch) | |
tree | 15ffb5b3f998a2cc0def729d2f1f76f578d8d139 /bpkg/satisfaction | |
parent | 5fb0df6f63e02c141e8a0e5ad4543dea525df3fc (diff) |
Add hxx extension for headers and lib prefix for library dirs
Diffstat (limited to 'bpkg/satisfaction')
-rw-r--r-- | bpkg/satisfaction | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/bpkg/satisfaction b/bpkg/satisfaction deleted file mode 100644 index 6f8ce45..0000000 --- a/bpkg/satisfaction +++ /dev/null @@ -1,50 +0,0 @@ -// file : bpkg/satisfaction -*- C++ -*- -// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd -// license : MIT; see accompanying LICENSE file - -#ifndef BPKG_SATISFACTION -#define BPKG_SATISFACTION - -#include <bpkg/types> -#include <bpkg/utility> - -#include <bpkg/package> -#include <bpkg/common-options> - -namespace bpkg -{ - // Return true if version satisfies the constraint. - // - bool - satisfies (const version&, const dependency_constraint&); - - inline bool - satisfies (const version& v, const optional<dependency_constraint>& c) - { - return !c || satisfies (v, *c); - } - - // Return true if any version that satisfies l also satisfies r, or, in - // other words, l is stricter than or equal to r. Or, in yet other words, - // l is a subset of r. - // - bool - satisfies (const dependency_constraint& l, const dependency_constraint& r); - - inline bool - satisfies (const optional<dependency_constraint>& l, - const optional<dependency_constraint>& r) - { - return l ? (!r || satisfies (*l, *r)) : !r; - } - - // Special build-time dependencies. - // - void - satisfy_build2 (const common_options&, const string& pkg, const dependency&); - - void - satisfy_bpkg (const common_options&, const string& pkg, const dependency&); -} - -#endif // BPKG_SATISFACTION |