diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-07-20 15:31:13 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-07-20 16:10:26 +0200 |
commit | c1dc06dfd1d329f8c6499dbe2166725ab9c35e17 (patch) | |
tree | 97449ae7263490473a833944cfeb3d889a2f580d /build2/bash/target.cxx | |
parent | b4286df8c9bafdab1934cef99ccc0506ec4555e2 (diff) |
Implement bash module
Diffstat (limited to 'build2/bash/target.cxx')
-rw-r--r-- | build2/bash/target.cxx | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/build2/bash/target.cxx b/build2/bash/target.cxx new file mode 100644 index 0000000..660528e --- /dev/null +++ b/build2/bash/target.cxx @@ -0,0 +1,30 @@ +// file : build2/bash/target.cxx -*- C++ -*- +// copyright : Copyright (c) 2014-2018 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +#include <build2/bash/target.hxx> + +#include <build2/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 + }; + } +} |