From e1cd2796a608a43f9f1970b52e98664bc8d34601 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 22 Mar 2023 13:30:06 +0300 Subject: Propagate library binless sub-option to type value of newly created package manifest in bdep-new --- bdep/new.cxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'bdep') diff --git a/bdep/new.cxx b/bdep/new.cxx index d423849..753b8f3 100644 --- a/bdep/new.cxx +++ b/bdep/new.cxx @@ -1481,20 +1481,22 @@ cmd_new (cmd_new_options&& o, cli::group_scanner& args) << "version: 0.1.0-a.0.z" << '\n'; // Add the type value unless the package type is implied by the package - // name, that is, the type lib and the package name starts with lib or - // the type is exe and the name doesn't start with lib. + // name, that is, the type is binful lib and the package name starts + // with lib or the type is exe and the name doesn't start with lib. // switch (t) { case type::exe: { - if (n.size () > 3 && n.compare (0, 3, "lib") == 0 ) + if (n.size () > 3 && n.compare (0, 3, "lib") == 0) os << "type: exe" << '\n'; break; } case type::lib: { - if (!(n.size () > 3 && n.compare (0, 3, "lib") == 0)) + if (t.lib_opt.binless ()) + os << "type: lib,binless" << '\n'; + else if (!(n.size () > 3 && n.compare (0, 3, "lib") == 0)) os << "type: lib" << '\n'; break; } -- cgit v1.1