aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/bash/target.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/bash/target.cxx')
-rw-r--r--libbuild2/bash/target.cxx30
1 files changed, 30 insertions, 0 deletions
diff --git a/libbuild2/bash/target.cxx b/libbuild2/bash/target.cxx
new file mode 100644
index 0000000..7313316
--- /dev/null
+++ b/libbuild2/bash/target.cxx
@@ -0,0 +1,30 @@
+// file : libbuild2/bash/target.cxx -*- C++ -*-
+// copyright : Copyright (c) 2014-2019 Code Synthesis Ltd
+// license : MIT; see accompanying LICENSE file
+
+#include <libbuild2/bash/target.hxx>
+
+#include <libbuild2/context.hxx>
+
+using namespace std;
+
+namespace build2
+{
+ namespace bash
+ {
+ extern const char bash_ext_def[] = "bash";
+
+ const target_type bash::static_type
+ {
+ "bash",
+ &file::static_type,
+ &target_factory<bash>,
+ nullptr, /* fixed_extension */
+ &target_extension_var<var_extension, bash_ext_def>,
+ &target_pattern_var<var_extension, bash_ext_def>,
+ nullptr,
+ &file_search,
+ false
+ };
+ }
+}