aboutsummaryrefslogtreecommitdiff
path: root/bpkg/manifest
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-09-05 09:19:46 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-09-05 09:19:46 +0200
commitaaab4b270cb86c0dd29ac79dc889fabec33b2448 (patch)
treedd71cc2288d2a15f3b958faa4a54a288eecd2ead /bpkg/manifest
parent8546868b68642c2c9199825b5043c435b80dc90e (diff)
Add support for build-time dependencies
Diffstat (limited to 'bpkg/manifest')
-rw-r--r--bpkg/manifest14
1 files changed, 8 insertions, 6 deletions
diff --git a/bpkg/manifest b/bpkg/manifest
index 8e9c043..e0b8421 100644
--- a/bpkg/manifest
+++ b/bpkg/manifest
@@ -295,11 +295,12 @@ namespace bpkg
{
public:
bool conditional;
+ bool buildtime;
std::string comment;
- explicit
- dependency_alternatives (bool d = false, std::string c = "")
- : conditional (d), comment (std::move (c)) {}
+ dependency_alternatives () = default;
+ dependency_alternatives (bool d, bool b, std::string c)
+ : conditional (d), buildtime (b), comment (std::move (c)) {}
};
LIBBPKG_EXPORT std::ostream&
@@ -311,11 +312,12 @@ namespace bpkg
{
public:
bool conditional;
+ bool buildtime;
std::string comment;
- explicit
- requirement_alternatives (bool d = false, std::string c = "")
- : conditional (d), comment (std::move (c)) {}
+ requirement_alternatives () = default;
+ requirement_alternatives (bool d, bool b, std::string c)
+ : conditional (d), buildtime (b), comment (std::move (c)) {}
};
class LIBBPKG_EXPORT package_manifest