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-command.hxx | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 bpkg/pkg-command.hxx (limited to 'bpkg/pkg-command.hxx') diff --git a/bpkg/pkg-command.hxx b/bpkg/pkg-command.hxx new file mode 100644 index 0000000..de6ccf9 --- /dev/null +++ b/bpkg/pkg-command.hxx @@ -0,0 +1,37 @@ +// file : bpkg/pkg-command.hxx -*- C++ -*- +// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +#ifndef BPKG_PKG_COMMAND_HXX +#define BPKG_PKG_COMMAND_HXX + +#include +#include // selected_package +#include + +#include + +namespace bpkg +{ + // Common pkg-{update,clean,test,install,...} implementation. + // + int + pkg_command (const string& cmd, // Without the 'pkg-' prefix. + const configuration_options&, + cli::scanner& args); + + struct pkg_command_vars + { + shared_ptr pkg; + strings vars; + }; + + void + pkg_command (const string& cmd, + const dir_path& configuration, + const common_options&, + const strings& common_vars, + const vector&); +} + +#endif // BPKG_PKG_COMMAND_HXX -- cgit v1.1