From 930ae81f85e5ee5ac37311f5e9c89000fbcb59a6 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 1 Aug 2019 16:17:09 +0300 Subject: Move bash build system module to separate library --- libbuild2/bash/target.hxx | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 libbuild2/bash/target.hxx (limited to 'libbuild2/bash/target.hxx') diff --git a/libbuild2/bash/target.hxx b/libbuild2/bash/target.hxx new file mode 100644 index 0000000..af8b32c --- /dev/null +++ b/libbuild2/bash/target.hxx @@ -0,0 +1,34 @@ +// file : libbuild2/bash/target.hxx -*- C++ -*- +// copyright : Copyright (c) 2014-2019 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +#ifndef LIBBUILD2_BASH_TARGET_HXX +#define LIBBUILD2_BASH_TARGET_HXX + +#include +#include + +#include + +#include + +namespace build2 +{ + namespace bash + { + // Bash module file to be sourced by a script. The default/standard + // extension is .bash. + // + class LIBBUILD2_BASH_SYMEXPORT bash: public file + { + public: + using file::file; + + public: + static const target_type static_type; + virtual const target_type& dynamic_type () const {return static_type;} + }; + } +} + +#endif // LIBBUILD2_BASH_TARGET_HXX -- cgit v1.1