aboutsummaryrefslogtreecommitdiff
path: root/bpkg/system-package-manager.cxx
blob: 1503c320b3230f0bf57fe35f8255a815c0c2b025 (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
// file      : bpkg/system-package-manager.cxx -*- C++ -*-
// license   : MIT; see accompanying LICENSE file

#include <bpkg/system-package-manager.hxx>

#include <bpkg/diagnostics.hxx>

namespace bpkg
{
  system_package_manager::
  ~system_package_manager ()
  {
    // vtable
  }

  unique_ptr<system_package_manager>
  make_system_package_manager (const target_triplet& host,
                               const string& type)
  {
    unique_ptr<system_package_manager> r;

    if (r == nullptr)
    {
      if (!type.empty ())
        fail << "unsupported package manager type '" << type << "' for host "
             << host;
    }

    return r;
  }
}