diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-07-12 10:24:08 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-07-12 10:24:08 +0200 |
commit | 70b4532ae118accdbe11f1983a81a26927fc9065 (patch) | |
tree | 01b272cbd8783926fe3283ef60d2d7014536c9c3 /libbuild2/rule-adhoc-buildscript.hxx | |
parent | ec203677f1de13c200e54813db73a8ed5be8d4c9 (diff) |
Rename rule-adhoc-* to adhoc-rule-*
Diffstat (limited to 'libbuild2/rule-adhoc-buildscript.hxx')
-rw-r--r-- | libbuild2/rule-adhoc-buildscript.hxx | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/libbuild2/rule-adhoc-buildscript.hxx b/libbuild2/rule-adhoc-buildscript.hxx deleted file mode 100644 index 5f10ef4..0000000 --- a/libbuild2/rule-adhoc-buildscript.hxx +++ /dev/null @@ -1,56 +0,0 @@ -// file : libbuild2/rule-adhoc-buildscript.hxx -*- C++ -*- -// license : MIT; see accompanying LICENSE file - -#ifndef LIBBUILD2_RULE_ADHOC_BUILDSCRIPT_HXX -#define LIBBUILD2_RULE_ADHOC_BUILDSCRIPT_HXX - -#include <libbuild2/types.hxx> -#include <libbuild2/forward.hxx> -#include <libbuild2/utility.hxx> - -#include <libbuild2/rule.hxx> - -#include <libbuild2/build/script/script.hxx> - -namespace build2 -{ - // Ad hoc buildscript rule. - // - // Note: not exported and should not be used directly (i.e., registered). - // - class adhoc_buildscript_rule: public adhoc_rule - { - public: - virtual bool - match (action, target&, const string&, optional<action>) const override; - - virtual recipe - apply (action, target&) const override; - - target_state - perform_update_file (action, const target&) const; - - target_state - default_action (action, const target&) const; - - adhoc_buildscript_rule (const location& l, size_t b) - : adhoc_rule ("<ad hoc buildscript recipe>", l, b) {} - - virtual bool - recipe_text (context&, const target&, string&&, attributes&) override; - - virtual void - dump_attributes (ostream&) const override; - - virtual void - dump_text (ostream&, string&) const override; - - public: - using script_type = build::script::script; - - script_type script; - string checksum; // Script text hash. - }; -} - -#endif // LIBBUILD2_RULE_ADHOC_BUILDSCRIPT_HXX |