From c1dc06dfd1d329f8c6499dbe2166725ab9c35e17 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 20 Jul 2018 15:31:13 +0200 Subject: Implement bash module --- build2/bash/target.hxx | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 build2/bash/target.hxx (limited to 'build2/bash/target.hxx') diff --git a/build2/bash/target.hxx b/build2/bash/target.hxx new file mode 100644 index 0000000..b8f4d28 --- /dev/null +++ b/build2/bash/target.hxx @@ -0,0 +1,32 @@ +// file : build2/bash/target.hxx -*- C++ -*- +// copyright : Copyright (c) 2014-2018 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +#ifndef BUILD2_BASH_TARGET_HXX +#define BUILD2_BASH_TARGET_HXX + +#include +#include + +#include + +namespace build2 +{ + namespace bash + { + // Bash module file to be sourced by a script. The default/standard + // extension is .bash. + // + class 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 // BUILD2_BASH_TARGET_HXX -- cgit v1.1