From 2319d01e262b705716e19474865f555f3ca81a7d Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 1 May 2017 13:50:13 +0300 Subject: Add hxx extension for headers and lib prefix for library dirs --- bpkg/pkg-drop.hxx | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 bpkg/pkg-drop.hxx (limited to 'bpkg/pkg-drop.hxx') diff --git a/bpkg/pkg-drop.hxx b/bpkg/pkg-drop.hxx new file mode 100644 index 0000000..b7e0be1 --- /dev/null +++ b/bpkg/pkg-drop.hxx @@ -0,0 +1,33 @@ +// file : bpkg/pkg-drop.hxx -*- C++ -*- +// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +#ifndef BPKG_PKG_DROP_HXX +#define BPKG_PKG_DROP_HXX + +#include + +#include +#include // database, selected_package +#include + +#include + +namespace bpkg +{ + int + pkg_drop (const pkg_drop_options&, cli::scanner& args); + + // Examine the list of prerequisite packages and drop those that don't + // have any dependents. Return the set of packages that were actually + // dropped. Note that it should be called in session. + // + std::set> + pkg_drop (const dir_path& configuration, + const common_options&, + database&, + const std::set>&, + bool prompt); +} + +#endif // BPKG_PKG_DROP_HXX -- cgit v1.1