aboutsummaryrefslogtreecommitdiff
path: root/bpkg/system-package-manager.hxx
blob: 122b1810acf8b0d06d57b0147c603e709b10c5f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// file      : bpkg/system-package-manager.hxx -*- C++ -*-
// license   : MIT; see accompanying LICENSE file

#ifndef BPKG_SYSTEM_PACKAGE_MANAGER_HXX
#define BPKG_SYSTEM_PACKAGE_MANAGER_HXX

//#include <libbpkg/manifest.hxx>     // version
//#include <libbpkg/package-name.hxx>

#include <bpkg/types.hxx>
#include <bpkg/utility.hxx>

namespace bpkg
{
  // The system package manager interface. Used by both pkg-build (to query
  // and install system packages) and by pkg-bindist (to build them).
  //
  class system_package_manager
  {
  public:
    virtual
    ~system_package_manager ();
  };

  // Create a package manager instance corresponding to the specified host
  // target and optional manager type. If type is empty, return NULL if there
  // is no support for this platform.
  //
  unique_ptr<system_package_manager>
  make_system_package_manager (const target_triplet&,
                               const string& type);
}

#endif // BPKG_SYSTEM_PACKAGE_MANAGER_HXX