From b6e72877a1a26a6ae16961728ee57e45f657f717 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 18 Mar 2015 15:45:56 +0200 Subject: Implement complete root/base detection, basic module support This is the initial groundwork for the configuration support. --- build/module | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 build/module (limited to 'build/module') diff --git a/build/module b/build/module new file mode 100644 index 0000000..81595d3 --- /dev/null +++ b/build/module @@ -0,0 +1,22 @@ +// file : build/module -*- C++ -*- +// copyright : Copyright (c) 2014-2015 Code Synthesis Tools CC +// license : MIT; see accompanying LICENSE file + +#ifndef BUILD_MODULE +#define BUILD_MODULE + +#include +#include + +namespace build +{ + class scope; + class location; + + using module_load_function = void (scope& root, scope& base, const location&); + using module_map = std::unordered_map; + + extern module_map modules; +} + +#endif // BUILD_MODULE -- cgit v1.1