aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/bash/target.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/bash/target.hxx')
-rw-r--r--libbuild2/bash/target.hxx34
1 files changed, 34 insertions, 0 deletions
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 <libbuild2/types.hxx>
+#include <libbuild2/utility.hxx>
+
+#include <libbuild2/target.hxx>
+
+#include <libbuild2/bash/export.hxx>
+
+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