From aaab4b270cb86c0dd29ac79dc889fabec33b2448 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 5 Sep 2016 09:19:46 +0200 Subject: Add support for build-time dependencies --- bpkg/manifest | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'bpkg/manifest') 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 -- cgit v1.1