aboutsummaryrefslogtreecommitdiff
path: root/bpkg/system-repository
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-05-01 13:50:13 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-05-01 15:02:14 +0300
commit2319d01e262b705716e19474865f555f3ca81a7d (patch)
tree15ffb5b3f998a2cc0def729d2f1f76f578d8d139 /bpkg/system-repository
parent5fb0df6f63e02c141e8a0e5ad4543dea525df3fc (diff)
Add hxx extension for headers and lib prefix for library dirs
Diffstat (limited to 'bpkg/system-repository')
-rw-r--r--bpkg/system-repository55
1 files changed, 0 insertions, 55 deletions
diff --git a/bpkg/system-repository b/bpkg/system-repository
deleted file mode 100644
index 44b8c4e..0000000
--- a/bpkg/system-repository
+++ /dev/null
@@ -1,55 +0,0 @@
-// file : bpkg/system-repository -*- C++ -*-
-// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
-// license : MIT; see accompanying LICENSE file
-
-#ifndef BPKG_SYSTEM_REPOSITORY
-#define BPKG_SYSTEM_REPOSITORY
-
-#include <map>
-
-#include <bpkg/manifest>
-
-#include <bpkg/types>
-#include <bpkg/utility>
-
-namespace bpkg
-{
- // A map of discovered system package versions. The information can be
- // authoritative (i.e., it was provided by the user or auto-discovered
- // on this run) or non-authoritative (i.e., comes from selected_packages
- // that are present in the database; in a sence it was authoritative but
- // on some previous run.
- //
- // Note that in our model we assume that once an authoritative version has
- // been discovered, it does not change (on this run; see caching logic in
- // available package).
- //
- struct system_package
- {
- using version_type = bpkg::version;
-
- version_type version;
- bool authoritative;
- };
-
- class system_repository_type
- {
- public:
- const version&
- insert (const string& name, const version&, bool authoritative);
-
- const system_package*
- find (const string& name)
- {
- auto i (map_.find (name));
- return i != map_.end () ? &i->second : nullptr;
- }
-
- private:
- std::map<string, system_package> map_;
- };
-
- extern system_repository_type system_repository;
-}
-
-#endif // BPKG_SYSTEM_REPOSITORY