aboutsummaryrefslogtreecommitdiff
path: root/build2/dist/module
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-05-01 18:24:31 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-05-01 19:30:26 +0300
commit70317569c6dcd9809ed4a8c425777e653ec6ca08 (patch)
tree07a538b296933e9e2a1f81088f8fcc8da3f749ad /build2/dist/module
parentcbec9ea8841c8a58b2d50bb628b28aea7a6fe179 (diff)
Add hxx extension for headers
Diffstat (limited to 'build2/dist/module')
-rw-r--r--build2/dist/module65
1 files changed, 0 insertions, 65 deletions
diff --git a/build2/dist/module b/build2/dist/module
deleted file mode 100644
index 5510423..0000000
--- a/build2/dist/module
+++ /dev/null
@@ -1,65 +0,0 @@
-// file : build2/dist/module -*- C++ -*-
-// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
-// license : MIT; see accompanying LICENSE file
-
-#ifndef BUILD2_DIST_MODULE
-#define BUILD2_DIST_MODULE
-
-#include <build2/types>
-#include <build2/utility>
-
-#include <build2/module>
-#include <build2/variable>
-
-namespace build2
-{
- namespace dist
- {
- struct module: module_base
- {
- static const string name;
-
- const variable& var_dist_package;
-
- // Distribution post-processing callbacks.
- //
- // The last component in the pattern may contain shell wildcards. If the
- // path contains a directory, then it is matched from the distribution
- // root only. Otherwise, it is matched against all the files being
- // distributed. For example:
- //
- // buildfile - every buildfile
- // ./buildfile - root buildfile only
- // tests/buildfile - tests/buildfile only
- //
- // The callback is called with the absolute path of the matching file
- // after it has been copied to the distribution directory. The project's
- // root scope and callback-specific data are passed along.
- //
- using callback_func = void (const path&, const scope&, void*);
-
- void
- register_callback (path pattern, callback_func* f, void* data)
- {
- callbacks_.push_back (callback {move (pattern), f, data});
- }
-
- // Implementation details.
- //
- module (const variable& v_d_p)
- : var_dist_package (v_d_p) {}
-
- public:
- struct callback
- {
- const path pattern;
- callback_func* function;
- void* data;
- };
-
- vector<callback> callbacks_;
- };
- }
-}
-
-#endif // BUILD2_DIST_MODULE