diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2023-03-22 13:30:06 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2023-03-23 18:37:19 +0300 |
commit | e1cd2796a608a43f9f1970b52e98664bc8d34601 (patch) | |
tree | 823696d63aa507400903b2529ad2aa6f644c9160 | |
parent | 5bb82730eda4d9521f69a681b325677eba221cf7 (diff) |
Propagate library binless sub-option to type value of newly created package manifest in bdep-new
-rw-r--r-- | bdep/new.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
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; } |