diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-09-05 09:24:39 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-09-05 09:24:39 +0200 |
commit | a3925d12af6a6ae75897d5aab25a9de0edb642fb (patch) | |
tree | c7a95927bbc339f873f58ba3bab63916eced71fb /bpkg/pkg-configure.cxx | |
parent | 3469e1d984c6ae000b59c471e6ef84c4b43497f2 (diff) |
Add support for build-time dependencies
Diffstat (limited to 'bpkg/pkg-configure.cxx')
-rw-r--r-- | bpkg/pkg-configure.cxx | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/bpkg/pkg-configure.cxx b/bpkg/pkg-configure.cxx index 81b1fe3..2bb834f 100644 --- a/bpkg/pkg-configure.cxx +++ b/bpkg/pkg-configure.cxx @@ -61,6 +61,32 @@ namespace bpkg { const string& n (d.name); + if (da.buildtime) + { + // Handle special names. + // + if (n == "build2") + { + if (d.constraint) + satisfy_build2 (o, m.name, d); + + satisfied = true; + break; + } + else if (n == "bpkg") + { + if (d.constraint) + satisfy_bpkg (o, m.name, d); + + satisfied = true; + break; + } + // else + // + // @@ TODO: in the future we would need to at least make sure the + // build and target machines are the same. See also pkg-build. + } + if (shared_ptr<selected_package> dp = db.find<selected_package> (n)) { if (dp->state != package_state::configured) |